Subversion Repositories bacoAlunos

Rev

Rev 1810 | Rev 1821 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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