]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Java/Source/GenBuild/build.xml
Fixed the build.xml files so that clean and cleanall actually removes the temporary...
[mirror_edk2.git] / Tools / Java / Source / GenBuild / build.xml
CommitLineData
878ddf1f 1<?xml version="1.0"?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
a7828769 12<project name="GenBuild" default="GenBuild" basedir=".">\r
878ddf1f 13\r
14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
15 <property environment="env"/>\r
16 <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
17 <path id="classpath">\r
18 <fileset dir="${WORKSPACE}/Tools/Jars" includes="SurfaceArea.jar"/>\r
b9546cc8 19 <fileset dir="${WORKSPACE}/Tools/Jars" includes="Common.jar"/>\r
d14ebb43 20 <fileset dir="${WORKSPACE}/Tools/Jars" includes="PcdTools.jar"/>\r
19924945 21 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
878ddf1f 22 </path>\r
23 <property name="buildDir" value="build"/>\r
24 <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r
a7828769 25 <target name="GenBuild" depends="install"/>\r
878ddf1f 26 <target name="source">\r
27 <mkdir dir="${buildDir}"/>\r
28 <javac srcdir="." destdir="${buildDir}">\r
29 <classpath refid="classpath"/>\r
30 <compilerarg value="-Xlint"/>\r
31 </javac>\r
32 </target>\r
33 <target name="clean">\r
439656f1 34 <delete includeemptydirs="true" failonerror="false" quiet="true">\r
35 <fileset dir="${WORKSPACE}/Tools/Java/Source/GenBuild" includes="${buildDir}"/>\r
36 </delete>\r
878ddf1f 37 </target>\r
439656f1 38 <target name="cleanall" depends="clean">\r
617cc72b 39 <delete file="${installLocation}/GenBuild.jar"/>\r
878ddf1f 40 <if>\r
41 <available file="${installLocation}/GenBuild.jar"/>\r
42 <then>\r
43 <echo message="You must manually remove the file: ${installLocation}/GenBuild.jar"/>\r
44 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
45 </then>\r
46 </if>\r
47 </target>\r
48 <target name="install" depends="source">\r
49 <copy file="GenBuild.tasks" toDir="${buildDir}"/>\r
50 <jar destfile="${installLocation}/GenBuild.jar"\r
51 basedir="${buildDir}"\r
52 includes="**"\r
53 />\r
54 </target>\r
55</project>\r