]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/GenBuild/build.xml
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=
"GenBuild" 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=
"${WORKSPACE}/Tools/Jars" includes=
"PcdTools.jar"/>
21 <fileset dir=
"${env.XMLBEANS_HOME}/lib" includes=
"*.jar"/>
23 <property name=
"buildDir" value=
"build"/>
24 <property name=
"installLocation" value=
"${WORKSPACE}/Tools/Jars"/>
25 <target name=
"GenBuild" depends=
"install"/>
26 <target name=
"source">
27 <mkdir dir=
"${buildDir}"/>
28 <javac srcdir=
"." destdir=
"${buildDir}">
29 <classpath refid=
"classpath"/>
30 <compilerarg value=
"-Xlint"/>
34 <delete includeemptydirs=
"true" failonerror=
"false" quiet=
"true">
35 <fileset dir=
"${WORKSPACE}/Tools/Java/Source/GenBuild" includes=
"${buildDir}"/>
38 <target name=
"cleanall" depends=
"clean">
39 <echo message=
"Removing Class Files and the Java Archive: GenBuild.jar"/>
40 <delete file=
"${installLocation}/GenBuild.jar"/>
42 <available file=
"${installLocation}/GenBuild.jar"/>
44 <echo message=
"You must manually remove the file: ${installLocation}/GenBuild.jar"/>
45 <echo message=
"Java has already loaded the file, and cannot remove it within ANT!"/>
49 <target name=
"install" depends=
"source">
50 <copy file=
"GenBuild.tasks" toDir=
"${buildDir}"/>
51 <jar destfile=
"${installLocation}/GenBuild.jar"