src/share/demo/java2d/J2DBench/build.xml

Print this page




  32 <project name="J2DBench" default="dist" basedir=".">
  33     <description>
  34         simple example build file
  35     </description>
  36   <!-- set global properties for this build -->
  37   <property name="src" location="src"/>
  38   <property name="build" location="build"/>
  39   <property name="dist"  location="dist"/>
  40   <property name="resources"  location="resources"/>
  41 
  42   <target name="init">
  43     <!-- Create the time stamp -->
  44     <tstamp/>
  45     <!-- Create the build directory structure used by compile -->
  46     <mkdir dir="${build}"/>
  47   </target>
  48 
  49   <target name="compile" depends="init"
  50         description="compile the source " >
  51     <!-- Compile the java code from ${src} into ${build} -->
  52     <javac debug="false" source="1.2" target="1.2" srcdir="${src}" destdir="${build}"/>
  53   </target>
  54 
  55   <target name="run" depends="dist" 
  56     description="run J2DBench" >
  57     <java jar="${dist}/J2DBench.jar"
  58        fork="true"
  59     >
  60     </java>
  61   </target>
  62 
  63   <target name="analyze" depends="dist" 
  64     description="run J2DAnalyzer" >
  65     <java jar="${dist}/J2DAnalyzer.jar"
  66        fork="true"
  67     >
  68     </java>
  69   </target>
  70 
  71   <target name="resources" depends="init"
  72         description="copy resources into build dir" >




  32 <project name="J2DBench" default="dist" basedir=".">
  33     <description>
  34         simple example build file
  35     </description>
  36   <!-- set global properties for this build -->
  37   <property name="src" location="src"/>
  38   <property name="build" location="build"/>
  39   <property name="dist"  location="dist"/>
  40   <property name="resources"  location="resources"/>
  41 
  42   <target name="init">
  43     <!-- Create the time stamp -->
  44     <tstamp/>
  45     <!-- Create the build directory structure used by compile -->
  46     <mkdir dir="${build}"/>
  47   </target>
  48 
  49   <target name="compile" depends="init"
  50         description="compile the source " >
  51     <!-- Compile the java code from ${src} into ${build} -->
  52     <javac debug="flase" source="1.5" target="1.5" srcdir="${src}" destdir="${build}"/>
  53   </target>
  54 
  55   <target name="run" depends="dist" 
  56     description="run J2DBench" >
  57     <java jar="${dist}/J2DBench.jar"
  58        fork="true"
  59     >
  60     </java>
  61   </target>
  62 
  63   <target name="analyze" depends="dist" 
  64     description="run J2DAnalyzer" >
  65     <java jar="${dist}/J2DAnalyzer.jar"
  66        fork="true"
  67     >
  68     </java>
  69   </target>
  70 
  71   <target name="resources" depends="init"
  72         description="copy resources into build dir" >