Subversion Repositories bacoAlunos

Rev

Rev 1814 | Rev 1827 | 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
 
1821 jmachado 314
            <fileset dir="${common.lib.dir}/reflections">
315
                <include name="**/*.jar"/>
316
            </fileset>
317
 
318
 
1 fvelez 319
        </copy>
320
        <copy file="${dist.dir}/estgweb.jar" todir="${build.dir.war}/WEB-INF/lib"/>
321
        <copy todir="${build.dir.war}/WEB-INF" overwrite="true">
322
            <fileset dir="${conf.dir}/WEB-INF">
323
                <include name="**/*.*"/>
324
            </fileset>
325
        </copy>
326
        <mkdir dir="${build.dir.war}/WEB-INF/classes"/>
327
        <copy todir="${build.dir.war}/WEB-INF/classes" overwrite="true">
328
            <fileset dir="${build.dir.classes}">
18 jmachado 329
                <include name="**/*.types"/>
1 fvelez 330
                <include name="**/*.properties"/>
29 jmachado 331
                <include name="**/*.txt"/>
1 fvelez 332
                <include name="**/*.xml"/>
730 jmachado 333
                <include name="**/*.gif"/>
1554 jmachado 334
                <include name="**/*.png"/>
214 jmachado 335
                <include name="**/*.exe"/>
248 jmachado 336
                <include name="**/*.xsl"/>
337
                <include name="**/*.xsd"/>
1775 jmachado 338
                <include name="**/*.json"/>
1 fvelez 339
            </fileset>
340
        </copy>
341
        <copy todir="${build.dir.war}" overwrite="true">
342
            <fileset dir="src/web">
343
                <include name="**/*"/>
344
            </fileset>
1395 jmachado 345
 
1 fvelez 346
        </copy>
1395 jmachado 347
        <mkdir dir="${build.dir.war}/docs"/>
1507 jmachado 348
 
349
        <!--DOCUMENTOS IMPORTANTES ARQUITETURA EMPRESARIAL TODO REVER LOCALIZAÇÃO DOS MESMOS-->
1395 jmachado 350
        <copy todir="${build.dir.war}/docs" overwrite="true" file="src/doc/siges/ModeloDeInformacaoPAE-EmVigor.docx"/>
1507 jmachado 351
        <copy todir="${build.dir.war}/docs" overwrite="false" file="src/doc/siges/Modelo_de_Dados_Siges11.zip"/>
1395 jmachado 352
        <copy todir="${build.dir.war}/docs" overwrite="true" file="src/doc/BacoV32016/processos/DocumentacaoProcessos.doc"/>
353
 
48 fvelez 354
        <replace file="${build.dir.war}/js/ajax.js">
165 jmachado 355
            <replacefilter token="@contextPath@" value="${tomcat.context.path}"/>
48 fvelez 356
        </replace>
165 jmachado 357
        <replace file="${build.dir.war}/css/style.css">
358
            <replacefilter token="@contextPath@" value="${tomcat.context.path}"/>
359
        </replace>
360
        <replace file="${build.dir.war}/css/intranet.css">
361
            <replacefilter token="@contextPath@" value="${tomcat.context.path}"/>
362
        </replace>
385 jmachado 363
    </target>
165 jmachado 364
 
385 jmachado 365
    <target name="jasper" depends="copy.jsps.war">
366
        <delete dir="${build.dir.jsp}"/>
367
        <mkdir dir="${build.dir.jsp}"/>
1605 jmachado 368
        <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 369
        <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 370
            <src path="${build.dir.jsp}"/>
1597 jmachado 371
            <src path="${build.dir}/"/>
385 jmachado 372
            <classpath path="${build.dir.classes}"/>
373
            <classpath refid="pathToToolsLib"/>
374
        </javac>
375
        <delete>
376
            <fileset dir="${build.dir.war}">
377
                <include name="**/*.jsp"/>
378
            </fileset>
379
        </delete>
1598 jmachado 380
        <delete>
381
            <fileset dir="${build.dir.war}/WEB-INF/tags">
382
                <include name="**/*.jsp"/>
383
            </fileset>
384
        </delete>
1 fvelez 385
    </target>
386
 
387
    <target name="war" depends="build.war">
