]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/MigrationTools/build.xml
Fixed the build.xml files so that clean and cleanall actually removes the temporary...
[mirror_edk2.git] / Tools / Java / Source / MigrationTools / build.xml
1 <?xml version="1.0"?>
2 <!--
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
8
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.
11 -->
12 <project name="MigrationTools" default="MigrationTools" basedir=".">
13
14 <taskdef resource="net/sf/antcontrib/antlib.xml"/>
15 <property environment="env"/>
16 <property name="WORKSPACE" value="${env.WORKSPACE}"/>
17 <path id="classpath">
18 <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>
19 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
20 </path>
21 <property name="buildDir" value="build"/>
22 <property name="installLocation" value="${WORKSPACE}/Tools/bin"/>
23 <target name="MigrationTools" depends="install"/>
24 <target name="source">
25 <mkdir dir="${buildDir}"/>
26 <javac srcdir="." destdir="${buildDir}">
27 <classpath refid="classpath"/>
28 <compilerarg value="-Xlint"/>
29 </javac>
30 </target>
31 <target name="clean">
32 <delete dir="${buildDir}"/>
33 </target>
34 <target name="cleanall">
35 <delete dir="${buildDir}"/>
36 <delete file="${installLocation}/MigrationTools.jar"/>
37 <if>
38 <available file="${installLocation}/MigrationTools.jar"/>
39 <then>
40 <echo message="You must manually remove the file: ${installLocation}/MigrationTools.jar"/>
41 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>
42 </then>
43 </if>
44 </target>
45 <target name="install" depends="source">
46 <jar destfile="${installLocation}/MigrationTools.jar"
47 basedir="${buildDir}"
48 includes="**"
49 manifest="MANIFEST.MF"
50 />
51 </target>
52 </project>