< prev index next >

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

Print this page

 22  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 23  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 24  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 25  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 26  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 27  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 28  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 29  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 30 -->
 31 
 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="off" source="1.7" target="1.7" 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" >
 73     <!-- Copy the resource files from ${resources} into ${build}/ -->
 74     <mkdir dir="${dist}"/>
 75     <mkdir dir="${build}/j2dbench/tests/text/textdata"/>
 76     <copy todir="${build}/j2dbench/tests/text/textdata">
 77       <fileset dir="${resources}/textdata" />
 78     </copy>
 79     <mkdir dir="${build}/j2dbench/tests/iio/images"/>
 80     <copy todir="${build}/j2dbench/tests/iio/images">
 81       <fileset dir="${resources}/images" />
 82     </copy>
 83     <mkdir dir="${build}/j2dbench/tests/cmm/images"/>
 84     <copy todir="${build}/j2dbench/tests/cmm/images">
 85       <fileset dir="${resources}/cmm_images" />
 86     </copy>

 22  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 23  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 24  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 25  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 26  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 27  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 28  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 29  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 30 -->
 31 
 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   <condition property="source" value="7">
 43      <not>
 44         <isset property="source"/>
 45      </not>
 46   </condition>
 47   <condition property="target" value="7">
 48      <not>
 49         <isset property="target"/>
 50      </not>
 51   </condition>
 52   <condition property="java" value="java">
 53      <not>
 54         <isset property="java"/>
 55      </not>
 56   </condition>
 57   <condition property="javac" value="javac">
 58      <not>
 59         <isset property="javac"/>
 60      </not>
 61   </condition>
 62 
 63   <target name="init">
 64     <!-- Create the time stamp -->
 65     <tstamp/>
 66     <!-- Create the build directory structure used by compile -->
 67     <mkdir dir="${build}"/>
 68   </target>
 69 
 70   <target name="compile" depends="init"
 71         description="compile the source " >
 72     <!-- Compile the java code from ${src} into ${build} -->
 73     <javac debug="off" source="${source}" target="${target}" srcdir="${src}" destdir="${build}" fork="true" executable="${javac}"/>
 74   </target>
 75 
 76   <target name="run" depends="dist"
 77     description="run J2DBench" >
 78     <java jar="${dist}/J2DBench.jar"
 79        fork="true"
 80        jvm="${java}"
 81     >
 82     </java>
 83   </target>
 84 
 85   <target name="analyze" depends="dist"
 86     description="run J2DAnalyzer" >
 87     <java jar="${dist}/J2DAnalyzer.jar"
 88        fork="true"
 89        jvm="${java}"
 90     >
 91     </java>
 92   </target>
 93 
 94   <target name="resources" depends="init"
 95         description="copy resources into build dir" >
 96     <!-- Copy the resource files from ${resources} into ${build}/ -->
 97     <mkdir dir="${dist}"/>
 98     <mkdir dir="${build}/j2dbench/tests/text/textdata"/>
 99     <copy todir="${build}/j2dbench/tests/text/textdata">
100       <fileset dir="${resources}/textdata" />
101     </copy>
102     <mkdir dir="${build}/j2dbench/tests/iio/images"/>
103     <copy todir="${build}/j2dbench/tests/iio/images">
104       <fileset dir="${resources}/images" />
105     </copy>
106     <mkdir dir="${build}/j2dbench/tests/cmm/images"/>
107     <copy todir="${build}/j2dbench/tests/cmm/images">
108       <fileset dir="${resources}/cmm_images" />
109     </copy>
< prev index next >