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