388
        <delete file="${dist.dir}/${tomcat.war.file}"/>
389
        <jar destfile="${dist.dir}/${tomcat.war.file}">
390
            <fileset dir="${build.dir.war}">
391
                <include name="**/*" />
392
            </fileset>
393
        </jar>
394
    </target>
395
 
385 jmachado 396
    <target name="war.jasper" depends="build.war,jasper">
397
        <delete file="${dist.dir}/${tomcat.war.file}"/>
398
        <jar destfile="${dist.dir}/${tomcat.war.file}">
399
            <fileset dir="${build.dir.war}">
400
                <include name="**/*" />
401
            </fileset>
402
        </jar>
403
    </target>
1 fvelez 404
 
385 jmachado 405
 
1 fvelez 406
    <!--
407
    ==========================================================================================
408
    Generate Configuration Files TASKS
409
    ==========================================================================================
410
    -->
1791 jmachado 411
    <target name="createConfigurationFiles" depends="compileToolFiles,copyConfigurationFiles,replaceFiltersConfigurationFiles,generateHibernateCfgXml"/>
1 fvelez 412
 
413
    <target name="copyConfigurationFiles">
414
        <copy overwrite="true" todir="${build.dir.classes}">
415
            <fileset dir="${hbm.dir}" includes="**/*.hbm.xml"/>
416
        </copy>
244 jmachado 417
        <mkdir dir="${build.dir.classes}/template/xsd"/>
418
        <copy todir="${build.dir.classes}/template/xsd" overwrite="true">
419
            <fileset dir="${src.xsd}">
420
                <include name="**/*.xsl"/>
421
                <include name="**/*.xsd"/>
422
            </fileset>
423
        </copy>
1 fvelez 424
        <copy overwrite="true" todir="${build.dir.classes}">
1775 jmachado 425
            <fileset dir="${src.dir}" includes="**/*.json"/>
426
        </copy>
427
        <copy overwrite="true" todir="${build.dir.classes}">
1 fvelez 428
            <fileset dir="${src.dir}" includes="**/*.xsl"/>
429
        </copy>
430
        <copy overwrite="true" todir="${build.dir.classes}">
730 jmachado 431
            <fileset dir="${src.dir}" includes="**/*.gif"/>
432
        </copy>
433
        <copy overwrite="true" todir="${build.dir.classes}">
1554 jmachado 434
            <fileset dir="${src.dir}" includes="**/*.png"/>
435
        </copy>
436
        <copy overwrite="true" todir="${build.dir.classes}">
381 jmachado 437
            <fileset dir="${src.dir}" includes="**/*.csv"/>
438
        </copy>
439
        <copy overwrite="true" todir="${build.dir.classes}">
1 fvelez 440
            <fileset dir="${conf.dir}/berserk" includes="*.*"/>
441
        </copy>
29 jmachado 442
        <mkdir dir="${email.templates.dir.build}"/>
443
        <copy overwrite="true" todir="${email.templates.dir.build}">
444
            <fileset dir="${email.templates.dir.conf}" includes="*.*"/>
445
        </copy>
227 jmachado 446
        <mkdir dir="${sms.templates.dir.build}"/>
447
        <copy overwrite="true" todir="${sms.templates.dir.build}">
448
            <fileset dir="${sms.templates.dir.conf}" includes="*.*"/>
449
        </copy>
215 jmachado 450
        <mkdir dir="${assignement.templates.dir.build}"/>
451
        <copy overwrite="true" todir="${assignement.templates.dir.build}">
452
            <fileset dir="${assignement.templates.dir.conf}" includes="*.*"/>
453
        </copy>
1325 jmachado 454
        <!--<copy overwrite="true" todir="${olap.cfg.xml.build}" file="${olap.cfg.xml}"/>-->
1 fvelez 455
        <copy overwrite="true" todir="${hibernate.cfg.xml.build}" file="${hibernate.cfg.xml}"/>
18 jmachado 456
        <copy overwrite="true" todir="${mime.types.build}" file="${mime.types}"/>
1 fvelez 457
        <copy overwrite="true" todir="${app.properties.build}" file="${app.properties}"/>
1810 jmachado 458
        <copy overwrite="true" todir="${ldap.properties.build}" file="${ldap.properties}"/>
