1 |
aurelien |
1 |
<project name="del" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
|
|
|
2 |
|
2 |
benjamin |
3 |
<target name="init">
|
|
|
4 |
<property file="local.properties" />
|
|
|
5 |
<property name="server-url" value="${server-url}" />
|
|
|
6 |
<property name="server-login" value="${server-login}" />
|
|
|
7 |
<property name="server-password" value="${server-password}" />
|
|
|
8 |
<property name="server-dir" value="${server-dir}" />
|
|
|
9 |
<property name="gwt-path" value="${gwt-path}" />
|
|
|
10 |
</target>
|
|
|
11 |
|
|
|
12 |
<target name="gwt-compile" depends="init">
|
1 |
aurelien |
13 |
<java classname="com.google.gwt.dev.Compiler" fork="true">
|
|
|
14 |
<arg line="-logLevel INFO" />
|
|
|
15 |
<arg line="-style OBF" />
|
|
|
16 |
<arg value="org.tela_botanica.del.Del" />
|
|
|
17 |
<classpath>
|
|
|
18 |
<path>
|
|
|
19 |
<pathelement location="${gwt-path}/gwt-user.jar" />
|
|
|
20 |
<pathelement location="${gwt-path}/gwt-dev.jar" />
|
|
|
21 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA-sources.jar" />
|
|
|
22 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA.jar" />
|
|
|
23 |
<pathelement location="src" />
|
424 |
benjamin |
24 |
<fileset dir="lib">
|
1 |
aurelien |
25 |
<include name="**/*.jar" />
|
|
|
26 |
</fileset>
|
|
|
27 |
</path>
|
|
|
28 |
</classpath>
|
|
|
29 |
</java>
|
|
|
30 |
</target>
|
|
|
31 |
|
30 |
benjamin |
32 |
<target name="generate-vocabulary" depends="init">
|
|
|
33 |
|
157 |
benjamin |
34 |
<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
|
30 |
benjamin |
35 |
<arg value="org.tela_botanica.del.client.i18n.Vocabulary" />
|
|
|
36 |
<classpath>
|
|
|
37 |
<path>
|
|
|
38 |
<pathelement location="${gwt-path}/gwt-user.jar" />
|
|
|
39 |
<pathelement location="${gwt-path}/gwt-dev.jar" />
|
|
|
40 |
<pathelement location="src" />
|
|
|
41 |
</path>
|
|
|
42 |
</classpath>
|
|
|
43 |
</java>
|
|
|
44 |
</target>
|
|
|
45 |
|
381 |
gduche |
46 |
<target name="build-and-deploy-test" depends="init">
|
193 |
benjamin |
47 |
|
381 |
gduche |
48 |
<ftp action="del" server="${server-url}" remotedir="${server-dir}/client/" userid="${server-login}" password="${server-password}">
|
193 |
benjamin |
49 |
<fileset dir="war">
|
6 |
benjamin |
50 |
<include name="**" />
|
|
|
51 |
</fileset>
|
|
|
52 |
</ftp>
|
381 |
gduche |
53 |
<ftp server="${server-url}" remotedir="${server-dir}/client/" userid="${server-login}" password="${server-password}">
|
193 |
benjamin |
54 |
<fileset dir="war" excludes="*.svn">
|
|
|
55 |
<include name="del.css" />
|
|
|
56 |
<include name="del.html" />
|
266 |
aurelien |
57 |
<include name="proxy.php" />
|
193 |
benjamin |
58 |
</fileset>
|
1 |
aurelien |
59 |
</ftp>
|
381 |
gduche |
60 |
<ftp server="${server-url}" remotedir="${server-dir}/client/del" userid="${server-login}" password="${server-password}">
|
193 |
benjamin |
61 |
<fileset dir="war/del" excludes="*.svn" />
|
|
|
62 |
</ftp>
|
381 |
gduche |
63 |
<ftp server="${server-url}" remotedir="${server-dir}/client/img" userid="${server-login}" password="${server-password}">
|
193 |
benjamin |
64 |
<fileset dir="war/img" excludes="*.svn" />
|
|
|
65 |
</ftp>
|
381 |
gduche |
66 |
<ftp server="${server-url}" remotedir="${server-dir}/client/WEB-INF" userid="${server-login}" password="${server-password}">
|
193 |
benjamin |
67 |
<fileset dir="war/WEB-INF" excludes="*.svn">
|
196 |
benjamin |
68 |
<exclude name="lib/*.jar" />
|
193 |
benjamin |
69 |
</fileset>
|
|
|
70 |
</ftp>
|
424 |
benjamin |
71 |
|
381 |
gduche |
72 |
<ftp server="${server-url}" remotedir="${server-dir}/jrest" userid="${server-login}" password="${server-password}">
|
424 |
benjamin |
73 |
<fileset dir="jrest" excludes="*.svn">
|
|
|
74 |
<include name="**" />
|
|
|
75 |
<exclude name="*.ini.php" />
|
|
|
76 |
<exclude name=".htaccess" />
|
|
|
77 |
</fileset>
|
381 |
gduche |
78 |
</ftp>
|
424 |
benjamin |
79 |
|
|
|
80 |
<!--
|
193 |
benjamin |
81 |
<scp password="${server-password}" todir="${server-login}@${server-url}:${server-dir}" trust="true" verbose="true">
|
|
|
82 |
<fileset dir="war" excludes="*.svn" />
|
|
|
83 |
</scp>
|
|
|
84 |
-->
|
1 |
aurelien |
85 |
</target>
|
|
|
86 |
|
424 |
benjamin |
87 |
<target name="build-and-deploy-local" depends="gwt-compile, deploy-local">
|
|
|
88 |
|
|
|
89 |
</target>
|
|
|
90 |
|
|
|
91 |
<target name="deploy-local" depends="init">
|
|
|
92 |
<delete dir="${local-deploy-path}">
|
|
|
93 |
</delete>
|
|
|
94 |
<filter token="webservices.root.url" value="${webservices.root.url}" />
|
|
|
95 |
<filter token="local-deploy-path" value="${local-deploy-path}" />
|
|
|
96 |
<copy todir="${local-deploy-path}" filtering="true">
|
|
|
97 |
<fileset dir="war" excludes="*.svn">
|
|
|
98 |
<include name="**/*.html" />
|
|
|
99 |
<include name="**/*.js" />
|
|
|
100 |
<include name="**/*.css" />
|
|
|
101 |
<exclude name="**/*.gif" />
|
|
|
102 |
<exclude name="**/*.png" />
|
|
|
103 |
<exclude name="**/*.jpg" />
|
|
|
104 |
</fileset>
|
|
|
105 |
</copy>
|
|
|
106 |
|
157 |
benjamin |
107 |
<copy todir="${local-deploy-path}">
|
424 |
benjamin |
108 |
<fileset dir="war">
|
|
|
109 |
<exclude name="**/*.html" />
|
|
|
110 |
<exclude name="**/*.js" />
|
|
|
111 |
<exclude name="**/*.css" />
|
|
|
112 |
<include name="**/*.gif" />
|
|
|
113 |
<include name="**/*.png" />
|
|
|
114 |
<include name="**/*.jpg" />
|
|
|
115 |
</fileset>
|
157 |
benjamin |
116 |
</copy>
|
424 |
benjamin |
117 |
<copy todir="${local-deploy-path}/jrest" filtering="true">
|
|
|
118 |
<fileset dir="jrest" excludes="*.svn" />
|
|
|
119 |
</copy>
|
157 |
benjamin |
120 |
</target>
|
|
|
121 |
|
424 |
benjamin |
122 |
<target name="hosted-mode" depends="init">
|
|
|
123 |
<java classname="com.google.gwt.dev.DevMode" fork="true">
|
|
|
124 |
<arg line="-noserver -port 80 -war '${local-deploy-path}/del' -startupUrl del/del.html -logLevel INFO -codeServerPort 9997 org.tela_botanica.del.Del" />
|
|
|
125 |
<classpath>
|
|
|
126 |
<path>
|
|
|
127 |
<pathelement location="${gwt-path}/gwt-user.jar" />
|
|
|
128 |
<pathelement location="${gwt-path}/gwt-dev.jar" />
|
|
|
129 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA-sources.jar" />
|
|
|
130 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA.jar" />
|
|
|
131 |
<pathelement location="src" />
|
|
|
132 |
<fileset dir="lib">
|
|
|
133 |
<include name="**/*.jar" />
|
|
|
134 |
</fileset>
|
|
|
135 |
</path>
|
|
|
136 |
</classpath>
|
|
|
137 |
|
|
|
138 |
</java>
|
|
|
139 |
</target>
|
|
|
140 |
|
|
|
141 |
<!-- In order to execute task you must execute a remote java application in your debug configuration on default port 8000-->
|
|
|
142 |
<target name="debug-mode" depends="init">
|
|
|
143 |
<java classname="com.google.gwt.dev.DevMode" fork="true">
|
|
|
144 |
<jvmarg value="-Xdebug" />
|
|
|
145 |
<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" />
|
|
|
146 |
<arg line="-noserver -port 80 -war '${local-deploy-path}/del' -startupUrl del/del.html -logLevel INFO -codeServerPort 9997 org.tela_botanica.del.Del" />
|
|
|
147 |
<classpath>
|
|
|
148 |
<path>
|
|
|
149 |
<pathelement location="${gwt-path}/gwt-user.jar" />
|
|
|
150 |
<pathelement location="${gwt-path}/gwt-dev.jar" />
|
|
|
151 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA-sources.jar" />
|
|
|
152 |
<pathelement location="${gwt-path}/validation-api-1.0.0.GA.jar" />
|
|
|
153 |
<pathelement location="src" />
|
|
|
154 |
<fileset dir="lib">
|
|
|
155 |
<include name="**/*.jar" />
|
|
|
156 |
</fileset>
|
|
|
157 |
</path>
|
|
|
158 |
</classpath>
|
|
|
159 |
|
|
|
160 |
</java>
|
|
|
161 |
</target>
|
|
|
162 |
|
1 |
aurelien |
163 |
</project>
|