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