1 fvelez 459
        <copy overwrite="true" todir="${jdbc.properties.build}" file="${jdbc.properties}"/>
1325 jmachado 460
        <copy overwrite="true" todir="${jdbc.olap.properties.build}" file="${jdbc.olap.properties}"/>
1 fvelez 461
        <copy overwrite="true" todir="${ldap.properties.build}" file="${ldap.properties}"/>
462
        <copy overwrite="true" todir="${build.dir.classes}" file="${log4j.properties}"/>
214 jmachado 463
        <mkdir dir="${build.dir.intranet.setup.folders.file}"/>
464
        <copy overwrite="true" todir="${build.dir.intranet.setup.folders.file}" file="${intranet.setup.folders.file.src}"/>
219 jmachado 465
 
368 jmachado 466
        <mkdir dir="${build.dir.classes}/pt/estgp/estgweb/directories"/>
467
        <copy overwrite="true" todir="${build.dir.classes}/pt/estgp/estgweb/directories">
468
            <fileset dir="${conf.dir}/directories" includes="*.*"/>
469
        </copy>
347 jmachado 470
        <!--<java classname="${scripts.buider.class}" classpath="${build.dir.classes}">-->
471
            <!--<arg value="${basedir}${file.separator}..${file.separator}common"/>-->
472
            <!--<arg value="${basedir}${file.separator}build${file.separator}ant${file.separator}classes"/>-->
473
            <!--<arg value="${build.dir.scripts}"/>-->
474
            <!--<arg value="${scripts.target.libs.file}"/>-->
475
        <!--</java>-->
476
        <!--<copy overwrite="true" todir="${build.dir.scripts}">-->
477
            <!--<fileset dir="${src.scripts}" includes="*.*"/>-->
478
        <!--</copy>-->
244 jmachado 479
 
1 fvelez 480
    </target>
481
 
1549 jmachado 482
    <target name="copyXslFiles">
483
 
484
        <copy overwrite="true" todir="${build.dir.classes}">
485
            <fileset dir="${src.dir}" includes="**/*.xsl"/>
486
        </copy>
487
 
488
 
489
    </target>
490
 
1 fvelez 491
    <target name="replaceFiltersConfigurationFiles">
492
        <delete file="${build.dir.classes}/MessageResources.properties"/>
1320 jmachado 493
        <!--<concat encoding="ISO-8859-1" destfile="${build.dir.classes}/MessageResources.properties" append="true">
1 fvelez 494
            <fileset dir="${conf.dir}/language">
495
                <include name="*.properties" />
496
            </fileset>
1320 jmachado 497
        </concat>-->
498
        <copy todir="${build.dir.classes}">
499
            <fileset dir="${conf.dir}/language">
500
                <include name="*.properties" />
501
            </fileset>
502
        </copy>
1 fvelez 503
        <replace file="${jdbc.properties.build}/${jdbc.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>
1325 jmachado 508
        <replace file="${jdbc.olap.properties.build}/${jdbc.olap.properties.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
        </replace>
1 fvelez 513
        <replace file="${hibernate.cfg.xml.build}/${hibernate.cfg.xml.filename}">
514
            <replacefilter token="@database.username@" value="${database.username}"/>
515
            <replacefilter token="@database.password@" value="${database.password}"/>
516
            <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
517
            <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/>
518
        </replace>
1325 jmachado 519
        <!--
520
        <replace file="${olap.cfg.xml.build}/${olap.cfg.xml.filename}">
521
            <replacefilter token="@database.username@" value="${database.username}"/>
522
            <replacefilter token="@database.password@" value="${database.password}"/>
523
            <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
524
            <replacefilter token="@hibernate.show.sql@" value="${hibernate.show.sql}"/>
525
        </replace>-->
1 fvelez 526
        <replace file="${app.properties.build}/app.properties">
1525 jmachado 527
 
528
 
529
            <replacefilter token="@google.recaptcha.secret.key@" value="${google.recaptcha.secret.key}"/>
530
 
1426 jmachado 531
            <replacefilter token="@admin.email.1@" value="${admin.email.1}"/>
532
            <replacefilter token="@admin.email.2@" value="${admin.email.2}"/>
