< prev index next >

## build/build.xml

Print this page

     274             </srcfileset>
     275             <targetfilelist dir="${BUILD_DIR}/binaries/lib" files="jt-junit.jar"/>
     276         </dependset>
     277         <available property="jt-junit.jar.ok" file="${BUILD_DIR}/binaries/lib/jt-junit.jar"/>
     278     </target>
     279
     280     <!-- Compilation Section -->
     281
     282     <target name="compile" depends="verify-dependencies, compile.classes,compile.resources,compile-javatest.help" description="Compile project."/>
     283
     284     <target name="compile.classes">
     285
     286         <delete dir="${build.classes}" quiet="true"/>
     287         <mkdir dir="${build.classes}"/>
     288         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     289                srcdir="${src.dir}"
     290                sourcepath=""
     291                destdir="${build.classes}"
     292                classpath="${jdk14.classpath}:${jcommjar}">
     293             <patternset refid="javatest.packages"/>

     294         </javac>
     295         <copy todir="${build.classes}">
     296             <fileset dir="${legal.dir}">
     297                 <include name="copyright.txt"/>
     298             </fileset>
     299         </copy>
     300
     301     </target>
     302
     303     <target name="compile.test.copyright.classes">
     304         <mkdir dir="${build.classes}"/>
     305         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     306                srcdir="${test.dir}"
     307                destdir="${build.classes}"
     308                classpath="${jdk14.classpath}">
     309             <patternset refid="test.packages"/>

     310                 </javac>
     311         </target>
     312
     313     <target name="compile.junit.classes" if="jar.junit.dependencies.present" depends="verify-dependencies, compile.classes,compile.junit.resources">
     314         <mkdir dir="${build.junit.classes}"/>
     315         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     316                srcdir="${src.dir}"
     317                destdir="${build.junit.classes}"
     318                classpath="${jdk14.classpath}:${build.classes}:${asmjar}:${asmcommonsjar}:${junitlib}">
     319             <patternset refid="javatest.junit.packages"/>

     320         </javac>
     321
     322         <copy todir="${build.junit.classes}">
     323             <fileset dir="${legal.dir}">
     324                 <include name="copyright.txt"/>
     325             </fileset>
     326         </copy>
     327
     328     </target>
     329
     330     <target name="compile-javatest.help" depends="compile-javatest.help.main,compile-javatestAgent.help"/>
     331
     332     <target name="compile.resources" depends="stamp">
     333         <copy todir="${build.classes}">
     334             <fileset dir="${src.dir}">
     335                 <patternset refid="interview.resources"/>
     336                 <patternset refid="javatest.resources"/>
     337             </fileset>
     338         </copy>
     339         <mkdir dir="${build.classes}/META-INF/"/>
     518         </copy>
     519     </target>
     520
     521     <target name="check-javatestAgent.help">
     522         <dependset>
     523             <srcfileset dir="${src.javatestAgent.help}" />
     524             <targetfileset dir="${build.javatestAgent.help}" />
     525         </dependset>
     526         <available property="javatestAgent.help.ok" file="${build.javatestAgent.help}/default/map.xml"/>
     527     </target>
     528     <!-- ********** jct-utils ********************************************** -->
     529
     530     <target name="compile-jct.utils">
     531         <mkdir dir="${build.classes}"/>
     532         <javac encoding="iso-8859-1" debug="true" source="1.4"
     533                srcdir="${src.dir}"
     534                destdir="${build.classes}">
     535             <include name="com/sun/jct/utils/glossarygen/**"/>
     536             <include name="com/sun/jct/utils/indexgen/**"/>
     537             <include name="com/sun/jct/utils/mapmerge/**"/>

     538         </javac>
     539     </target>
     540
     541     <!-- ********** examples ********************************************** -->
     542     <target name="build-examples" depends="build-tutorial"/>
     543
     544     <target name="build-tutorial" depends="jar">
     545         <property name="build.examples" location="${BUILD_DIR}/binaries/examples/tutorial"/>
     546         <mkdir dir="${build.tmp}/${exam.dir}/demoapi"/>
     547         <mkdir dir="${build.tmp}/${exam.dir}/simpleTags"/>
     548         <mkdir dir="${build.examples}/demots/lib"/>
     549
     550         <javac encoding="iso-8859-1" debug="true" source="1.6"
     551                srcdir="${exam.dir}/tutorial/demoapi"
     552                destdir="${build.tmp}/${exam.dir}/demoapi">

     553         </javac>
     554         <jar destfile="${build.examples}/demots/lib/demoapi.jar"
     555              basedir="${build.tmp}/${exam.dir}/demoapi" index="false">
     556             <manifest>
     557                 <attribute name="Built-By"   value="${user.name}"/>
     558                 <attribute name="Main-Class" value="${run.class}"/>
     559             </manifest>
     560         </jar>
     561         <copy todir="${build.examples}/demots/lib">
     562             <fileset file="${BUILD_DIR}/binaries/lib/javatest.jar"/>
     563         </copy>
     564
     565
     566         <javac encoding="iso-8859-1" debug="true" source="1.6"
     567                srcdir="${exam.dir}/tutorial/simpleTags"
     568                destdir="${build.tmp}/${exam.dir}/simpleTags"
     569                classpath="${BUILD_DIR}/binaries/lib/javatest.jar:${build.examples}/demots/lib/demoapi.jar">

     570         </javac>
     571         <copy todir="${build.tmp}/${exam.dir}/simpleTags">
     572             <fileset dir="${exam.dir}/tutorial/simpleTags/src">
     573                 <include name="**/moreInfo/**"/>
     574                 <include name="**/*.properties"/>
     575             </fileset>
     576         </copy>
     577
     578         <jar destfile="${build.examples}/demots/lib/jtdemots.jar"
     579              basedir="${build.tmp}/${exam.dir}/simpleTags" index="false">
     580             <manifest>
     581                 <attribute name="Built-By"   value="${user.name}"/>
     582                 <attribute name="Main-Class" value="${run.class}"/>
     583             </manifest>
     584         </jar>
     585         <copy todir="${build.examples}/demots">
     586             <fileset dir="${exam.dir}/tutorial/simpleTags/demots"/>
     587         </copy>
     588         <copy todir="${build.examples}">
     589             <fileset dir="${exam.dir}/tutorial/doc"/>
     594
     595
     596         </target>
     597
     598
     599         <target name="build-services-ts" depends="build-tutorial">
     600             <property name="services.ts" location="${BUILD_DIR}/binaries/examples/services_ts"/>
     601             <mkdir dir="${build.tmp}/${exam.dir}/services_demo/classes"/>
     602             <mkdir dir="${services.ts}/lib"/>
     603
     604             <copy todir="${services.ts}/lib">
     605                 <fileset file="${BUILD_DIR}/binaries/lib/javatest.jar"/>
     606                 <fileset file="${build.examples}/demots/lib/demoapi.jar"/>
     607             </copy>
     608
     609
     610             <javac encoding="iso-8859-1" debug="true"
     611                    srcdir="${exam.dir}/services_demo/src"
     612                    destdir="${build.tmp}/${exam.dir}/services_demo/classes"
     613                    classpath="${BUILD_DIR}/binaries/lib/javatest.jar">

     614             </javac>
     615             <copy todir="${build.tmp}/${exam.dir}/services_demo/classes">
     616                 <fileset dir="${exam.dir}/services_demo/src">
     617                     <include name="**/moreinfo/**"/>
     618                     <include name="**/*.properties"/>
     619                 </fileset>
     620             </copy>
     621
     622             <jar destfile="${services.ts}/lib/jtservices.jar"
     623                  basedir="${build.tmp}/${exam.dir}/services_demo/classes" index="false">
     624                  <manifest>
     625                      <attribute name="Built-By"   value="${user.name}"/>
     626                      <attribute name="Main-Class" value="${run.class}"/>
     627                  </manifest>
     628              </jar>
     629
     630              <copy todir="${services.ts}">
     631                  <fileset dir="${exam.dir}/services_demo/services_ts"/>
     632              </copy>
     633
     274             </srcfileset>
     275             <targetfilelist dir="${BUILD_DIR}/binaries/lib" files="jt-junit.jar"/>
     276         </dependset>
     277         <available property="jt-junit.jar.ok" file="${BUILD_DIR}/binaries/lib/jt-junit.jar"/>
     278     </target>
     279
     280     <!-- Compilation Section -->
     281
     282     <target name="compile" depends="verify-dependencies, compile.classes,compile.resources,compile-javatest.help" description="Compile project."/>
     283
     284     <target name="compile.classes">
     285
     286         <delete dir="${build.classes}" quiet="true"/>
     287         <mkdir dir="${build.classes}"/>
     288         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     289                srcdir="${src.dir}"
     290                sourcepath=""
     291                destdir="${build.classes}"
     292                classpath="${jdk14.classpath}:${jcommjar}">
     293             <patternset refid="javatest.packages"/>
     294             <compilerarg value="-version"/>
     295             <compilerarg value="-Xlint:rawtypes"/>
     296             <compilerarg value="-Xlint:cast"/>
     297         </javac>
     298         <copy todir="${build.classes}">
     299             <fileset dir="${legal.dir}">
     300                 <include name="copyright.txt"/>
     301             </fileset>
     302         </copy>
     303
     304     </target>
     305
     306     <target name="compile.test.copyright.classes">
     307         <mkdir dir="${build.classes}"/>
     308         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     309                srcdir="${test.dir}"
     310                destdir="${build.classes}"
     311                classpath="${jdk14.classpath}">
     312             <patternset refid="test.packages"/>
     313             <compilerarg value="-version"/>
     314             <compilerarg value="-Xlint:rawtypes"/>
     315             <compilerarg value="-Xlint:cast"/>
     316                 </javac>
     317         </target>
     318
     319     <target name="compile.junit.classes" if="jar.junit.dependencies.present" depends="verify-dependencies, compile.classes,compile.junit.resources">
     320         <mkdir dir="${build.junit.classes}"/>
     321         <javac encoding="iso-8859-1" debug="true" source="1.7" target="1.7"
     322                srcdir="${src.dir}"
     323                destdir="${build.junit.classes}"
     324                classpath="${jdk14.classpath}:${build.classes}:${asmjar}:${asmcommonsjar}:${junitlib}">
     325             <patternset refid="javatest.junit.packages"/>
     326             <compilerarg value="-version"/>
     327             <compilerarg value="-Xlint:rawtypes"/>
     328             <compilerarg value="-Xlint:cast"/>
     329         </javac>
     330
     331         <copy todir="${build.junit.classes}">
     332             <fileset dir="${legal.dir}">
     333                 <include name="copyright.txt"/>
     334             </fileset>
     335         </copy>
     336
     337     </target>
     338
     339     <target name="compile-javatest.help" depends="compile-javatest.help.main,compile-javatestAgent.help"/>
     340
     341     <target name="compile.resources" depends="stamp">
     342         <copy todir="${build.classes}">
     343             <fileset dir="${src.dir}">
     344                 <patternset refid="interview.resources"/>
     345                 <patternset refid="javatest.resources"/>
     346             </fileset>
     347         </copy>
     348         <mkdir dir="${build.classes}/META-INF/"/>
     527         </copy>
     528     </target>
     529
     530     <target name="check-javatestAgent.help">
     531         <dependset>
     532             <srcfileset dir="${src.javatestAgent.help}" />
     533             <targetfileset dir="${build.javatestAgent.help}" />
     534         </dependset>
     535         <available property="javatestAgent.help.ok" file="${build.javatestAgent.help}/default/map.xml"/>
     536     </target>
     537     <!-- ********** jct-utils ********************************************** -->
     538
     539     <target name="compile-jct.utils">
     540         <mkdir dir="${build.classes}"/>
     541         <javac encoding="iso-8859-1" debug="true" source="1.4"
     542                srcdir="${src.dir}"
     543                destdir="${build.classes}">
     544             <include name="com/sun/jct/utils/glossarygen/**"/>
     545             <include name="com/sun/jct/utils/indexgen/**"/>
     546             <include name="com/sun/jct/utils/mapmerge/**"/>
     547             <compilerarg value="-version"/>
     548             <compilerarg value="-Xlint:rawtypes"/>
     549             <compilerarg value="-Xlint:cast"/>
     550         </javac>
     551     </target>
     552
     553     <!-- ********** examples ********************************************** -->
     554     <target name="build-examples" depends="build-tutorial"/>
     555
     556     <target name="build-tutorial" depends="jar">
     557         <property name="build.examples" location="${BUILD_DIR}/binaries/examples/tutorial"/>
     558         <mkdir dir="${build.tmp}/${exam.dir}/demoapi"/>
     559         <mkdir dir="${build.tmp}/${exam.dir}/simpleTags"/>
     560         <mkdir dir="${build.examples}/demots/lib"/>
     561
     562         <javac encoding="iso-8859-1" debug="true" source="1.6"
     563                srcdir="${exam.dir}/tutorial/demoapi"
     564                destdir="${build.tmp}/${exam.dir}/demoapi">
     565             <compilerarg value="-version"/>
     566             <compilerarg value="-Xlint:rawtypes"/>
     567             <compilerarg value="-Xlint:cast"/>
     568         </javac>
     569         <jar destfile="${build.examples}/demots/lib/demoapi.jar"
     570              basedir="${build.tmp}/${exam.dir}/demoapi" index="false">
     571             <manifest>
     572                 <attribute name="Built-By"   value="${user.name}"/>
     573                 <attribute name="Main-Class" value="${run.class}"/>
     574             </manifest>
     575         </jar>
     576         <copy todir="${build.examples}/demots/lib">
     577             <fileset file="${BUILD_DIR}/binaries/lib/javatest.jar"/>
     578         </copy>
     579
     580
     581         <javac encoding="iso-8859-1" debug="true" source="1.6"
     582                srcdir="${exam.dir}/tutorial/simpleTags"
     583                destdir="${build.tmp}/${exam.dir}/simpleTags"
     584                classpath="${BUILD_DIR}/binaries/lib/javatest.jar:${build.examples}/demots/lib/demoapi.jar">
     585             <compilerarg value="-version"/>
     586             <compilerarg value="-Xlint:rawtypes"/>
     587             <compilerarg value="-Xlint:cast"/>
     588         </javac>
     589         <copy todir="${build.tmp}/${exam.dir}/simpleTags">
     590             <fileset dir="${exam.dir}/tutorial/simpleTags/src">
     591                 <include name="**/moreInfo/**"/>
     592                 <include name="**/*.properties"/>
     593             </fileset>
     594         </copy>
     595
     596         <jar destfile="${build.examples}/demots/lib/jtdemots.jar"
     597              basedir="${build.tmp}/${exam.dir}/simpleTags" index="false">
     598             <manifest>
     599                 <attribute name="Built-By"   value="${user.name}"/>
     600                 <attribute name="Main-Class" value="${run.class}"/>
     601             </manifest>
     602         </jar>
     603         <copy todir="${build.examples}/demots">
     604             <fileset dir="${exam.dir}/tutorial/simpleTags/demots"/>
     605         </copy>
     606         <copy todir="${build.examples}">
     607             <fileset dir="${exam.dir}/tutorial/doc"/>
     612
     613
     614         </target>
     615
     616
     617         <target name="build-services-ts" depends="build-tutorial">
     618             <property name="services.ts" location="${BUILD_DIR}/binaries/examples/services_ts"/>
     619             <mkdir dir="${build.tmp}/${exam.dir}/services_demo/classes"/>
     620             <mkdir dir="${services.ts}/lib"/>
     621
     622             <copy todir="${services.ts}/lib">
     623                 <fileset file="${BUILD_DIR}/binaries/lib/javatest.jar"/>
     624                 <fileset file="${build.examples}/demots/lib/demoapi.jar"/>
     625             </copy>
     626
     627
     628             <javac encoding="iso-8859-1" debug="true"
     629                    srcdir="${exam.dir}/services_demo/src"
     630                    destdir="${build.tmp}/${exam.dir}/services_demo/classes"
     631                    classpath="${BUILD_DIR}/binaries/lib/javatest.jar">
     632                 <compilerarg value="-version"/>
     633                 <compilerarg value="-Xlint:rawtypes"/>
     634                 <compilerarg value="-Xlint:cast"/>
     635             </javac>
     636             <copy todir="${build.tmp}/${exam.dir}/services_demo/classes">
     637                 <fileset dir="${exam.dir}/services_demo/src">
     638                     <include name="**/moreinfo/**"/>
     639                     <include name="**/*.properties"/>
     640                 </fileset>
     641             </copy>
     642
     643             <jar destfile="${services.ts}/lib/jtservices.jar"
     644                  basedir="${build.tmp}/${exam.dir}/services_demo/classes" index="false">
     645                  <manifest>
     646                      <attribute name="Built-By"   value="${user.name}"/>
     647                      <attribute name="Main-Class" value="${run.class}"/>
     648                  </manifest>
     649              </jar>
     650
     651              <copy todir="${services.ts}">
     652                  <fileset dir="${exam.dir}/services_demo/services_ts"/>
     653              </copy>
     654

< prev index next >