Subversion Repositories bacoAlunos

Rev

Rev 1830 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1830 Rev 1833
Line 8... Line 8...
8
    ==========================================================================================
8
    ==========================================================================================
9
    -->
9
    -->
10
    <target name="help">
10
    <target name="help">
11
        <echo>This is the availible Ant Tasks:</echo>
11
        <echo>This is the availible Ant Tasks:</echo>
12
        <echo message="${env.JAVA_HOME}"></echo>
12
        <echo message="${env.JAVA_HOME}"></echo>
13
    </target>                  
13
    </target>
14
 
14
 
15
 
15
 
16
    <!--
16
    <!--
17
    ==========================================================================================
17
    ==========================================================================================
18
    Path libs definitions and Properties files
18
    Path libs definitions and Properties files
Line 173... Line 173...
173
        <antcall target="generateJsonJspsFile"/>
173
        <antcall target="generateJsonJspsFile"/>
174
        <antcall target="generateJsonSoaServicesFile"/>
174
        <antcall target="generateJsonSoaServicesFile"/>
175
    </target>
175
    </target>
176
 
176
 
177
    <target name="compile" depends="initDirs" description="Compile All">
177
    <target name="compile" depends="initDirs" description="Compile All">
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">
178
        <javac encoding="UTF-8" source="1.8" target="1.8" destdir="${build.dir.classes}" debug="true" optimize="true" fork="true" failonerror="true" nowarn="true">
-
 
179
            <!--<compilerarg line="-Xlint:deprecation" />-->
179
            <src path="${src.dir}"/>
180
            <src path="${src.dir}"/>
180
            <src path="${gen.dir.java}"/>
181
            <src path="${gen.dir.java}"/>
181
            <classpath refid="pathToToolsLib"/>
182
            <classpath refid="pathToToolsLib"/>
182
        </javac>
183
        </javac>
183
    </target>
184
    </target>
184
    <target name="compileToolFiles" description="Compile Mappings Builder">
185
    <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
        <javac encoding="UTF-8" source="1.8" target="1.8" destdir="${build.dir.classes}" srcdir="${src.dir}" debug="true" optimize="true"  deprecation="true" verbose="true" failonerror="true">
186
            <include name="${mapping.buider.class.file}"/>
187
            <include name="${mapping.buider.class.file}"/>
187
            <include name="${scripts.buider.class.file}"/>
188
            <include name="${scripts.buider.class.file}"/>
188
            <include name="${jsp.interfaces.web.json.class.file}"/>
189
            <include name="${jsp.interfaces.web.json.class.file}"/>
189
            <classpath refid="pathToToolsLib"/>
190
            <classpath refid="pathToToolsLib"/>
190
        </javac>
191
        </javac>
Line 365... Line 366...
365
    </target>
366
    </target>
366
 
367
 
367
    <target name="jasper" depends="copy.jsps.war">
368
    <target name="jasper" depends="copy.jsps.war">
368
        <delete dir="${build.dir.jsp}"/>
369
        <delete dir="${build.dir.jsp}"/>
369
        <mkdir dir="${build.dir.jsp}"/>
370
        <mkdir dir="${build.dir.jsp}"/>
370
        <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}" />
371
        <tomcat.jasper compilersourcevm="1.8" compilertargetvm="1.8" validateXml="false" uriroot="${build.dir.war}" webXmlFragment="${build.dir.war}/WEB-INF/generated_web.xml" addWebXmlMappings="true" outputDir="${build.dir.jsp}" />
371
        <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">
372
        <javac encoding="UTF-8" source="1.8" target="1.8"  destdir="${build.dir.war}/WEB-INF/classes" debug="true" optimize="true" fork="true" failonerror="true" nowarn="true">
-
 
373
            <compilerarg line="-Xlint:deprecation" />
-
 
374
            <!--<compilerarg line="-Xlint:unchecked" />-->
372
            <src path="${build.dir.jsp}"/>
375
            <src path="${build.dir.jsp}"/>
373
            <src path="${build.dir}/"/>
376
            <src path="${build.dir}/"/>
374
            <classpath path="${build.dir.classes}"/>
377
            <classpath path="${build.dir.classes}"/>
375
            <classpath refid="pathToToolsLib"/>
378
            <classpath refid="pathToToolsLib"/>
376
        </javac>
379
        </javac>
Line 468... Line 471...
468
        <mkdir dir="${build.dir.classes}/pt/estgp/estgweb/directories"/>
471
        <mkdir dir="${build.dir.classes}/pt/estgp/estgweb/directories"/>
469
        <copy overwrite="true" todir="${build.dir.classes}/pt/estgp/estgweb/directories">