1 fvelez 533
            <replacefilter token="@tmp.dir@" value="${tmp.dir}"/>
187 jmachado 534
            <replacefilter token="@data.dir@" value="${data.dir}"/>
1 fvelez 535
            <replacefilter token="@out.dir@" value="${out.dir}"/>
29 jmachado 536
            <replacefilter token="@email.templates.dir@" value="${email.templates.dir}"/>
79 jmachado 537
            <replacefilter token="@use.ldap@" value="${use.ldap}"/>
146 jmachado 538
            <replacefilter token="@site.url@" value="${site.url}"/>
1017 jmachado 539
            <!-- DONT USE ANY MORE NOW IS IN CONFIGURATION DAO <replacefilter token="@ws.siges.wsdl@" value="${ws.siges.wsdl}"/>-->
163 jmachado 540
            <replacefilter token="@ws.siges.target.namespace@" value="${ws.siges.target.namespace}"/>
214 jmachado 541
            <replacefilter token="@intranet.setup.folders.file@" value="${build.dir.relative.intranet.setup.folders.file}"/>
542
            <replacefilter token="@intranet.setup.folders.filename@" value="${intranet.setup.folders.filename}"/>
1235 jmachado 543
 
544
            <replacefilter token="@oracle.siges.url@" value="${oracle.siges.url}"/>
545
            <replacefilter token="@oracle.siges.username@" value="${oracle.siges.username}"/>
546
            <replacefilter token="@oracle.siges.password@" value="${oracle.siges.password}"/>
547
 
1312 jmachado 548
            <!--System instance type specifications-->
1327 jmachado 549
 
550
            <replacefilter token="@email.password@" value="${email.password}"/>
1426 jmachado 551
            <replacefilter token="@email.user.sufix@" value="${email.user.sufix}"/>
1459 jmachado 552
 
553
            <replacefilter token="@email.user.count@" value="${email.user.count}"/>
1431 jmachado 554
            <replacefilter token="@email.use.round.robin@" value="${email.use.round.robin}"/>
1459 jmachado 555
 
1431 jmachado 556
            <replacefilter token="@email.use.security@" value="${email.use.security}"/>
1426 jmachado 557
            <replacefilter token="@email.user.prefix@" value="${email.user.prefix}"/>
1431 jmachado 558
            <replacefilter token="@email.from@" value="${email.from}"/>
1432 jmachado 559
            <replacefilter token="@email.server@" value="${email.server}"/>
1327 jmachado 560
            <replacefilter token="@test.control.var@" value="${test.control.var}"/>
1394 jmachado 561
 
562
            <replacefilter token="@mode.pae.enabled@" value="${mode.pae.enabled}"/>
1312 jmachado 563
            <replacefilter token="@system.theme@" value="${system.theme}"/>
564
            <replacefilter token="@authentication.policy.service@" value="${authentication.policy.service}"/>
565
            <replacefilter token="@authentication.policy.username.msg.key@" value="${authentication.policy.username.msg.key}"/>
566
            <replacefilter token="@authentication.policy.password.msg.key@" value="${authentication.policy.password.msg.key}"/>
567
            <replacefilter token="@system.redirections.policy.index.welcome@" value="${system.redirections.policy.index.welcome}"/>
568
            <replacefilter token="@system.redirections.policy.authentication.action@" value="${system.redirections.policy.authentication.action}"/>
1387 jmachado 569
            <replacefilter token="@system.redirections.policy.authentication.logout.action@" value="${system.redirections.policy.authentication.logout.action}"/>
1455 jmachado 570
            <replacefilter token="@system.mail.standard.certificated.home.page@" value="${system.mail.standard.certificated.home.page}"/>
1312 jmachado 571
 
1455 jmachado 572
 
1312 jmachado 573
            <replacefilter token="@system.intranet.url@" value="${system.intranet.url}"/>
574
            <replacefilter token="@system.public.url@" value="${system.public.url}"/>
575
 
1324 jmachado 576
            <replacefilter token="@ionline.user@" value="${ionline.user}"/>
577
            <replacefilter token="@ionline.pass@" value="${ionline.pass}"/>
1 fvelez 578
        </replace>
1810 jmachado 579
        <replace file="${ldap.properties.build}/ldap.properties">
