Rev 1630 | Rev 1775 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
291 | jmachado | 1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | fvelez | 2 | <project name="estgweb" basedir="." default="help"> |
3 | |||
4 | |||
5 | <!-- |
||
6 | ========================================================================================== |
||
7 | ANT TASKS |
||
8 | ========================================================================================== |
||
9 | --> |
||
10 | <target name="help"> |
||
11 | <echo>This is the availible Ant Tasks:</echo> |
||
896 | jmachado | 12 | <echo message="${env.JAVA_HOME}"></echo> |
168 | fvelez | 13 | </target> |
1 | fvelez | 14 | |
15 | |||
16 | <!-- |
||
17 | ========================================================================================== |
||
18 | Path libs definitions and Properties files |
||
19 | ========================================================================================== |
||
20 | --> |
||
21 | |||
22 | |||
104 | jmachado | 23 | <import file="libs.xml"/> |
1381 | jmachado | 24 | <!--<import file="build-web-services.xml"/>--> |
1 | fvelez | 25 | |
26 | <!-- |
||
27 | ========================================================================================== |
||
28 | General Task |
||
29 | ========================================================================================== |
||
30 | --> |
||
31 | <!--caso queiramos apagar os pregen hbm delPreGenAppScripts--> |
||
1312 | jmachado | 32 | <!-- |
33 | Use by hand only |
||
215 | jmachado | 34 | <target name="all" depends="clean,initDirs,createConfigurationFiles,generateHibernateDomainObjects,generateHibernateDaoClasses,build,generateHibernateSql,build.war,dbInit"/> |
291 | jmachado | 35 | <target name="allWebNode" depends="clean,initDirs,createConfigurationFiles,generateHibernateDomainObjects,generateHibernateDaoClasses,build.war"/> |
36 | <target name="dataNode" depends="clean,initDirs,createConfigurationFiles,generateHibernateDomainObjects,generateHibernateDaoClasses,build,generateHibernateSql"/> |
||
1312 | jmachado | 37 | --> |
1 | fvelez | 38 | |
39 | <!-- |
||
40 | ========================================================================================== |
||
41 | CLEAN TASKS |
||
42 | ========================================================================================== |
||
43 | --> |
||
1312 | jmachado | 44 | <!-- |
1 | fvelez | 45 | <target name="clean" description="clean *.class and build dir"> |
46 | <delete dir="${build.dir}"/> |
||
165 | jmachado | 47 | <delete dir="${dist.dir}"/> |
7 | jmachado | 48 | <delete> |
49 | <fileset dir="${gen.dir.java}"> |
||
112 | jmachado | 50 | <exclude name="pt/ipportalegre/**/*.*"/> |
1312 | jmachado | 51 | <exclude name="pt/estgp/estgweb/services/directories/**/*.*"/> |
7 | jmachado | 52 | <include name="**/*.java"/> |
53 | </fileset> |
||
54 | </delete> |
||
163 | jmachado | 55 | <sleep seconds="5"/> |
1 | fvelez | 56 | </target> |
1312 | jmachado | 57 | --> |
1 | fvelez | 58 | |
59 | |||
60 | |||
61 | <!-- |
||
62 | ========================================================================================== |
||
63 | CREATE-DIRS |
||
64 | ========================================================================================== |
||
65 | --> |
||
66 | <target name="initDirs"> |
||
67 | <mkdir dir="${log.dir}"/> |
||
68 | <mkdir dir="${data.dir}"/> |
||
69 | <mkdir dir="${build.dir}"/> |
||
70 | <mkdir dir="${build.dir.classes}"/> |
||
71 | <mkdir dir="${build.dir.war}"/> |
||
99 | jmachado | 72 | <mkdir dir="${build.dir.ws}"/> |
219 | jmachado | 73 | <mkdir dir="${build.dir.scripts}"/> |
1 | fvelez | 74 | <delete dir="${dist.dir}"/> |
75 | <mkdir dir="${dist.dir}"/> |
||
76 | <mkdir dir="${gen.dir.java}"/> |
||
77 | </target> |
||
78 | |||
79 | |||
80 | |||
81 | <!-- |
||
82 | ========================================================================================== |
||
83 | Tomcat Tasks |
||
84 | ========================================================================================== |
||
85 | --> |
||
86 | <taskdef name="tomcat.reload" classname="org.apache.catalina.ant.ReloadTask" classpathref="pathToToolsLib"/> |
||
1382 | jmachado | 87 | <!--<taskdef name="tomcat.remove" classname="org.apache.catalina.ant.RemoveTask" classpathref="pathToToolsLib"/>--> |
1383 | jmachado | 88 | <!--<taskdef name="tomcat.roles" classname="org.apache.catalina.ant.RolesTask" classpathref="pathToToolsLib"/>--> |
1 | fvelez | 89 | <taskdef name="tomcat.start" classname="org.apache.catalina.ant.StartTask" classpathref="pathToToolsLib"/> |
90 | <taskdef name="tomcat.stop" classname="org.apache.catalina.ant.StopTask" classpathref="pathToToolsLib"/> |
||
91 | <taskdef name="tomcat.undeploy" classname="org.apache.catalina.ant.UndeployTask" classpathref="pathToToolsLib"/> |
||
92 | <taskdef name="tomcat.deploy" classname="org.apache.catalina.ant.DeployTask" classpathref="pathToToolsLib"/> |
||
1630 | jmachado | 93 | <taskdef name="tomcat.install" classname="org.apache.catalina.ant.InstallTask" classpathref="pathToToolsLib"/> |
1597 | jmachado | 94 | <taskdef name="tomcat.jasper" classname="org.apache.jasper.JspC"> |
95 | <classpath id="jspc.classpath"> |
||
96 | <pathelement location="${env.JAVA_HOME}/lib/tools.jar"/> |
||
97 | <fileset dir="${tomcat.home}/bin"> |
||
98 | <include name="*.jar"/> |
||
99 | </fileset> |
||
100 | <fileset dir="${tomcat.home}/server/lib"> |
||
101 | <include name="*.jar"/> |
||
102 | </fileset> |
||
103 | <fileset dir="${tomcat.home}/common/lib"> |
||
104 | <include name="*.jar"/> |
||
105 | </fileset> |
||
106 | </classpath> |
||
107 | </taskdef> |
||
1 | fvelez | 108 | |
109 | |||
110 | <!-- |
||
111 | TOMCAT Instalation Tasks |
||
112 | --> |
||
1630 | jmachado | 113 | <target name="tomcat.deployContext" depends="build.war"> |
1 | fvelez | 114 | <echo message="${tomcat.manager}"/> |
115 | <tomcat.install url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
290 | jmachado | 116 | config="file://${basedir}/${dist.dir}/estgweb.xml" |
1 | fvelez | 117 | username="${tomcat.username}" password="${tomcat.password}" /> |
118 | </target> |
||
1630 | jmachado | 119 | <!-- |
340 | jmachado | 120 | <target name="tomcat.deployContextOnly" depends=""> |
121 | <echo message="${tomcat.manager}"/> |
||
122 | <tomcat.install url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
123 | config="file://${basedir}/${dist.dir}/estgweb.xml" |
||
124 | username="${tomcat.username}" password="${tomcat.password}" /> |
||
125 | </target> |
||
1 | fvelez | 126 | <target name="tomcat.redeployContext" depends="tomcat.undeploy,build.war" > |
127 | <echo message="${tomcat.manager}"/> |
||
128 | <tomcat.install url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
287 | jmachado | 129 | config="file:${basedir}/${dist.dir}/estgweb.xml" |
1 | fvelez | 130 | username="${tomcat.username}" password="${tomcat.password}" /> |
1384 | jmachado | 131 | </target>--> |
281 | jmachado | 132 | <target name="tomcat.deploy" depends="war" > |
285 | jmachado | 133 | <echo message="${tomcat.manager} path:${tomcat.context.path.install} warfile:file:${basedir}/${dist.dir}/${tomcat.war.file}"/> |
283 | jmachado | 134 | <tomcat.deploy url="${tomcat.manager}" path="${tomcat.context.path.install}" |
285 | jmachado | 135 | war="file:${basedir}/${dist.dir}/${tomcat.war.file}" |
1 | fvelez | 136 | username="${tomcat.username}" password="${tomcat.password}" /> |
137 | </target> |
||
281 | jmachado | 138 | <target name="tomcat.redeploy" depends="tomcat.undeploy,war"> |
285 | jmachado | 139 | <echo message="${tomcat.manager} path:${tomcat.context.path.install} warfile:file:${basedir}/${dist.dir}/${tomcat.war.file}"/> |
1 | fvelez | 140 | <tomcat.deploy url="${tomcat.manager}" path="${tomcat.context.path.install}" |
285 | jmachado | 141 | war="file:${basedir}/${dist.dir}/${tomcat.war.file}" |
1 | fvelez | 142 | username="${tomcat.username}" password="${tomcat.password}" /> |
143 | </target> |
||
144 | <target name="tomcat.undeploy"> |
||
145 | <echo message="${tomcat.manager}"/> |
||
146 | <tomcat.undeploy url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
147 | username="${tomcat.username}" password="${tomcat.password}" /> |
||
148 | </target> |
||
149 | <target name="tomcat.reload"> |
||
150 | <echo message="${tomcat.manager}"/> |
||
151 | <tomcat.reload url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
152 | username="${tomcat.username}" password="${tomcat.password}" /> |
||
153 | </target> |
||
154 | <target name="tomcat.start"> |
||
155 | <echo message="${tomcat.manager}"/> |
||
156 | <tomcat.start url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
157 | username="${tomcat.username}" password="${tomcat.password}" /> |
||
158 | </target> |
||
159 | <target name="tomcat.stop"> |
||
160 | <echo message="${tomcat.manager}"/> |
||
161 | <tomcat.stop url="${tomcat.manager}" path="${tomcat.context.path.install}" |
||
162 | username="${tomcat.username}" password="${tomcat.password}" /> |
||
163 | </target> |
||
164 | |||
165 | <!-- |
||
166 | ========================================================================================== |
||
167 | BUILD TASKS, Have no effect now, no revengstrategy defined.... |
||
168 | ========================================================================================== |
||
169 | --> |
||
170 | <target name="build" depends="initDirs" description="Compile All and create conf files"> |
||
171 | <antcall target="compile"/> |
||
172 | <antcall target="createConfigurationFiles"/> |
||
173 | </target> |
||
385 | jmachado | 174 | |
1 | fvelez | 175 | <target name="compile" depends="initDirs" description="Compile All"> |
1593 | jmachado | 176 | <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.classes}" debug="true" optimize="true" fork="true" failonerror="true" nowarn="true"> |
1 | fvelez | 177 | <src path="${src.dir}"/> |
178 | <src path="${gen.dir.java}"/> |
||
179 | <classpath refid="pathToToolsLib"/> |
||
180 | </javac> |
||
181 | </target> |
||
182 | <target name="compileToolFiles" description="Compile Mappings Builder"> |
||
183 | <javac destdir="${build.dir.classes}" srcdir="${src.dir}" debug="true" optimize="true" deprecation="true" verbose="true" failonerror="true"> |
||
184 | <include name="${mapping.buider.class.file}"/> |
||
219 | jmachado | 185 | <include name="${scripts.buider.class.file}"/> |
1 | fvelez | 186 | <classpath refid="pathToToolsLib"/> |
187 | </javac> |
||
188 | </target> |
||
189 | |||
190 | <!-- |
||
191 | Build distribution files |
||
192 | --> |
||
193 | <target name="dist" depends="build"> |
||
194 | <jar jarfile="${dist.dir}/estgweb.jar"> |
||
195 | <fileset dir="${build.dir.classes}" includes="**/*.class"/> |
||
196 | </jar> |
||
197 | <copy overwrite="true" todir="${dist.dir}"> |
||
198 | <fileset dir="${build.dir.classes}" includes="**/*.properties"/> |
||
199 | <fileset dir="${build.dir.classes}" includes="**/*.xml"/> |
||
730 | jmachado | 200 | <fileset dir="${build.dir.classes}" includes="**/*.gif"/> |
244 | jmachado | 201 | <fileset dir="${build.dir.classes}" includes="**/*.xsd"/> |
202 | <fileset dir="${build.dir.classes}" includes="**/*.xsl"/> |
||
1 | fvelez | 203 | </copy> |
204 | <copy overwrite="true" todir="${dist.dir}" file="${conf.dir}/tomcat/estgweb.xml"/> |
||
205 | <replace file="${dist.dir}/estgweb.xml" value=""> |
||
206 | <replacefilter token="@build.dir.war@" value="${basedir}${file.separator}build${file.separator}ant${file.separator}war${file.separator}"/> |
||
207 | <replacefilter token="@context.path@" value="${tomcat.context.path}"/> |
||
208 | </replace> |
||
209 | </target> |
||
210 | |||
1315 | jmachado | 211 | <target name="copy.jsps.war" depends="createConfigurationFiles" description="copy only jsps to war distribution"> |
1 | fvelez | 212 | <copy todir="${build.dir.war}" overwrite="false"> |
213 | <fileset dir="src/web"> |
||
214 | <include name="**/*"/> |
||
215 | </fileset> |
||
216 | </copy> |
||
1581 | jmachado | 217 | |
218 | <copy todir="${build.dir.war}/WEB-INF/tags" overwrite="false"> |
||
219 | <fileset dir="${conf.dir}/WEB-INF/tags"> |
||
220 | <include name="**/*"/> |
||
221 | </fileset> |
||
222 | </copy> |
||
1312 | jmachado | 223 | <copy todir="${build.dir.war}/WEB-INF/classes" overwrite="false"> |
224 | <fileset dir="${build.dir.classes}"> |
||
225 | <include name="**/*.xsl"/> |
||
226 | </fileset> |
||
227 | </copy> |
||
1470 | jmachado | 228 | |
165 | jmachado | 229 | <replace file="${build.dir.war}/css/style.css"> |
230 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
||
231 | </replace> |
||
232 | <replace file="${build.dir.war}/css/intranet.css"> |
||
233 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
||
234 | </replace> |
||
235 | <replace file="${build.dir.war}/js/ajax.js"> |
||
236 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
||
237 | </replace> |
||
1 | fvelez | 238 | </target> |
239 | |||
291 | jmachado | 240 | <target name="build.war" depends="dist" description="Make war distribution"> |
1 | fvelez | 241 | <mkdir dir="${build.dir.war}"/> |
242 | <mkdir dir="${build.dir.war}/WEB-INF"/> |
||
243 | <mkdir dir="${build.dir.war}/WEB-INF/lib"/> |
||
244 | <copy todir="${build.dir.war}/WEB-INF/lib"> |
||
245 | <fileset dir="${common.lib.dir}/log4j"> |
||
246 | <include name="*.jar"/> |
||
247 | </fileset> |
||
248 | <fileset dir="${common.lib.dir}/berserk"> |
||
249 | <include name="**/*.jar"/> |
||
250 | </fileset> |
||
251 | <fileset dir="${common.lib.dir}/hibernate"> |
||
252 | <include name="**/*.jar"/> |
||
995 | jmachado | 253 | <exclude name="xerces-2.6.2.jar"/> |
1 | fvelez | 254 | </fileset> |
255 | <fileset dir="${common.lib.dir}/log4j"> |
||
256 | <include name="**/*.jar"/> |
||
257 | </fileset> |
||
258 | <fileset dir="${common.lib.dir}/mysql"> |
||
259 | <include name="**/*.jar"/> |
||
260 | </fileset> |
||
1235 | jmachado | 261 | <fileset dir="${common.lib.dir}/oracle"> |
262 | <include name="**/*.jar"/> |
||
263 | </fileset> |
||
1 | fvelez | 264 | <fileset dir="${common.lib.dir}/commons"> |
265 | <include name="**/*.jar"/> |
||
266 | </fileset> |
||
267 | <fileset dir="${common.lib.dir}/struts"> |
||
268 | <include name="**/*.jar"/> |
||
269 | </fileset> |
||
10 | jmachado | 270 | <fileset dir="${common.lib.dir}/ldap"> |
271 | <include name="**/*.jar"/> |
||
272 | </fileset> |
||
29 | jmachado | 273 | <fileset dir="${common.lib.dir}/mail"> |
274 | <include name="**/*.jar"/> |
||
275 | </fileset> |
||
18 | jmachado | 276 | <fileset dir="${common.lib.dir}/jfreechart"> |
277 | <include name="**/*.jar"/> |
||
278 | </fileset> |
||
99 | jmachado | 279 | <fileset dir="${common.lib.dir}/lucene"> |
92 | jmachado | 280 | <include name="**/*.jar"/> |
281 | </fileset> |
||
995 | jmachado | 282 | <fileset dir="${common.lib.dir}/jaxrpc"> |
104 | jmachado | 283 | <include name="**/*.jar"/> |
186 | fvelez | 284 | </fileset> |
244 | jmachado | 285 | <fileset dir="${common.lib.dir}/saxon"> |
286 | <include name="**/*.jar"/> |
||
287 | </fileset> |
||
726 | jmachado | 288 | <fileset dir="${common.lib.dir}/fop"> |
289 | <include name="**/*.jar"/> |
||
290 | </fileset> |
||
808 | jmachado | 291 | <fileset dir="${common.lib.dir}/itextpdf"> |
292 | <include name="**/*.jar"/> |
||
293 | </fileset> |
||
995 | jmachado | 294 | <fileset dir="${common.lib.dir}/json"> |
295 | <include name="**/*.jar"/> |
||
296 | </fileset> |
||
1703 | jmachado | 297 | <fileset dir="${common.lib.dir}/jsoup"> |
298 | <include name="**/*.jar"/> |
||
299 | </fileset> |
||
1553 | jmachado | 300 | <fileset dir="${common.lib.dir}/simplexml"> |
301 | <include name="**/*.jar"/> |
||
302 | </fileset> |
||
1 | fvelez | 303 | </copy> |
304 | <copy file="${dist.dir}/estgweb.jar" todir="${build.dir.war}/WEB-INF/lib"/> |
||
305 | <copy todir="${build.dir.war}/WEB-INF" overwrite="true"> |
||
306 | <fileset dir="${conf.dir}/WEB-INF"> |
||
307 | <include name="**/*.*"/> |
||
308 | </fileset> |
||
309 | </copy> |
||
310 | <mkdir dir="${build.dir.war}/WEB-INF/classes"/> |
||
311 | <copy todir="${build.dir.war}/WEB-INF/classes" overwrite="true"> |
||
312 | <fileset dir="${build.dir.classes}"> |
||
18 | jmachado | 313 | <include name="**/*.types"/> |
1 | fvelez | 314 | <include name="**/*.properties"/> |
29 | jmachado | 315 | <include name="**/*.txt"/> |
1 | fvelez | 316 | <include name="**/*.xml"/> |
730 | jmachado | 317 | <include name="**/*.gif"/> |
1554 | jmachado | 318 | <include name="**/*.png"/> |
214 | jmachado | 319 | <include name="**/*.exe"/> |
248 | jmachado | 320 | <include name="**/*.xsl"/> |
321 | <include name="**/*.xsd"/> |
||
1 | fvelez | 322 | </fileset> |
323 | </copy> |
||
324 | <copy todir="${build.dir.war}" overwrite="true"> |
||
325 | <fileset dir="src/web"> |
||
326 | <include name="**/*"/> |
||
327 | </fileset> |
||
1395 | jmachado | 328 | |
1 | fvelez | 329 | </copy> |
1395 | jmachado | 330 | <mkdir dir="${build.dir.war}/docs"/> |
1507 | jmachado | 331 | |
332 | <!--DOCUMENTOS IMPORTANTES ARQUITETURA EMPRESARIAL TODO REVER LOCALIZAÇÃO DOS MESMOS--> |
||
1395 | jmachado | 333 | <copy todir="${build.dir.war}/docs" overwrite="true" file="src/doc/siges/ModeloDeInformacaoPAE-EmVigor.docx"/> |
1507 | jmachado | 334 | <copy todir="${build.dir.war}/docs" overwrite="false" file="src/doc/siges/Modelo_de_Dados_Siges11.zip"/> |
1395 | jmachado | 335 | <copy todir="${build.dir.war}/docs" overwrite="true" file="src/doc/BacoV32016/processos/DocumentacaoProcessos.doc"/> |
336 | |||
48 | fvelez | 337 | <replace file="${build.dir.war}/js/ajax.js"> |
165 | jmachado | 338 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
48 | fvelez | 339 | </replace> |
165 | jmachado | 340 | <replace file="${build.dir.war}/css/style.css"> |
341 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
||
342 | </replace> |
||
343 | <replace file="${build.dir.war}/css/intranet.css"> |
||
344 | <replacefilter token="@contextPath@" value="${tomcat.context.path}"/> |
||
345 | </replace> |
||
385 | jmachado | 346 | </target> |
165 | jmachado | 347 | |
385 | jmachado | 348 | <target name="jasper" depends="copy.jsps.war"> |
349 | <delete dir="${build.dir.jsp}"/> |
||
350 | <mkdir dir="${build.dir.jsp}"/> |
||
1605 | jmachado | 351 | <tomcat.jasper compilersourcevm="1.6" compilertargetvm="1.6" validateXml="false" uriroot="${build.dir.war}" webXmlFragment="${build.dir.war}/WEB-INF/generated_web.xml" addWebXmlMappings="true" outputDir="${build.dir.jsp}" /> |
1593 | jmachado | 352 | <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.war}/WEB-INF/classes" debug="true" optimize="true" fork="true" failonerror="true" nowarn="true"> |
385 | jmachado | 353 | <src path="${build.dir.jsp}"/> |
1597 | jmachado | 354 | <src path="${build.dir}/"/> |
385 | jmachado | 355 | <classpath path="${build.dir.classes}"/> |
356 | <classpath refid="pathToToolsLib"/> |
||
357 | </javac> |
||
358 | <delete> |
||
359 | <fileset dir="${build.dir.war}"> |
||
360 | <include name="**/*.jsp"/> |
||
361 | </fileset> |
||
362 | </delete> |
||
1598 | jmachado | 363 | <delete> |
364 | <fileset dir="${build.dir.war}/WEB-INF/tags"> |
||
365 | <include name="**/*.jsp"/> |
||
366 | </fileset> |
||
367 | </delete> |
||
1 | fvelez | 368 | </target> |
369 | |||
370 | <target name="war" depends="build.war"> |
||
371 | <delete file="${dist.dir}/${tomcat.war.file}"/> |
||
372 | <jar destfile="${dist.dir}/${tomcat.war.file}"> |
||
373 | <fileset dir="${build.dir.war}"> |
||
374 | <include name="**/*" /> |
||
375 | </fileset> |
||
376 | </jar> |
||
377 | </target> |
||
378 | |||
385 | jmachado | 379 | <target name="war.jasper" depends="build.war,jasper"> |
380 | <delete file="${dist.dir}/${tomcat.war.file}"/> |
||
381 | <jar destfile="${dist.dir}/${tomcat.war.file}"> |
||
382 | <fileset dir="${build.dir.war}"> |
||
383 | <include name="**/*" /> |
||
384 | </fileset> |
||
385 | </jar> |
||
386 | </target> |
||
1 | fvelez | 387 | |
385 | jmachado | 388 | |
1 | fvelez | 389 | <!-- |
390 | ========================================================================================== |
||
391 | Generate Configuration Files TASKS |
||
392 | ========================================================================================== |
||
393 | --> |
||
229 | jmachado | 394 | <target name="createConfigurationFiles" depends="compileToolFiles,copyConfigurationFiles,replaceFiltersConfigurationFiles,generateHibernateCfgXml"/> |
1 | fvelez | 395 | |
396 | <target name="copyConfigurationFiles"> |
||
397 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
398 | <fileset dir="${hbm.dir}" includes="**/*.hbm.xml"/> |
||
399 | </copy> |
||
244 | jmachado | 400 | <mkdir dir="${build.dir.classes}/template/xsd"/> |
401 | <copy todir="${build.dir.classes}/template/xsd" overwrite="true"> |
||
402 | <fileset dir="${src.xsd}"> |
||
403 | <include name="**/*.xsl"/> |
||
404 | <include name="**/*.xsd"/> |
||
405 | </fileset> |
||
406 | </copy> |
||
1 | fvelez | 407 | <copy overwrite="true" todir="${build.dir.classes}"> |
408 | <fileset dir="${src.dir}" includes="**/*.xsl"/> |
||
409 | </copy> |
||
410 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
730 | jmachado | 411 | <fileset dir="${src.dir}" includes="**/*.gif"/> |
412 | </copy> |
||
413 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
1554 | jmachado | 414 | <fileset dir="${src.dir}" includes="**/*.png"/> |
415 | </copy> |
||
416 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
381 | jmachado | 417 | <fileset dir="${src.dir}" includes="**/*.csv"/> |
418 | </copy> |
||
419 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
1 | fvelez | 420 | <fileset dir="${conf.dir}/berserk" includes="*.*"/> |
421 | </copy> |
||
29 | jmachado | 422 | <mkdir dir="${email.templates.dir.build}"/> |
423 | <copy overwrite="true" todir="${email.templates.dir.build}"> |
||
424 | <fileset dir="${email.templates.dir.conf}" includes="*.*"/> |
||
425 | </copy> |
||
227 | jmachado | 426 | <mkdir dir="${sms.templates.dir.build}"/> |
427 | <copy overwrite="true" todir="${sms.templates.dir.build}"> |
||
428 | <fileset dir="${sms.templates.dir.conf}" includes="*.*"/> |
||
429 | </copy> |
||
215 | jmachado | 430 | <mkdir dir="${assignement.templates.dir.build}"/> |
431 | <copy overwrite="true" todir="${assignement.templates.dir.build}"> |
||
432 | <fileset dir="${assignement.templates.dir.conf}" includes="*.*"/> |
||
433 | </copy> |
||
1325 | jmachado | 434 | <!--<copy overwrite="true" todir="${olap.cfg.xml.build}" file="${olap.cfg.xml}"/>--> |
1 | fvelez | 435 | <copy overwrite="true" todir="${hibernate.cfg.xml.build}" file="${hibernate.cfg.xml}"/> |
18 | jmachado | 436 | <copy overwrite="true" todir="${mime.types.build}" file="${mime.types}"/> |
1 | fvelez | 437 | <copy overwrite="true" todir="${app.properties.build}" file="${app.properties}"/> |
438 | <copy overwrite="true" todir="${jdbc.properties.build}" file="${jdbc.properties}"/> |
||
1325 | jmachado | 439 | <copy overwrite="true" todir="${jdbc.olap.properties.build}" file="${jdbc.olap.properties}"/> |
1 | fvelez | 440 | <copy overwrite="true" todir="${ldap.properties.build}" file="${ldap.properties}"/> |
441 | <copy overwrite="true" todir="${build.dir.classes}" file="${log4j.properties}"/> |
||
214 | jmachado | 442 | <mkdir dir="${build.dir.intranet.setup.folders.file}"/> |
443 | <copy overwrite="true" todir="${build.dir.intranet.setup.folders.file}" file="${intranet.setup.folders.file.src}"/> |
||
219 | jmachado | 444 | |
368 | jmachado | 445 | <mkdir dir="${build.dir.classes}/pt/estgp/estgweb/directories"/> |
446 | <copy overwrite="true" todir="${build.dir.classes}/pt/estgp/estgweb/directories"> |
||
447 | <fileset dir="${conf.dir}/directories" includes="*.*"/> |
||
448 | </copy> |
||
347 | jmachado | 449 | <!--<java classname="${scripts.buider.class}" classpath="${build.dir.classes}">--> |
450 | <!--<arg value="${basedir}${file.separator}..${file.separator}common"/>--> |
||
451 | <!--<arg value="${basedir}${file.separator}build${file.separator}ant${file.separator}classes"/>--> |
||
452 | <!--<arg value="${build.dir.scripts}"/>--> |
||
453 | <!--<arg value="${scripts.target.libs.file}"/>--> |
||
454 | <!--</java>--> |
||
455 | <!--<copy overwrite="true" todir="${build.dir.scripts}">--> |
||
456 | <!--<fileset dir="${src.scripts}" includes="*.*"/>--> |
||
457 | <!--</copy>--> |
||
244 | jmachado | 458 | |
1 | fvelez | 459 | </target> |
460 | |||
1549 | jmachado | 461 | <target name="copyXslFiles"> |
462 | |||
463 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
464 | <fileset dir="${src.dir}" includes="**/*.xsl"/> |
||
465 | </copy> |
||
466 | |||
467 | |||
468 | </target> |
||
469 | |||
1 | fvelez | 470 | <target name="replaceFiltersConfigurationFiles"> |
471 | <delete file="${build.dir.classes}/MessageResources.properties"/> |
||
1320 | jmachado | 472 | <!--<concat encoding="ISO-8859-1" destfile="${build.dir.classes}/MessageResources.properties" append="true"> |
1 | fvelez | 473 | <fileset dir="${conf.dir}/language"> |
474 | <include name="*.properties" /> |
||
475 | </fileset> |
||
1320 | jmachado | 476 | </concat>--> |
477 | <copy todir="${build.dir.classes}"> |
||
478 | <fileset dir="${conf.dir}/language"> |
||
479 | <include name="*.properties" /> |
||
480 | </fileset> |
||
481 | </copy> |
||
1 | fvelez | 482 | <replace file="${jdbc.properties.build}/${jdbc.properties.filename}"> |
483 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
484 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
485 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
486 | </replace> |
||
1325 | jmachado | 487 | <replace file="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}"> |
488 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
489 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
490 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
491 | </replace> |
||
1 | fvelez | 492 | <replace file="${hibernate.cfg.xml.build}/${hibernate.cfg.xml.filename}"> |
493 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
494 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
495 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
496 | <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/> |
||
497 | </replace> |
||
1325 | jmachado | 498 | <!-- |
499 | <replace file="${olap.cfg.xml.build}/${olap.cfg.xml.filename}"> |
||
500 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
501 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
502 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
503 | <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/> |
||
504 | </replace>--> |
||
1 | fvelez | 505 | <replace file="${app.properties.build}/app.properties"> |
1525 | jmachado | 506 | |
507 | |||
508 | <replacefilter token="@google.recaptcha.secret.key@" value="${google.recaptcha.secret.key}"/> |
||
509 | |||
1426 | jmachado | 510 | <replacefilter token="@admin.email.1@" value="${admin.email.1}"/> |
511 | <replacefilter token="@admin.email.2@" value="${admin.email.2}"/> |
||
1 | fvelez | 512 | <replacefilter token="@tmp.dir@" value="${tmp.dir}"/> |
187 | jmachado | 513 | <replacefilter token="@data.dir@" value="${data.dir}"/> |
1 | fvelez | 514 | <replacefilter token="@out.dir@" value="${out.dir}"/> |
29 | jmachado | 515 | <replacefilter token="@email.templates.dir@" value="${email.templates.dir}"/> |
79 | jmachado | 516 | <replacefilter token="@use.ldap@" value="${use.ldap}"/> |
146 | jmachado | 517 | <replacefilter token="@site.url@" value="${site.url}"/> |
1017 | jmachado | 518 | <!-- DONT USE ANY MORE NOW IS IN CONFIGURATION DAO <replacefilter token="@ws.siges.wsdl@" value="${ws.siges.wsdl}"/>--> |
163 | jmachado | 519 | <replacefilter token="@ws.siges.target.namespace@" value="${ws.siges.target.namespace}"/> |
214 | jmachado | 520 | <replacefilter token="@intranet.setup.folders.file@" value="${build.dir.relative.intranet.setup.folders.file}"/> |
521 | <replacefilter token="@intranet.setup.folders.filename@" value="${intranet.setup.folders.filename}"/> |
||
1235 | jmachado | 522 | |
523 | <replacefilter token="@oracle.siges.url@" value="${oracle.siges.url}"/> |
||
524 | <replacefilter token="@oracle.siges.username@" value="${oracle.siges.username}"/> |
||
525 | <replacefilter token="@oracle.siges.password@" value="${oracle.siges.password}"/> |
||
526 | |||
1312 | jmachado | 527 | <!--System instance type specifications--> |
1327 | jmachado | 528 | |
529 | <replacefilter token="@email.password@" value="${email.password}"/> |
||
1426 | jmachado | 530 | <replacefilter token="@email.user.sufix@" value="${email.user.sufix}"/> |
1459 | jmachado | 531 | |
532 | <replacefilter token="@email.user.count@" value="${email.user.count}"/> |
||
1431 | jmachado | 533 | <replacefilter token="@email.use.round.robin@" value="${email.use.round.robin}"/> |
1459 | jmachado | 534 | |
1431 | jmachado | 535 | <replacefilter token="@email.use.security@" value="${email.use.security}"/> |
1426 | jmachado | 536 | <replacefilter token="@email.user.prefix@" value="${email.user.prefix}"/> |
1431 | jmachado | 537 | <replacefilter token="@email.from@" value="${email.from}"/> |
1432 | jmachado | 538 | <replacefilter token="@email.server@" value="${email.server}"/> |
1327 | jmachado | 539 | <replacefilter token="@test.control.var@" value="${test.control.var}"/> |
1394 | jmachado | 540 | |
541 | <replacefilter token="@mode.pae.enabled@" value="${mode.pae.enabled}"/> |
||
1312 | jmachado | 542 | <replacefilter token="@system.theme@" value="${system.theme}"/> |
543 | <replacefilter token="@authentication.policy.service@" value="${authentication.policy.service}"/> |
||
544 | <replacefilter token="@authentication.policy.username.msg.key@" value="${authentication.policy.username.msg.key}"/> |
||
545 | <replacefilter token="@authentication.policy.password.msg.key@" value="${authentication.policy.password.msg.key}"/> |
||
546 | <replacefilter token="@system.redirections.policy.index.welcome@" value="${system.redirections.policy.index.welcome}"/> |
||
547 | <replacefilter token="@system.redirections.policy.authentication.action@" value="${system.redirections.policy.authentication.action}"/> |
||
1387 | jmachado | 548 | <replacefilter token="@system.redirections.policy.authentication.logout.action@" value="${system.redirections.policy.authentication.logout.action}"/> |
1455 | jmachado | 549 | <replacefilter token="@system.mail.standard.certificated.home.page@" value="${system.mail.standard.certificated.home.page}"/> |
1312 | jmachado | 550 | |
1455 | jmachado | 551 | |
1312 | jmachado | 552 | <replacefilter token="@system.intranet.url@" value="${system.intranet.url}"/> |
553 | <replacefilter token="@system.public.url@" value="${system.public.url}"/> |
||
554 | |||
1324 | jmachado | 555 | <replacefilter token="@ionline.user@" value="${ionline.user}"/> |
556 | <replacefilter token="@ionline.pass@" value="${ionline.pass}"/> |
||
1 | fvelez | 557 | </replace> |
558 | <replace file="${build.dir.classes}/${log4j.properties.filename}"> |
||
559 | <replacefilter token="@log.file@" value="${log.file}"/> |
||
299 | jmachado | 560 | <replacefilter token="@log.level@" value="${log.level}"/> |
1 | fvelez | 561 | </replace> |
352 | jmachado | 562 | <!--<replace file="${build.dir.scripts}/${scripts.setenv.file}"> |
219 | jmachado | 563 | <replacefilter token="@tomcat.home@" value="${tomcat.home}"/> |
352 | jmachado | 564 | </replace>--> |
1 | fvelez | 565 | <replace file="${jdbc.properties.build}/${jdbc.properties.filename}"> |
566 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
567 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
568 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
569 | </replace> |
||
1325 | jmachado | 570 | <replace file="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}"> |
571 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
572 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
573 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
574 | </replace> |
||
1 | fvelez | 575 | </target> |
576 | <target name="generateHibernateCfgXml" depends="compileToolFiles"> |
||
577 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
||
578 | <java classname="${mapping.buider.class}" classpath="${build.dir.classes}"> |
||
579 | <arg value="${hibernate.cfg.xml.build}"/> |
||
580 | <arg value="${hibernate.cfg.xml}"/> |
||
581 | <arg value="${package.dir}"/> |
||
1325 | jmachado | 582 | <!--<arg value="Olap"/> O Hibernate.cfg serve para tudo no entanto o schema update e feito |
583 | <arg value="false"/> com o jdbc.olap para que estas tabelas fiquem como MyISAM |
||
584 | --> |
||
1 | fvelez | 585 | </java> |
1325 | jmachado | 586 | <!--<echo message="Starting OLAP"/> |
587 | <java classname="${mapping.buider.class}" classpath="${build.dir.classes}"> |
||
588 | <arg value="${olap.cfg.xml.build}"/> |
||
589 | <arg value="${olap.cfg.xml}"/> |
||
590 | <arg value="${package.dir}"/> |
||
591 | <arg value="Olap"/> |
||
592 | <arg value="true"/> |
||
593 | </java>--> |
||
1 | fvelez | 594 | <antcall target="replaceFiltersConfigurationFiles"/> |
595 | </target> |
||
596 | <target name="dbInit"> |
||
1325 | jmachado | 597 | <!--<delete file="${build.dir.classes}/${olap.cfg.xml.filename}"/>--> |
7 | jmachado | 598 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
599 | <java classname="pt.estgp.estgweb.examples.DBInit" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
1 | fvelez | 600 | |
7 | jmachado | 601 | <antcall target="replaceFiltersConfigurationFiles"/> |
602 | </target> |
||
1 | fvelez | 603 | |
604 | |||
7 | jmachado | 605 | |
1 | fvelez | 606 | <!-- |
607 | Hibernate Tools Task |
||
608 | --> |
||
7 | jmachado | 609 | <taskdef name="hibernatetool" |
610 | classname="org.hibernate.tool.ant.HibernateToolTask" |
||
611 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
1 | fvelez | 612 | <!-- |
613 | ========================================================================================== |
||
614 | GENERATE SQL SCRIPTS |
||
615 | ========================================================================================== |
||
616 | --> |
||
617 | <taskdef name="schemaexport" |
||
618 | classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" |
||
619 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
620 | |||
621 | |||
1070 | jmachado | 622 | |
1312 | jmachado | 623 | <!-- |
215 | jmachado | 624 | <target name="generateHibernateSql" depends="build"> |
1 | fvelez | 625 | <schemaexport |
626 | properties="${jdbc.properties.build}/${jdbc.properties.filename}" |
||
627 | quiet="no" |
||
628 | text="no" |
||
629 | drop="no" |
||
630 | delimiter=";" |
||
631 | output="${build.dir.classes}/app-scripts.sql"> |
||
632 | <fileset dir="${hbm.dir}"> |
||
633 | <include name="**/*.hbm.xml"/> |
||
1325 | jmachado | 634 | <exclude name="**/Olap*.hbm.xml"/> |
1 | fvelez | 635 | </fileset> |
636 | </schemaexport> |
||
1325 | jmachado | 637 | <schemaexport |
638 | properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}" |
||
639 | quiet="no" |
||
640 | text="no" |
||
641 | drop="no" |
||
642 | delimiter=";" |
||
643 | output="${build.dir.classes}/app-scripts.sql"> |
||
644 | <fileset dir="${hbm.dir}"> |
||
645 | <include name="**/Olap*.hbm.xml"/> |
||
646 | </fileset> |
||
647 | </schemaexport> |
||
1312 | jmachado | 648 | </target>--> |
1 | fvelez | 649 | |
852 | jmachado | 650 | <target name="generateUpdateHibernateSql" depends="build"> |
1547 | jmachado | 651 | <!--<taskdef name="schemaupdate" |
652 | classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" |
||
653 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>--> |
||
852 | jmachado | 654 | <taskdef name="schemaupdate" |
1547 | jmachado | 655 | classname="jomm.dao.utils.JommSchemaUpdateTask" |
656 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
852 | jmachado | 657 | <schemaupdate |
658 | properties="${jdbc.properties.build}/${jdbc.properties.filename}" |
||
1547 | jmachado | 659 | quiet="false" |
660 | text="false"> |
||
852 | jmachado | 661 | <fileset dir="${hbm.dir}"> |
662 | <include name="**/*.hbm.xml"/> |
||
1386 | jmachado | 663 | <!--<exclude name="**/Olap*.hbm.xml"/>--> |
852 | jmachado | 664 | </fileset> |
665 | </schemaupdate> |
||
1325 | jmachado | 666 | |
1386 | jmachado | 667 | <!-- |
1325 | jmachado | 668 | <schemaupdate |
669 | properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}" |
||
670 | quiet="no" |
||
671 | text="no"> |
||
672 | <fileset dir="${hbm.dir}"> |
||
673 | <include name="**/Olap*.hbm.xml"/> |
||
674 | </fileset> |
||
1386 | jmachado | 675 | </schemaupdate>--> |
852 | jmachado | 676 | </target> |
677 | |||
1 | fvelez | 678 | <target name="generateHibernateDomainObjects"> |
691 | jmachado | 679 | <replace dir="${hbm.dir}" value=""> |
680 | <include name="**/*.hbm.xml"/> |
||
681 | <replacefilter token='<timestamp source="db"' value="<timestamp"/> |
||
682 | </replace> |
||
1 | fvelez | 683 | <hibernatetool> |
684 | <configuration> |
||
685 | <fileset dir="${hbm.dir}"> |
||
686 | <include name="**/*.hbm.xml"/> |
||
687 | </fileset> |
||
688 | </configuration> |
||
689 | <hbm2java |
||
690 | jdk5="true" |
||
691 | ejb3="false" |
||
692 | destdir="${gen.dir.java}"/> |
||
693 | </hibernatetool> |
||
694 | <delete> |
||
695 | <fileset dir="${gen.dir.java}"> |
||
696 | <include name="**/*Impl.java"/> |
||
697 | </fileset> |
||
698 | </delete> |
||
691 | jmachado | 699 | <replace dir="${hbm.dir}" value=""> |
700 | <include name="**/*.hbm.xml"/> |
||
701 | <replacefilter token='<timestamp' value='<timestamp source="db"'/> |
||
702 | </replace> |
||
1 | fvelez | 703 | </target> |
704 | |||
705 | |||
706 | <!-- |
||
707 | ========================================================================================== |
||
708 | GENERATE DAO IMPLEMENTATION |
||
709 | ========================================================================================== |
||
710 | --> |
||
711 | <target name="generateHibernateDaoClasses"> |
||
712 | <hibernatetool destdir="${gen.dir.java}" > |
||
713 | <configuration> |
||
714 | <fileset dir="${hbm.dir}"> |
||
715 | <include name="**/*.hbm.xml"/> |
||
716 | </fileset> |
||
717 | </configuration> |
||
718 | <hbmtemplate |
||
719 | filepattern="{class-name}${dao.file.pattern}.java" |
||
720 | templatepath="${dao.template.dir}" |
||
721 | template="${dao.impl.template}" |
||
722 | destdir="${dao.impl.package.dir}"> |
||
723 | <property key="jdk5" value="true"/> |
||
724 | <property key="ejb3" value="false"/> |
||
725 | <property key="dao" value="${dao.file.pattern}"/> |
||
726 | <property key="daoDomainPackage" value="${domain.package}"/> |
||
727 | <property key="daoInterfacesPackage" value="${dao.interfaces.package}"/> |
||
728 | <property key="daoImplPackage" value="${dao.impl.package}"/> |
||
729 | </hbmtemplate> |
||
730 | </hibernatetool> |
||
731 | <delete> |
||
732 | <fileset dir="${gen.dir.java}"> |
||
733 | <include name="**/*ImplDao.java"/> |
||
734 | </fileset> |
||
735 | </delete> |
||
736 | </target> |
||
737 | |||
1235 | jmachado | 738 | <!-- |
739 | ========================================================================================== |
||
740 | Generate Hibernate UML Diagrams |
||
741 | ========================================================================================== |
||
1 | fvelez | 742 | |
1235 | jmachado | 743 | |
744 | <property name="doc" location="build/ant/diagrams"/> |
||
745 | |||
746 | <property name="dot.exe" location="/usr/local/bin/dot" /> |
||
747 | |||
748 | <taskdef |
||
749 | name="hbm2gif" |
||
750 | classname="com.oy.shared.lm.ant.HBMtoGIFTask" |
||
751 | classpathref="pathToToolsLib" |
||
752 | /> |
||
753 | |||
754 | <target name="generateHibernateUmlDiagram" depends="initDirs"> |
||
755 | <mkdir dir="${doc}"/> |
||
756 | <hbm2gif |
||
757 | caption="XML file for launching Catalina 5.0.25 applications using Apache Ant." |
||
758 | colors="cyan, lightcyan, orange, black, black" |
||
759 | inFile="${hbm.dir}/pt/estgp/estgweb/domain/CourseUnit.hbm.xml" |
||
760 | dotFile="${doc}/CourseUnit.dot" |
||
761 | outFile="${doc}/CourseUnit.gif" |
||
762 | exeFile="${dot.exe}" |
||
763 | /> |
||
764 | </target> |
||
765 | --> |
||
995 | jmachado | 766 | <!-- |
767 | ========================================================================================== |
||
768 | GENERATE WEBSERVICES JAXWS |
||
769 | ========================================================================================== |
||
770 | --> |
||
1 | fvelez | 771 | |
995 | jmachado | 772 | |
773 | <target name="ws.generate-siges-client" depends="initDirs"> |
||
774 | <taskdef name="wsimport2" classname="com.sun.tools.ws.ant.WsImport" |
||
775 | classpathref="pathToToolsLib"> |
||
776 | </taskdef> |
||
777 | <copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/> |
||
778 | <replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8"> |
||
779 | <replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/> |
||
780 | <replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/> |
||
781 | <replacefilter token="@ws.package@" value="${ws.siges.package}"/> |
||
782 | </replace> |
||
783 | <!--xendorsed="true"--> |
||
784 | <wsimport2 |
||
785 | |||
786 | debug="${ws.debug}" |
||
787 | verbose="${ws.verbose}" |
||
788 | keep="${ws.keep}" |
||
789 | extension="${ws.extension}" |
||
790 | destdir="${gen.dir.java}" |
||
791 | wsdl="${ws.siges.wsdl}"> |
||
792 | <binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/> |
||
793 | </wsimport2> |
||
794 | <delete> |
||
795 | <fileset dir="${gen.dir.java}"> |
||
796 | <include name="**/*.class"/> |
||
797 | </fileset> |
||
798 | </delete> |
||
799 | </target> |
||
800 | |||
801 | |||
1 | fvelez | 802 | <!-- |
995 | jmachado | 803 | ========================================================================================== |
1496 | jmachado | 804 | DIRECTORIES + STUDIES PLANS XSD JAXB |
1067 | jmachado | 805 | ========================================================================================== |
806 | --> |
||
807 | |||
808 | <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="pathToToolsLib"> |
||
809 | </taskdef> |
||
810 | |||
811 | <target name="directories-gen-jaxb" depends="initDirs"> |
||
812 | <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.directories.xsd"> |
||
813 | <schema dir="${conf.dir}/directories" includes="directory.xsd"/> |
||
814 | </xjc> |
||
815 | <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/directories/xsd" value=""> |
||
816 | <include name="*.java"/> |
||
817 | <replacefilter token="public Boolean is" value="public Boolean get"/> |
||
818 | </replace> |
||
819 | </target> |
||
820 | |||
821 | |||
1496 | jmachado | 822 | <target name="studies-plan-gen-jaxb" depends="initDirs"> |
823 | <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.courses.xsd"> |
||
824 | <schema dir="src/xsd" includes="planoestudos.xsd"/> |
||
825 | </xjc> |
||
826 | <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/courses/xsd" value=""> |
||
827 | <include name="*.java"/> |
||
828 | <replacefilter token="public Boolean is" value="public Boolean get"/> |
||
829 | </replace> |
||
830 | </target> |
||
1067 | jmachado | 831 | |
832 | <!-- |
||
833 | ========================================================================================== |
||
995 | jmachado | 834 | DEAMONS |
835 | ========================================================================================== |
||
1 | fvelez | 836 | --> |
837 | |||
838 | <!--<target name="run">--> |
||
839 | <!--<java classname="mitra.oaiharvest.harvest.HarvestEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>--> |
||
840 | <!--<java classname="mitra.oaiharvest.index.IndexEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>--> |
||
841 | <!--</target>--> |
||
336 | jmachado | 842 | <target name="util.task.createRepositoryXML"> |
843 | <java classname="pt.estgp.estgweb.services.data.CreateDescriptionsXML" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
844 | </target> |
||
359 | jmachado | 845 | <target name="util.task.reset.urlsstats"> |
846 | <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
847 | </target> |
||
438 | jmachado | 848 | <target name="util.task.reset.urlsstats.digests"> |
849 | <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsServiceDigests" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
850 | </target> |
||
1 | fvelez | 851 | |
1362 | jmachado | 852 | <target name="CourseUnitsStatisticsJobService"> |
853 | <java classname="pt.estgp.estgweb.services.courses.CourseUnitsStatisticsJobService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
854 | </target> |
||
336 | jmachado | 855 | |
1235 | jmachado | 856 | |
1553 | jmachado | 857 | <target name="RUNReportQuestionariosGeneratorTest" depends="compile,copyXslFiles"> |
1575 | jmachado | 858 | <java fork="true" jvmargs="-Dfile.encoding=UTF-8" classname="pt.estgp.estgweb.services.questionarios.pedagogico.reportprocessors.DocenteReportGenerator" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
1549 | jmachado | 859 | </target> |
1362 | jmachado | 860 | |
1607 | jmachado | 861 | <target name="RUNZipFolderAdHoc"> |
862 | <java fork="true" jvmargs="-Dfile.encoding=UTF-8" classname="pt.estgp.estgweb.services.questionarios.pedagogico.reportprocessors.utils.ZipFolderForReportDocente" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
863 | </target> |
||
1362 | jmachado | 864 | |
865 | |||
1549 | jmachado | 866 | |
1607 | jmachado | 867 | |
1603 | jmachado | 868 | <target name="print-version"> |
869 | <echo>Java/JVM version: ${ant.java.version}</echo> |
||
870 | <echo>Java/JVM detail version: ${java.version}</echo> |
||
871 | </target> |
||
1549 | jmachado | 872 | |
273 | jmachado | 873 | </project> |