3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 <project name=
"GenBuild" default=
"all" basedir=
".">
14 <taskdef resource=
"net/sf/antcontrib/antlib.xml"/>
15 <property environment=
"env"/>
16 <property name=
"WORKSPACE" value=
"${env.WORKSPACE}"/>
18 <fileset dir=
"${WORKSPACE}/Tools/Jars" includes=
"SurfaceArea.jar"/>
19 <fileset dir=
"${WORKSPACE}/Tools/Jars" includes=
"Common.jar"/>
20 <fileset dir=
"${env.XMLBEANS_HOME}/lib" includes=
"*.jar"/>
22 <property name=
"buildDir" value=
"build"/>
23 <property name=
"installLocation" value=
"${WORKSPACE}/Tools/Jars"/>
24 <target name=
"all" depends=
"install"/>
25 <target name=
"source">
26 <mkdir dir=
"${buildDir}"/>
27 <javac srcdir=
"." destdir=
"${buildDir}">
28 <classpath refid=
"classpath"/>
29 <compilerarg value=
"-Xlint"/>
33 <delete dir=
"${buildDir}"/>
35 <target name=
"cleanall">
36 <delete dir=
"${buildDir}"/>
38 <available file=
"${installLocation}/GenBuild.jar"/>
40 <echo message=
"You must manually remove the file: ${installLocation}/GenBuild.jar"/>
41 <echo message=
"Java has already loaded the file, and cannot remove it within ANT!"/>
45 <target name=
"install" depends=
"source">
46 <copy file=
"GenBuild.tasks" toDir=
"${buildDir}"/>
47 <jar destfile=
"${installLocation}/GenBuild.jar"