]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/MigrationTools/build.xml
MsaOwner usable
[mirror_edk2.git] / Tools / Source / MigrationTools / build.xml
CommitLineData
0dc8c589 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
12<project name="MigrationTools" default="MigrationTools" basedir=".">\r
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="*.jar"/>\r
19 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
20 </path>\r
21 <property name="buildDir" value="build"/>\r
22 <property name="installLocation" value="${WORKSPACE}/Tools/bin"/>\r
23 <target name="MigrationTools" depends="install"/>\r
24 <target name="source">\r
25 <mkdir dir="${buildDir}"/>\r
26 <javac srcdir="." destdir="${buildDir}">\r
27 <classpath refid="classpath"/>\r
28 <compilerarg value="-Xlint"/>\r
29 </javac>\r
30 </target>\r
31 <target name="clean">\r
32 <delete dir="${buildDir}"/>\r
33 </target>\r
34 <target name="cleanall">\r
35 <delete dir="${buildDir}"/>\r
36 <delete file="${installLocation}/MigrationTools.jar"/>\r
37 <if>\r
38 <available file="${installLocation}/MigrationTools.jar"/>\r
39 <then>\r
40 <echo message="You must manually remove the file: ${installLocation}/MigrationTools.jar"/>\r
41 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
42 </then>\r
43 </if>\r
44 </target>\r
45 <target name="install" depends="source">\r
46 <jar destfile="${installLocation}/MigrationTools.jar"\r
47 basedir="${buildDir}"\r
48 includes="**"\r
49 manifest="MANIFEST.MF"\r
50 />\r
51 </target>\r
52</project>\r