580
            <replacefilter token="@ldap.queries.login@" value="${ldap.queries.login}"/>
581
            <replacefilter token="@ldap.queries.password@" value="${ldap.queries.password}"/>
582
        </replace>
1 fvelez 583
        <replace file="${build.dir.classes}/${log4j.properties.filename}">
584
            <replacefilter token="@log.file@" value="${log.file}"/>
299 jmachado 585
            <replacefilter token="@log.level@" value="${log.level}"/>
1 fvelez 586
        </replace>
352 jmachado 587
        <!--<replace file="${build.dir.scripts}/${scripts.setenv.file}">
219 jmachado 588
            <replacefilter token="@tomcat.home@" value="${tomcat.home}"/>
352 jmachado 589
        </replace>-->
1 fvelez 590
        <replace file="${jdbc.properties.build}/${jdbc.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>
1325 jmachado 595
        <replace file="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}">
596
            <replacefilter token="@database.username@" value="${database.username}"/>
597
            <replacefilter token="@database.password@" value="${database.password}"/>
598
            <replacefilter token="@database.connection.url@" value="${database.connection.url}"/>
599
        </replace>
1 fvelez 600
    </target>
601
    <target name="generateHibernateCfgXml" depends="compileToolFiles">
602
        <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>-->
603
        <java classname="${mapping.buider.class}" classpath="${build.dir.classes}">
604
            <arg value="${hibernate.cfg.xml.build}"/>
605
            <arg value="${hibernate.cfg.xml}"/>
606
            <arg value="${package.dir}"/>
1325 jmachado 607
            <!--<arg value="Olap"/> O Hibernate.cfg serve para tudo no entanto o schema update e feito
608
                <arg value="false"/> com o jdbc.olap para que estas tabelas fiquem como MyISAM
609
            -->
1 fvelez 610
        </java>
1325 jmachado 611
        <!--<echo message="Starting OLAP"/>
612
        <java classname="${mapping.buider.class}" classpath="${build.dir.classes}">
613
            <arg value="${olap.cfg.xml.build}"/>
614
            <arg value="${olap.cfg.xml}"/>
615
            <arg value="${package.dir}"/>
616
            <arg value="Olap"/>
617
            <arg value="true"/>
618
        </java>-->
1 fvelez 619
        <antcall target="replaceFiltersConfigurationFiles"/>
620
    </target>
621
    <target name="dbInit">
1325 jmachado 622
        <!--<delete file="${build.dir.classes}/${olap.cfg.xml.filename}"/>-->
7 jmachado 623
        <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>-->
624
        <java classname="pt.estgp.estgweb.examples.DBInit" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
1 fvelez 625
 
7 jmachado 626
        <antcall target="replaceFiltersConfigurationFiles"/>
627
    </target>
1 fvelez 628
 
629
 
7 jmachado 630
 
1 fvelez 631
    <!--
632
    Hibernate Tools Task
633
    -->
7 jmachado 634
    <taskdef name="hibernatetool"
635
             classname="org.hibernate.tool.ant.HibernateToolTask"
636
             classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>
1 fvelez 637
    <!--
638
    ==========================================================================================
639
    GENERATE SQL SCRIPTS
640
    ==========================================================================================
641
    -->
642
    <taskdef name="schemaexport"
643
             classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
644
             classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>
645
 
646
 
1070 jmachado 647
 
1312 jmachado 648
    <!--
215 jmachado 649
    <target name="generateHibernateSql" depends="build">
1 fvelez 650
        <schemaexport
651
                properties="${jdbc.properties.build}/${jdbc.properties.filename}"
652
                quiet="no"
653
                text="no"
654
                drop="no"
655
                delimiter=";"
656
                output="${build.dir.classes}/app-scripts.sql">
657
            <fileset dir="${hbm.dir}">
658
                <include name="**/*.hbm.xml"/>
1325 jmachado 659
                <exclude name="**/Olap*.hbm.xml"/>
1 fvelez 660
            </fileset>
661
        </schemaexport>
1325 jmachado 662
         <schemaexport
663
                properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}"
664
                quiet="no"
665
                text="no"
666
                drop="no"
667
                delimiter=";"
668
                output="${build.dir.classes}/app-scripts.sql">
669
            <fileset dir="${hbm.dir}">