472
        <copy overwrite="true" todir="${build.dir.classes}/pt/estgp/estgweb/directories">
470
            <fileset dir="${conf.dir}/directories" includes="*.*"/>
473
            <fileset dir="${conf.dir}/directories" includes="*.*"/>
471
        </copy>
474
        </copy>
472
        <!--<java classname="${scripts.buider.class}" classpath="${build.dir.classes}">-->
475
        <!--<java classname="${scripts.buider.class}" classpath="${build.dir.classes}">-->
473
            <!--<arg value="${basedir}${file.separator}..${file.separator}common"/>-->
476
        <!--<arg value="${basedir}${file.separator}..${file.separator}common"/>-->
474
            <!--<arg value="${basedir}${file.separator}build${file.separator}ant${file.separator}classes"/>-->
477
        <!--<arg value="${basedir}${file.separator}build${file.separator}ant${file.separator}classes"/>-->
475
            <!--<arg value="${build.dir.scripts}"/>-->
478
        <!--<arg value="${build.dir.scripts}"/>-->
476
            <!--<arg value="${scripts.target.libs.file}"/>-->
479
        <!--<arg value="${scripts.target.libs.file}"/>-->
477
        <!--</java>-->
480
        <!--</java>-->
478
        <!--<copy overwrite="true" todir="${build.dir.scripts}">-->
481
        <!--<copy overwrite="true" todir="${build.dir.scripts}">-->
479
            <!--<fileset dir="${src.scripts}" includes="*.*"/>-->
482
        <!--<fileset dir="${src.scripts}" includes="*.*"/>-->
480
        <!--</copy>-->
483
        <!--</copy>-->
481
 
484
 
482
    </target>
485
    </target>
483
 
486
 
484
    <target name="copyXslFiles">
487
    <target name="copyXslFiles">
Line 573... Line 576...
573
            <replacefilter token="@system.wsjson.service.course.report.quest.result.api@" value="${system.wsjson.service.course.report.quest.result.api}"/>
576
            <replacefilter token="@system.wsjson.service.course.report.quest.result.api@" value="${system.wsjson.service.course.report.quest.result.api}"/>
574
            <replacefilter token="@system.wsjson.service.course.units.reports.api@" value="${system.wsjson.service.course.units.reports.api}"/>
577
            <replacefilter token="@system.wsjson.service.course.units.reports.api@" value="${system.wsjson.service.course.units.reports.api}"/>
575
            <replacefilter token="@system.wsjson.service.course.units.dtp.stats.api@" value="${system.wsjson.service.course.units.dtp.stats.api}"/>
578
            <replacefilter token="@system.wsjson.service.course.units.dtp.stats.api@" value="${system.wsjson.service.course.units.dtp.stats.api}"/>
576
 
579
 
577
 
580
 
-
 
581
 
578
            <replacefilter token="@system.intranet.url@" value="${system.intranet.url}"/>
582
            <replacefilter token="@system.intranet.url@" value="${system.intranet.url}"/>
579
            <replacefilter token="@system.public.url@" value="${system.public.url}"/>
583
            <replacefilter token="@system.public.url@" value="${system.public.url}"/>
580
 
584
 
581
            <replacefilter token="@ionline.user@" value="${ionline.user}"/>
585
            <replacefilter token="@ionline.user@" value="${ionline.user}"/>
582
            <replacefilter token="@ionline.pass@" value="${ionline.pass}"/>
586
            <replacefilter token="@ionline.pass@" value="${ionline.pass}"/>
Line 680... Line 684...
680
    <target name="generateUpdateHibernateSql" depends="build">
684
    <target name="generateUpdateHibernateSql" depends="build">
681
        <!--<taskdef name="schemaupdate"
685
        <!--<taskdef name="schemaupdate"
682
                 classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
686
                 classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
683
                 classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>-->
687
                 classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>-->
684
        <taskdef name="schemaupdate"
688
        <taskdef name="schemaupdate"
685
        classname="jomm.dao.utils.JommSchemaUpdateTask"
689
                 classname="jomm.dao.utils.JommSchemaUpdateTask"
686
        classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>
690
                 classpathref="pathToToolsLib" classpath="${build.dir.classes}"/>
687
        <schemaupdate
691
        <schemaupdate
688
                properties="${jdbc.properties.build}/${jdbc.properties.filename}"
692
                properties="${jdbc.properties.build}/${jdbc.properties.filename}"
689
                quiet="false"
693
                quiet="false"
690
                text="false">
694
                text="false">
691
            <fileset dir="${hbm.dir}">
695
            <fileset dir="${hbm.dir}">
Line 718... Line 722...
718
            <column name="repositoryStream" sql-type="VARCHAR(255)"/>
