Rev 1593 | Rev 1598 | 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}"/> |
||
347 | <tomcat.jasper 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> |
||
1 | fvelez | 359 | </target> |
360 | |||
361 | <target name="war" depends="build.war"> |
||
362 | <delete file="${dist.dir}/${tomcat.war.file}"/> |
||
363 | <jar destfile="${dist.dir}/${tomcat.war.file}"> |
||
364 | <fileset dir="${build.dir.war}"> |
||
365 | <include name="**/*" /> |
||
366 | </fileset> |
||
367 | </jar> |
||
368 | </target> |
||
369 | |||
385 | jmachado | 370 | <target name="war.jasper" depends="build.war,jasper"> |
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> |
||
1 | fvelez | 378 | |
385 | jmachado | 379 | |
1 | fvelez | 380 | <!-- |
381 | ========================================================================================== |
||
382 | Generate Configuration Files TASKS |
||
383 | ========================================================================================== |
||
384 | --> |
||
229 | jmachado | 385 | <target name="createConfigurationFiles" depends="compileToolFiles,copyConfigurationFiles,replaceFiltersConfigurationFiles,generateHibernateCfgXml"/> |
1 | fvelez | 386 | |
387 | <target name="copyConfigurationFiles"> |
||
388 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
389 | <fileset dir="${hbm.dir}" includes="**/*.hbm.xml"/> |
||
390 | </copy> |
||
244 | jmachado | 391 | <mkdir dir="${build.dir.classes}/template/xsd"/> |
392 | <copy todir="${build.dir.classes}/template/xsd" overwrite="true"> |
||
393 | <fileset dir="${src.xsd}"> |
||
394 | <include name="**/*.xsl"/> |
||
395 | <include name="**/*.xsd"/> |
||
396 | </fileset> |
||
397 | </copy> |
||
1 | fvelez | 398 | <copy overwrite="true" todir="${build.dir.classes}"> |
399 | <fileset dir="${src.dir}" includes="**/*.xsl"/> |
||
400 | </copy> |
||
401 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
730 | jmachado | 402 | <fileset dir="${src.dir}" includes="**/*.gif"/> |
403 | </copy> |
||
404 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
1554 | jmachado | 405 | <fileset dir="${src.dir}" includes="**/*.png"/> |
406 | </copy> |
||
407 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
381 | jmachado | 408 | <fileset dir="${src.dir}" includes="**/*.csv"/> |
409 | </copy> |
||
410 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
1 | fvelez | 411 | <fileset dir="${conf.dir}/berserk" includes="*.*"/> |
412 | </copy> |
||
29 | jmachado | 413 | <mkdir dir="${email.templates.dir.build}"/> |
414 | <copy overwrite="true" todir="${email.templates.dir.build}"> |
||
415 | <fileset dir="${email.templates.dir.conf}" includes="*.*"/> |
||
416 | </copy> |
||
227 | jmachado | 417 | <mkdir dir="${sms.templates.dir.build}"/> |
418 | <copy overwrite="true" todir="${sms.templates.dir.build}"> |
||
419 | <fileset dir="${sms.templates.dir.conf}" includes="*.*"/> |
||
420 | </copy> |
||
215 | jmachado | 421 | <mkdir dir="${assignement.templates.dir.build}"/> |
422 | <copy overwrite="true" todir="${assignement.templates.dir.build}"> |
||
423 | <fileset dir="${assignement.templates.dir.conf}" includes="*.*"/> |
||
424 | </copy> |
||
1325 | jmachado | 425 | <!--<copy overwrite="true" todir="${olap.cfg.xml.build}" file="${olap.cfg.xml}"/>--> |
1 | fvelez | 426 | <copy overwrite="true" todir="${hibernate.cfg.xml.build}" file="${hibernate.cfg.xml}"/> |
18 | jmachado | 427 | <copy overwrite="true" todir="${mime.types.build}" file="${mime.types}"/> |
1 | fvelez | 428 | <copy overwrite="true" todir="${app.properties.build}" file="${app.properties}"/> |
429 | <copy overwrite="true" todir="${jdbc.properties.build}" file="${jdbc.properties}"/> |
||
1325 | jmachado | 430 | <copy overwrite="true" todir="${jdbc.olap.properties.build}" file="${jdbc.olap.properties}"/> |
1 | fvelez | 431 | <copy overwrite="true" todir="${ldap.properties.build}" file="${ldap.properties}"/> |
432 | <copy overwrite="true" todir="${build.dir.classes}" file="${log4j.properties}"/> |
||
214 | jmachado | 433 | <mkdir dir="${build.dir.intranet.setup.folders.file}"/> |
434 | <copy overwrite="true" todir="${build.dir.intranet.setup.folders.file}" file="${intranet.setup.folders.file.src}"/> |
||
219 | jmachado | 435 | |
368 | jmachado | 436 | <mkdir dir="${build.dir.classes}/pt/estgp/estgweb/directories"/> |
437 | <copy overwrite="true" todir="${build.dir.classes}/pt/estgp/estgweb/directories"> |
||
438 | <fileset dir="${conf.dir}/directories" includes="*.*"/> |
||
439 | </copy> |
||
347 | jmachado | 440 | <!--<java classname="${scripts.buider.class}" classpath="${build.dir.classes}">--> |
441 | <!--<arg value="${basedir}${file.separator}..${file.separator}common"/>--> |
||
442 | <!--<arg value="${basedir}${file.separator}build${file.separator}ant${file.separator}classes"/>--> |
||
443 | <!--<arg value="${build.dir.scripts}"/>--> |
||
444 | <!--<arg value="${scripts.target.libs.file}"/>--> |
||
445 | <!--</java>--> |
||
446 | <!--<copy overwrite="true" todir="${build.dir.scripts}">--> |
||
447 | <!--<fileset dir="${src.scripts}" includes="*.*"/>--> |
||
448 | <!--</copy>--> |
||
244 | jmachado | 449 | |
1 | fvelez | 450 | </target> |
451 | |||
1549 | jmachado | 452 | <target name="copyXslFiles"> |
453 | |||
454 | <copy overwrite="true" todir="${build.dir.classes}"> |
||
455 | <fileset dir="${src.dir}" includes="**/*.xsl"/> |
||
456 | </copy> |
||
457 | |||
458 | |||
459 | </target> |
||
460 | |||
1 | fvelez | 461 | <target name="replaceFiltersConfigurationFiles"> |
462 | <delete file="${build.dir.classes}/MessageResources.properties"/> |
||
1320 | jmachado | 463 | <!--<concat encoding="ISO-8859-1" destfile="${build.dir.classes}/MessageResources.properties" append="true"> |
1 | fvelez | 464 | <fileset dir="${conf.dir}/language"> |
465 | <include name="*.properties" /> |
||
466 | </fileset> |
||
1320 | jmachado | 467 | </concat>--> |
468 | <copy todir="${build.dir.classes}"> |
||
469 | <fileset dir="${conf.dir}/language"> |
||
470 | <include name="*.properties" /> |
||
471 | </fileset> |
||
472 | </copy> |
||
1 | fvelez | 473 | <replace file="${jdbc.properties.build}/${jdbc.properties.filename}"> |
474 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
475 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
476 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
477 | </replace> |
||
1325 | jmachado | 478 | <replace file="${jdbc.olap.properties.build}/${jdbc.olap.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> |
||
1 | fvelez | 483 | <replace file="${hibernate.cfg.xml.build}/${hibernate.cfg.xml.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 | <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/> |
||
488 | </replace> |
||
1325 | jmachado | 489 | <!-- |
490 | <replace file="${olap.cfg.xml.build}/${olap.cfg.xml.filename}"> |
||
491 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
492 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
493 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
494 | <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/> |
||
495 | </replace>--> |
||
1 | fvelez | 496 | <replace file="${app.properties.build}/app.properties"> |
1525 | jmachado | 497 | |
498 | |||
499 | <replacefilter token="@google.recaptcha.secret.key@" value="${google.recaptcha.secret.key}"/> |
||
500 | |||
1426 | jmachado | 501 | <replacefilter token="@admin.email.1@" value="${admin.email.1}"/> |
502 | <replacefilter token="@admin.email.2@" value="${admin.email.2}"/> |
||
1 | fvelez | 503 | <replacefilter token="@tmp.dir@" value="${tmp.dir}"/> |
187 | jmachado | 504 | <replacefilter token="@data.dir@" value="${data.dir}"/> |
1 | fvelez | 505 | <replacefilter token="@out.dir@" value="${out.dir}"/> |
29 | jmachado | 506 | <replacefilter token="@email.templates.dir@" value="${email.templates.dir}"/> |
79 | jmachado | 507 | <replacefilter token="@use.ldap@" value="${use.ldap}"/> |
146 | jmachado | 508 | <replacefilter token="@site.url@" value="${site.url}"/> |
1017 | jmachado | 509 | <!-- DONT USE ANY MORE NOW IS IN CONFIGURATION DAO <replacefilter token="@ws.siges.wsdl@" value="${ws.siges.wsdl}"/>--> |
163 | jmachado | 510 | <replacefilter token="@ws.siges.target.namespace@" value="${ws.siges.target.namespace}"/> |
214 | jmachado | 511 | <replacefilter token="@intranet.setup.folders.file@" value="${build.dir.relative.intranet.setup.folders.file}"/> |
512 | <replacefilter token="@intranet.setup.folders.filename@" value="${intranet.setup.folders.filename}"/> |
||
1235 | jmachado | 513 | |
514 | <replacefilter token="@oracle.siges.url@" value="${oracle.siges.url}"/> |
||
515 | <replacefilter token="@oracle.siges.username@" value="${oracle.siges.username}"/> |
||
516 | <replacefilter token="@oracle.siges.password@" value="${oracle.siges.password}"/> |
||
517 | |||
1312 | jmachado | 518 | <!--System instance type specifications--> |
1327 | jmachado | 519 | |
520 | <replacefilter token="@email.password@" value="${email.password}"/> |
||
1426 | jmachado | 521 | <replacefilter token="@email.user.sufix@" value="${email.user.sufix}"/> |
1459 | jmachado | 522 | |
523 | <replacefilter token="@email.user.count@" value="${email.user.count}"/> |
||
1431 | jmachado | 524 | <replacefilter token="@email.use.round.robin@" value="${email.use.round.robin}"/> |
1459 | jmachado | 525 | |
1431 | jmachado | 526 | <replacefilter token="@email.use.security@" value="${email.use.security}"/> |
1426 | jmachado | 527 | <replacefilter token="@email.user.prefix@" value="${email.user.prefix}"/> |
1431 | jmachado | 528 | <replacefilter token="@email.from@" value="${email.from}"/> |
1432 | jmachado | 529 | <replacefilter token="@email.server@" value="${email.server}"/> |
1327 | jmachado | 530 | <replacefilter token="@test.control.var@" value="${test.control.var}"/> |
1394 | jmachado | 531 | |
532 | <replacefilter token="@mode.pae.enabled@" value="${mode.pae.enabled}"/> |
||
1312 | jmachado | 533 | <replacefilter token="@system.theme@" value="${system.theme}"/> |
534 | <replacefilter token="@authentication.policy.service@" value="${authentication.policy.service}"/> |
||
535 | <replacefilter token="@authentication.policy.username.msg.key@" value="${authentication.policy.username.msg.key}"/> |
||
536 | <replacefilter token="@authentication.policy.password.msg.key@" value="${authentication.policy.password.msg.key}"/> |
||
537 | <replacefilter token="@system.redirections.policy.index.welcome@" value="${system.redirections.policy.index.welcome}"/> |
||
538 | <replacefilter token="@system.redirections.policy.authentication.action@" value="${system.redirections.policy.authentication.action}"/> |
||
1387 | jmachado | 539 | <replacefilter token="@system.redirections.policy.authentication.logout.action@" value="${system.redirections.policy.authentication.logout.action}"/> |
1455 | jmachado | 540 | <replacefilter token="@system.mail.standard.certificated.home.page@" value="${system.mail.standard.certificated.home.page}"/> |
1312 | jmachado | 541 | |
1455 | jmachado | 542 | |
1312 | jmachado | 543 | <replacefilter token="@system.intranet.url@" value="${system.intranet.url}"/> |
544 | <replacefilter token="@system.public.url@" value="${system.public.url}"/> |
||
545 | |||
1324 | jmachado | 546 | <replacefilter token="@ionline.user@" value="${ionline.user}"/> |
547 | <replacefilter token="@ionline.pass@" value="${ionline.pass}"/> |
||
1 | fvelez | 548 | </replace> |
549 | <replace file="${build.dir.classes}/${log4j.properties.filename}"> |
||
550 | <replacefilter token="@log.file@" value="${log.file}"/> |
||
299 | jmachado | 551 | <replacefilter token="@log.level@" value="${log.level}"/> |
1 | fvelez | 552 | </replace> |
352 | jmachado | 553 | <!--<replace file="${build.dir.scripts}/${scripts.setenv.file}"> |
219 | jmachado | 554 | <replacefilter token="@tomcat.home@" value="${tomcat.home}"/> |
352 | jmachado | 555 | </replace>--> |
1 | fvelez | 556 | <replace file="${jdbc.properties.build}/${jdbc.properties.filename}"> |
557 | <replacefilter token="@database.username@" value="${database.username}"/> |
||
558 | <replacefilter token="@database.password@" value="${database.password}"/> |
||
559 | <replacefilter token="@database.connection.url@" value="${database.connection.url}"/> |
||
560 | </replace> |
||
1325 | jmachado | 561 | <replace file="${jdbc.olap.properties.build}/${jdbc.olap.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> |
||
1 | fvelez | 566 | </target> |
567 | <target name="generateHibernateCfgXml" depends="compileToolFiles"> |
||
568 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
||
569 | <java classname="${mapping.buider.class}" classpath="${build.dir.classes}"> |
||
570 | <arg value="${hibernate.cfg.xml.build}"/> |
||
571 | <arg value="${hibernate.cfg.xml}"/> |
||
572 | <arg value="${package.dir}"/> |
||
1325 | jmachado | 573 | <!--<arg value="Olap"/> O Hibernate.cfg serve para tudo no entanto o schema update e feito |
574 | <arg value="false"/> com o jdbc.olap para que estas tabelas fiquem como MyISAM |
||
575 | --> |
||
1 | fvelez | 576 | </java> |
1325 | jmachado | 577 | <!--<echo message="Starting OLAP"/> |
578 | <java classname="${mapping.buider.class}" classpath="${build.dir.classes}"> |
||
579 | <arg value="${olap.cfg.xml.build}"/> |
||
580 | <arg value="${olap.cfg.xml}"/> |
||
581 | <arg value="${package.dir}"/> |
||
582 | <arg value="Olap"/> |
||
583 | <arg value="true"/> |
||
584 | </java>--> |
||
1 | fvelez | 585 | <antcall target="replaceFiltersConfigurationFiles"/> |
586 | </target> |
||
587 | <target name="dbInit"> |
||
1325 | jmachado | 588 | <!--<delete file="${build.dir.classes}/${olap.cfg.xml.filename}"/>--> |
7 | jmachado | 589 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
590 | <java classname="pt.estgp.estgweb.examples.DBInit" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
1 | fvelez | 591 | |
7 | jmachado | 592 | <antcall target="replaceFiltersConfigurationFiles"/> |
593 | </target> |
||
1 | fvelez | 594 | |
595 | |||
7 | jmachado | 596 | |
1 | fvelez | 597 | <!-- |
598 | Hibernate Tools Task |
||
599 | --> |
||
7 | jmachado | 600 | <taskdef name="hibernatetool" |
601 | classname="org.hibernate.tool.ant.HibernateToolTask" |
||
602 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
1 | fvelez | 603 | <!-- |
604 | ========================================================================================== |
||
605 | GENERATE SQL SCRIPTS |
||
606 | ========================================================================================== |
||
607 | --> |
||
608 | <taskdef name="schemaexport" |
||
609 | classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" |
||
610 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
611 | |||
612 | |||
1070 | jmachado | 613 | |
1312 | jmachado | 614 | <!-- |
215 | jmachado | 615 | <target name="generateHibernateSql" depends="build"> |
1 | fvelez | 616 | <schemaexport |
617 | properties="${jdbc.properties.build}/${jdbc.properties.filename}" |
||
618 | quiet="no" |
||
619 | text="no" |
||
620 | drop="no" |
||
621 | delimiter=";" |
||
622 | output="${build.dir.classes}/app-scripts.sql"> |
||
623 | <fileset dir="${hbm.dir}"> |
||
624 | <include name="**/*.hbm.xml"/> |
||
1325 | jmachado | 625 | <exclude name="**/Olap*.hbm.xml"/> |
1 | fvelez | 626 | </fileset> |
627 | </schemaexport> |
||
1325 | jmachado | 628 | <schemaexport |
629 | properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}" |
||
630 | quiet="no" |
||
631 | text="no" |
||
632 | drop="no" |
||
633 | delimiter=";" |
||
634 | output="${build.dir.classes}/app-scripts.sql"> |
||
635 | <fileset dir="${hbm.dir}"> |
||
636 | <include name="**/Olap*.hbm.xml"/> |
||
637 | </fileset> |
||
638 | </schemaexport> |
||
1312 | jmachado | 639 | </target>--> |
1 | fvelez | 640 | |
852 | jmachado | 641 | <target name="generateUpdateHibernateSql" depends="build"> |
1547 | jmachado | 642 | <!--<taskdef name="schemaupdate" |
643 | classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" |
||
644 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>--> |
||
852 | jmachado | 645 | <taskdef name="schemaupdate" |
1547 | jmachado | 646 | classname="jomm.dao.utils.JommSchemaUpdateTask" |
647 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
||
852 | jmachado | 648 | <schemaupdate |
649 | properties="${jdbc.properties.build}/${jdbc.properties.filename}" |
||
1547 | jmachado | 650 | quiet="false" |
651 | text="false"> |
||
852 | jmachado | 652 | <fileset dir="${hbm.dir}"> |
653 | <include name="**/*.hbm.xml"/> |
||
1386 | jmachado | 654 | <!--<exclude name="**/Olap*.hbm.xml"/>--> |
852 | jmachado | 655 | </fileset> |
656 | </schemaupdate> |
||
1325 | jmachado | 657 | |
1386 | jmachado | 658 | <!-- |
1325 | jmachado | 659 | <schemaupdate |
660 | properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}" |
||
661 | quiet="no" |
||
662 | text="no"> |
||
663 | <fileset dir="${hbm.dir}"> |
||
664 | <include name="**/Olap*.hbm.xml"/> |
||
665 | </fileset> |
||
1386 | jmachado | 666 | </schemaupdate>--> |
852 | jmachado | 667 | </target> |
668 | |||
1 | fvelez | 669 | <target name="generateHibernateDomainObjects"> |
691 | jmachado | 670 | <replace dir="${hbm.dir}" value=""> |
671 | <include name="**/*.hbm.xml"/> |
||
672 | <replacefilter token='<timestamp source="db"' value="<timestamp"/> |
||
673 | </replace> |
||
1 | fvelez | 674 | <hibernatetool> |
675 | <configuration> |
||
676 | <fileset dir="${hbm.dir}"> |
||
677 | <include name="**/*.hbm.xml"/> |
||
678 | </fileset> |
||
679 | </configuration> |
||
680 | <hbm2java |
||
681 | jdk5="true" |
||
682 | ejb3="false" |
||
683 | destdir="${gen.dir.java}"/> |
||
684 | </hibernatetool> |
||
685 | <delete> |
||
686 | <fileset dir="${gen.dir.java}"> |
||
687 | <include name="**/*Impl.java"/> |
||
688 | </fileset> |
||
689 | </delete> |
||
691 | jmachado | 690 | <replace dir="${hbm.dir}" value=""> |
691 | <include name="**/*.hbm.xml"/> |
||
692 | <replacefilter token='<timestamp' value='<timestamp source="db"'/> |
||
693 | </replace> |
||
1 | fvelez | 694 | </target> |
695 | |||
696 | |||
697 | <!-- |
||
698 | ========================================================================================== |
||
699 | GENERATE DAO IMPLEMENTATION |
||
700 | ========================================================================================== |
||
701 | --> |
||
702 | <target name="generateHibernateDaoClasses"> |
||
703 | <hibernatetool destdir="${gen.dir.java}" > |
||
704 | <configuration> |
||
705 | <fileset dir="${hbm.dir}"> |
||
706 | <include name="**/*.hbm.xml"/> |
||
707 | </fileset> |
||
708 | </configuration> |
||
709 | <hbmtemplate |
||
710 | filepattern="{class-name}${dao.file.pattern}.java" |
||
711 | templatepath="${dao.template.dir}" |
||
712 | template="${dao.impl.template}" |
||
713 | destdir="${dao.impl.package.dir}"> |
||
714 | <property key="jdk5" value="true"/> |
||
715 | <property key="ejb3" value="false"/> |
||
716 | <property key="dao" value="${dao.file.pattern}"/> |
||
717 | <property key="daoDomainPackage" value="${domain.package}"/> |
||
718 | <property key="daoInterfacesPackage" value="${dao.interfaces.package}"/> |
||
719 | <property key="daoImplPackage" value="${dao.impl.package}"/> |
||
720 | </hbmtemplate> |
||
721 | </hibernatetool> |
||
722 | <delete> |
||
723 | <fileset dir="${gen.dir.java}"> |
||
724 | <include name="**/*ImplDao.java"/> |
||
725 | </fileset> |
||
726 | </delete> |
||
727 | </target> |
||
728 | |||
1235 | jmachado | 729 | <!-- |
730 | ========================================================================================== |
||
731 | Generate Hibernate UML Diagrams |
||
732 | ========================================================================================== |
||
1 | fvelez | 733 | |
1235 | jmachado | 734 | |
735 | <property name="doc" location="build/ant/diagrams"/> |
||
736 | |||
737 | <property name="dot.exe" location="/usr/local/bin/dot" /> |
||
738 | |||
739 | <taskdef |
||
740 | name="hbm2gif" |
||
741 | classname="com.oy.shared.lm.ant.HBMtoGIFTask" |
||
742 | classpathref="pathToToolsLib" |
||
743 | /> |
||
744 | |||
745 | <target name="generateHibernateUmlDiagram" depends="initDirs"> |
||
746 | <mkdir dir="${doc}"/> |
||
747 | <hbm2gif |
||
748 | caption="XML file for launching Catalina 5.0.25 applications using Apache Ant." |
||
749 | colors="cyan, lightcyan, orange, black, black" |
||
750 | inFile="${hbm.dir}/pt/estgp/estgweb/domain/CourseUnit.hbm.xml" |
||
751 | dotFile="${doc}/CourseUnit.dot" |
||
752 | outFile="${doc}/CourseUnit.gif" |
||
753 | exeFile="${dot.exe}" |
||
754 | /> |
||
755 | </target> |
||
756 | --> |
||
995 | jmachado | 757 | <!-- |
758 | ========================================================================================== |
||
759 | GENERATE WEBSERVICES JAXWS |
||
760 | ========================================================================================== |
||
761 | --> |
||
1 | fvelez | 762 | |
995 | jmachado | 763 | |
764 | <target name="ws.generate-siges-client" depends="initDirs"> |
||
765 | <taskdef name="wsimport2" classname="com.sun.tools.ws.ant.WsImport" |
||
766 | classpathref="pathToToolsLib"> |
||
767 | </taskdef> |
||
768 | <copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/> |
||
769 | <replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8"> |
||
770 | <replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/> |
||
771 | <replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/> |
||
772 | <replacefilter token="@ws.package@" value="${ws.siges.package}"/> |
||
773 | </replace> |
||
774 | <!--xendorsed="true"--> |
||
775 | <wsimport2 |
||
776 | |||
777 | debug="${ws.debug}" |
||
778 | verbose="${ws.verbose}" |
||
779 | keep="${ws.keep}" |
||
780 | extension="${ws.extension}" |
||
781 | destdir="${gen.dir.java}" |
||
782 | wsdl="${ws.siges.wsdl}"> |
||
783 | <binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/> |
||
784 | </wsimport2> |
||
785 | <delete> |
||
786 | <fileset dir="${gen.dir.java}"> |
||
787 | <include name="**/*.class"/> |
||
788 | </fileset> |
||
789 | </delete> |
||
790 | </target> |
||
791 | |||
792 | |||
1 | fvelez | 793 | <!-- |
995 | jmachado | 794 | ========================================================================================== |
1496 | jmachado | 795 | DIRECTORIES + STUDIES PLANS XSD JAXB |
1067 | jmachado | 796 | ========================================================================================== |
797 | --> |
||
798 | |||
799 | <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="pathToToolsLib"> |
||
800 | </taskdef> |
||
801 | |||
802 | <target name="directories-gen-jaxb" depends="initDirs"> |
||
803 | <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.directories.xsd"> |
||
804 | <schema dir="${conf.dir}/directories" includes="directory.xsd"/> |
||
805 | </xjc> |
||
806 | <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/directories/xsd" value=""> |
||
807 | <include name="*.java"/> |
||
808 | <replacefilter token="public Boolean is" value="public Boolean get"/> |
||
809 | </replace> |
||
810 | </target> |
||
811 | |||
812 | |||
1496 | jmachado | 813 | <target name="studies-plan-gen-jaxb" depends="initDirs"> |
814 | <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.courses.xsd"> |
||
815 | <schema dir="src/xsd" includes="planoestudos.xsd"/> |
||
816 | </xjc> |
||
817 | <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/courses/xsd" value=""> |
||
818 | <include name="*.java"/> |
||
819 | <replacefilter token="public Boolean is" value="public Boolean get"/> |
||
820 | </replace> |
||
821 | </target> |
||
1067 | jmachado | 822 | |
823 | <!-- |
||
824 | ========================================================================================== |
||
995 | jmachado | 825 | DEAMONS |
826 | ========================================================================================== |
||
1 | fvelez | 827 | --> |
828 | |||
829 | <!--<target name="run">--> |
||
830 | <!--<java classname="mitra.oaiharvest.harvest.HarvestEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>--> |
||
831 | <!--<java classname="mitra.oaiharvest.index.IndexEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>--> |
||
832 | <!--</target>--> |
||
336 | jmachado | 833 | <target name="util.task.createRepositoryXML"> |
834 | <java classname="pt.estgp.estgweb.services.data.CreateDescriptionsXML" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
835 | </target> |
||
359 | jmachado | 836 | <target name="util.task.reset.urlsstats"> |
837 | <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
838 | </target> |
||
438 | jmachado | 839 | <target name="util.task.reset.urlsstats.digests"> |
840 | <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsServiceDigests" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
841 | </target> |
||
1 | fvelez | 842 | |
1362 | jmachado | 843 | <target name="CourseUnitsStatisticsJobService"> |
844 | <java classname="pt.estgp.estgweb.services.courses.CourseUnitsStatisticsJobService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
||
845 | </target> |
||
336 | jmachado | 846 | |
1235 | jmachado | 847 | |
1553 | jmachado | 848 | <target name="RUNReportQuestionariosGeneratorTest" depends="compile,copyXslFiles"> |
1575 | jmachado | 849 | <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 | 850 | </target> |
1362 | jmachado | 851 | |
852 | |||
853 | |||
1549 | jmachado | 854 | |
855 | |||
273 | jmachado | 856 | </project> |