670
                <include name="**/Olap*.hbm.xml"/>
671
            </fileset>
672
        </schemaexport>
1312 jmachado 673
    </target>-->
1 fvelez 674
 
852 jmachado 675
    <target name="generateUpdateHibernateSql" depends="build">
1547 jmachado 676
        <!--<taskdef name="schemaupdate"
677
                 classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
678
                 classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>-->
852 jmachado 679
        <taskdef name="schemaupdate"
1547 jmachado 680
        classname="jomm.dao.utils.JommSchemaUpdateTask"
681
        classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>
852 jmachado 682
        <schemaupdate
683
                properties="${jdbc.properties.build}/${jdbc.properties.filename}"
1547 jmachado 684
                quiet="false"
685
                text="false">
852 jmachado 686
            <fileset dir="${hbm.dir}">
687
                <include name="**/*.hbm.xml"/>
1386 jmachado 688
                <!--<exclude name="**/Olap*.hbm.xml"/>-->
852 jmachado 689
            </fileset>
690
        </schemaupdate>
1325 jmachado 691
 
1386 jmachado 692
        <!--
1325 jmachado 693
        <schemaupdate
694
                properties="${jdbc.olap.properties.build}/${jdbc.olap.properties.filename}"
695
                quiet="no"
696
                text="no">
697
            <fileset dir="${hbm.dir}">
698
                <include name="**/Olap*.hbm.xml"/>
699
            </fileset>
1386 jmachado 700
        </schemaupdate>-->
852 jmachado 701
    </target>
702
 
1814 jmachado 703
    <!--
704
    Esta tarefa compila todas as classes necessarias para que os enhanced types seja bem gerados
705
    Para que tudo corra bem é necessario que os pacotes pt.estgp.estgweb.utils jomm.utils e pt.estgp.estgweb.domain.gentypes sejam 100% coesos
706
    com zero referências ao exterior. Esta modificação foi feita na versão 1812
707
    Classes que necessitem de serviços ou outros tipos que ainda não foram compilados
708
    os seus enhanced's devem usar o meta atributo no mapeamento do hibernate
709
    exemplo
710
    <property name="repositoryFileProxy"
711
                  type="pt.estgp.estgweb.domain.typegenservices.repositorydocuments.EnhancedRepositoryFileProxy">
712
            <meta attribute="property-type">pt.estgp.estgweb.domain.typegenservices.repositorydocuments.RepositoryFileProxy</meta>
713
            <column name="repositoryStream" sql-type="VARCHAR(255)"/>
714
        </property>
715
 
716
    -->
717
    <target name="compileUtils" depends="initDirs">
718
        <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
719
            <src path="${src.dir}/pt/estgp/estgweb/utils"/>
720
            <src path="${src.dir}/jomm/utils"/>
721
            <classpath refid="pathToToolsLib"/>
722
        </javac>
723
    </target>
724
 
725
    <target name="compileEnhancedTypes" depends="compileUtils">
726
        <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
727
            <src path="${src.dir}/pt/estgp/estgweb/domain/typesgen"/>
728
            <classpath refid="pathToToolsLib"/>
729
        </javac>
730
    </target>
731
 
732
 
733
    <target name="generateHibernateDomainObjects" >
734
        <!--<echo message="SE NAO COMPILOU AS ENHANCED CLASSES COMPILE PRIMEIRO POR FAVOR"></echo>
735
        <sleep milliseconds="5000">
736
        </sleep>-->
691 jmachado 737
        <replace dir="${hbm.dir}" value="">
738
            <include name="**/*.hbm.xml"/>
739
            <replacefilter token='&lt;timestamp source="db"' value="&lt;timestamp"/>
740
        </replace>
1 fvelez 741
        <hibernatetool>
742
            <configuration>
743
                <fileset dir="${hbm.dir}">
744
                    <include name="**/*.hbm.xml"/>
745
                </fileset>
746
            </configuration>
747
            <hbm2java
748
                    jdk5="true"
749
                    ejb3="false"
750
                    destdir="${gen.dir.java}"/>
751
        </hibernatetool>
752
        <delete>
753
            <fileset dir="${gen.dir.java}">
754
                <include name="**/*Impl.java"/>
755
            </fileset>