722
            <column name="repositoryStream" sql-type="VARCHAR(255)"/>
719
        </property>
723
        </property>
720
 
724
 
721
    -->
725
    -->
722
    <target name="compileUtils" depends="initDirs">
726
    <target name="compileUtils" depends="initDirs">
723
        <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
727
        <javac encoding="UTF-8" source="1.8" target="1.8" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
-
 
728
            <compilerarg line="-Xlint:deprecation" />
724
            <src path="${src.dir}/pt/estgp/estgweb/utils"/>
729
            <src path="${src.dir}/pt/estgp/estgweb/utils"/>
725
            <src path="${src.dir}/jomm/utils"/>
730
            <src path="${src.dir}/jomm/utils"/>
726
            <classpath refid="pathToToolsLib"/>
731
            <classpath refid="pathToToolsLib"/>
727
        </javac>
732
        </javac>
728
    </target>
733
    </target>
729
 
734
 
730
    <target name="compileEnhancedTypes" depends="compileUtils">
735
    <target name="compileEnhancedTypes" depends="compileUtils">
731
        <javac encoding="UTF-8" source="1.6" target="1.6" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
736
        <javac encoding="UTF-8" source="1.8" target="1.8" destdir="${build.dir.classes}" debug="true" optimize="true" failonerror="true" nowarn="true">
-
 
737
            <compilerarg line="-Xlint:deprecation" />
732
            <src path="${src.dir}/pt/estgp/estgweb/domain/typesgen"/>
738
            <src path="${src.dir}/pt/estgp/estgweb/domain/typesgen"/>
733
            <classpath refid="pathToToolsLib"/>
739
            <classpath refid="pathToToolsLib"/>
734
        </javac>
740
        </javac>
735
    </target>
741
    </target>
736
 
742
 
Line 874... Line 880...
874
            <arg value="/user;/admin;/public"/>
880
            <arg value="/user;/admin;/public"/>
875
        </java>
881
        </java>
876
    </target>
882
    </target>
877
 
883
 
878
    <target name="generateJsonSoaServicesFile" >
884
    <target name="generateJsonSoaServicesFile" >
879
 
885
        <!--
880
        <java fork="true" classname="${soa.services.json.class}" classpath="${build.dir.classes}" classpathref="pathToToolsLib">
886
                <java fork="true" classname="${soa.services.json.class}" classpath="${build.dir.classes}" classpathref="pathToToolsLib">
881
            <arg value="${build.dir.classes}"/>
887
                    <arg value="${build.dir.classes}"/>
882
            <arg value="${basedir}/${src.dir}/"/>
888
                    <arg value="${basedir}/${src.dir}/"/>
883
        </java>
889
                </java>
-
 
890
                -->
884
    </target>
891
    </target>
885
 
892
 
886
 
893
 
887
    <!--
894
    <!--
888
    ==========================================================================================
895
    ==========================================================================================
Line 923... Line 930...
923
    <!--<target name="run">-->
930
    <!--<target name="run">-->
924
    <!--<java classname="mitra.oaiharvest.harvest.HarvestEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
931
    <!--<java classname="mitra.oaiharvest.harvest.HarvestEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
925
    <!--<java classname="mitra.oaiharvest.index.IndexEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
932
    <!--<java classname="mitra.oaiharvest.index.IndexEngine" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>-->
926
    <!--</target>-->
933
    <!--</target>-->
927
    <target name="util.task.createRepositoryXML">
934
    <target name="util.task.createRepositoryXML">
928
        <java classname="pt.estgp.estgweb.services.data.CreateDescriptionsXML" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
935
        <java classname="pt.estgp.estgweb.services..CreateDescriptionsXML" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
929
    </target>
936
    </target>
930
    <target name="util.task.reset.urlsstats">
937
    <target name="util.task.reset.urlsstats">
931
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
938
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsService" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
932
    </target>
939
    </target>
933
    <target name="util.task.reset.urlsstats.digests">
940
    <target name="util.task.reset.urlsstats.digests">
934
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsServiceDigests" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
941
        <java classname="pt.estgp.estgweb.services.urlstat.ResetRelativePathsServiceDigests" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
935
    </target>
942
    </target>
936
 
943
 
Line 953... Line 960...
953
    <target name="print-version">
960
    <target name="print-version">
954
        <echo>Java/JVM version: ${ant.java.version}</echo>
961
        <echo>Java/JVM version: ${ant.java.version}</echo>
955
        <echo>Java/JVM detail version: ${java.version}</echo>
962
        <echo>Java/JVM detail version: ${java.version}</echo>
956
    </target>
963
    </target>
957
 
964
 
958
</project>
965
</project>
959
 
966