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