756
        </delete>
691 jmachado 757
        <replace dir="${hbm.dir}" value="">
758
            <include name="**/*.hbm.xml"/>
759
            <replacefilter token='&lt;timestamp' value='&lt;timestamp source="db"'/>
760
        </replace>
1 fvelez 761
    </target>
762
 
763
 
764
    <!--
765
        ==========================================================================================
766
        GENERATE DAO IMPLEMENTATION
767
        ==========================================================================================
768
        -->
769
    <target name="generateHibernateDaoClasses">
770
        <hibernatetool destdir="${gen.dir.java}" >
771
            <configuration>
772
                <fileset dir="${hbm.dir}">
773
                    <include name="**/*.hbm.xml"/>
774
                </fileset>
775
            </configuration>
776
            <hbmtemplate
777
                    filepattern="{class-name}${dao.file.pattern}.java"
778
                    templatepath="${dao.template.dir}"
779
                    template="${dao.impl.template}"
780
                    destdir="${dao.impl.package.dir}">
781
                <property key="jdk5" value="true"/>
782
                <property key="ejb3" value="false"/>
783
                <property key="dao" value="${dao.file.pattern}"/>
784
                <property key="daoDomainPackage" value="${domain.package}"/>
785
                <property key="daoInterfacesPackage" value="${dao.interfaces.package}"/>
786
                <property key="daoImplPackage" value="${dao.impl.package}"/>
787
            </hbmtemplate>
788
        </hibernatetool>
789
        <delete>
790
            <fileset dir="${gen.dir.java}">
791
                <include name="**/*ImplDao.java"/>
792
            </fileset>
793
        </delete>
794
    </target>
795
 
1235 jmachado 796
    <!--
797
    ==========================================================================================
798
    Generate Hibernate UML Diagrams
799
    ==========================================================================================
1 fvelez 800
 
1235 jmachado 801
 
802
    <property name="doc" location="build/ant/diagrams"/>
803
 
804
    <property name="dot.exe" location="/usr/local/bin/dot" />
805
 
806
    <taskdef
807
            name="hbm2gif"
808
            classname="com.oy.shared.lm.ant.HBMtoGIFTask"
809
            classpathref="pathToToolsLib"
810
            />
811
 
812
    <target name="generateHibernateUmlDiagram" depends="initDirs">
813
        <mkdir dir="${doc}"/>
814
        <hbm2gif
815
                caption="XML file for launching Catalina 5.0.25 applications using Apache Ant."
816
                colors="cyan, lightcyan, orange, black, black"
817
                inFile="${hbm.dir}/pt/estgp/estgweb/domain/CourseUnit.hbm.xml"
818
                dotFile="${doc}/CourseUnit.dot"
819
                outFile="${doc}/CourseUnit.gif"
820
                exeFile="${dot.exe}"
821
                />
822
    </target>
823
    -->
995 jmachado 824
    <!--
825
    ==========================================================================================
826
    GENERATE WEBSERVICES JAXWS
827
    ==========================================================================================
828
    -->
1 fvelez 829
 
995 jmachado 830
 
831
    <target name="ws.generate-siges-client" depends="initDirs">
832
        <taskdef name="wsimport2" classname="com.sun.tools.ws.ant.WsImport"
833
                 classpathref="pathToToolsLib">
834
        </taskdef>
835
        <copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/>
836
        <replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8">
837
            <replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/>
838
            <replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/>
839
            <replacefilter token="@ws.package@" value="${ws.siges.package}"/>
840
        </replace>
841
        <!--xendorsed="true"-->
842
        <wsimport2
843
 
844
                debug="${ws.debug}"
845
                verbose="${ws.verbose}"
846
                keep="${ws.keep}"
847
                extension="${ws.extension}"
848
                destdir="${gen.dir.java}"
849
                wsdl="${ws.siges.wsdl}">
850
            <binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/>
851
        </wsimport2>
852
        <delete>
853
            <fileset dir="${gen.dir.java}">
854
                <include name="**/*.class"/>
855
            </fileset>
856
        </delete>
857
    </target>
858
 
1775 jmachado 859
    <!--
860
    ==========================================================================================
861
    GENERATE A LIST OF ALL JSP's FILES IN JSON
862
    ==========================================================================================
863
    -->
864
    <target name="generateJsonJspsFile" >
995 jmachado 865
 
1775 jmachado 866
        <java classname="${jsp.interfaces.web.json.class}" classpath="${build.dir.classes}" classpathref="pathToToolsLib">
867
            <arg value="${build.dir.classes}"/>
868
            <arg value="${src.web}"/>
869
            <arg value="/user;/admin;/public"/>
870
        </java>
871
    </target>
872
 
1791 jmachado 873
    <target name="generateJsonSoaServicesFile" >
1775 jmachado 874
 
1791 jmachado 875
        <java fork="true" classname="${soa.services.json.class}" classpath="${build.dir.classes}" classpathref="pathToToolsLib">
876
            <arg value="${build.dir.classes}"/>
877
            <arg value="${basedir}/${src.dir}/"/>
878
        </java>
879
    </target>
880
 
881
 
1 fvelez 882
    <!--
995 jmachado 883
    ==========================================================================================
1496 jmachado 884
    DIRECTORIES + STUDIES PLANS XSD JAXB
1067 jmachado 885
    ==========================================================================================
886
    -->
887
 
888
    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="pathToToolsLib">
889
    </taskdef>
890
 
891
    <target name="directories-gen-jaxb" depends="initDirs">
892
        <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.directories.xsd">
893
            <schema  dir="${conf.dir}/directories" includes="directory.xsd"/>
894
        </xjc>
895
        <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/directories/xsd" value="">
896
            <include name="*.java"/>
897
            <replacefilter token="public Boolean is" value="public Boolean get"/>
898
        </replace>
899
    </target>
900
 
901
 
1496 jmachado 902
    <target name="studies-plan-gen-jaxb" depends="initDirs">
903
        <xjc destdir="${gen.dir.java}" package="pt.estgp.estgweb.services.courses.xsd">
904
            <schema  dir="src/xsd" includes="planoestudos.xsd"/>
905
        </xjc>
906
        <replace dir="${gen.dir.java}/pt/estgp/estgweb/services/courses/xsd" value="">
907
            <include name="*.java"/>
908
            <replacefilter token="public Boolean is" value="public Boolean get"/>
909
        </replace>
910
    </target>
1067 jmachado 911
 
912
    <!--
913
    ==========================================================================================
995 jmachado 914
    DEAMONS
915
    ==========================================================================================
1 fvelez 916
    -->
917
 
918
    <!--<target name="run">-->
919
    <!--<java classname="mitra.oaiharvest.harvest.HarvestEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
920
    <!--<java classname="mitra.oaiharvest.index.IndexEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
921
    <!--</target>-->
336 jmachado 922
    <target name="util.task.createRepositoryXML">
923
        <java classname="pt.estgp.estgweb.services.data.CreateDescriptionsXML" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
924
    </target>
359 jmachado 925
    <target name="util.task.reset.urlsstats">
926
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
927
    </target>
438 jmachado 928
    <target name="util.task.reset.urlsstats.digests">
929
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsServiceDigests" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
930
    </target>
1 fvelez 931
 
1362 jmachado 932
    <target name="CourseUnitsStatisticsJobService">
933
        <java classname="pt.estgp.estgweb.services.courses.CourseUnitsStatisticsJobService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
934
    </target>
336 jmachado 935
 
1235 jmachado 936
 
1553 jmachado 937
    <target name="RUNReportQuestionariosGeneratorTest" depends="compile,copyXslFiles">
1575 jmachado 938
        <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 939
    </target>
1362 jmachado 940
 
1607 jmachado 941
    <target name="RUNZipFolderAdHoc">
942
        <java fork="true" jvmargs="-Dfile.encoding=UTF-8" classname="pt.estgp.estgweb.services.questionarios.pedagogico.reportprocessors.utils.ZipFolderForReportDocente" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
943
    </target>
1362 jmachado 944
 
945
 
1549 jmachado 946
 
1607 jmachado 947
 
1603 jmachado 948
    <target name="print-version">
949
        <echo>Java/JVM version: ${ant.java.version}</echo>
950
        <echo>Java/JVM detail version: ${java.version}</echo>
951
    </target>
1549 jmachado 952
 
273 jmachado 953
</project>