]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/ContextTool/build.xml
- Fixed EDKT513 by adding existing section files into the dependency check of genffsf...
[mirror_edk2.git] / Tools / Java / Source / ContextTool / 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="ContextTool" default="ContextTool" 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="SurfaceArea.jar"/>
19 <fileset dir="${WORKSPACE}/Tools/Jars" includes="Common.jar"/>
20 <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
21 </path>
22 <property name="buildDir" value="build"/>
23 <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>
24 <target name="ContextTool" depends="install"/>
25 <target name="source">
26 <mkdir dir="${buildDir}"/>
27 <javac srcdir="." destdir="${buildDir}">
28 <classpath refid="classpath"/>
29 <compilerarg value="-Xlint"/>
30 </javac>
31 </target>
32 <target name="clean">
33 <delete includeemptydirs="true" failonerror="false" quiet="true">
34 <fileset dir="${WORKSPACE}/Tools/Java/Source/ContextTool" includes="${buildDir}"/>
35 </delete>
36 </target>
37 <target name="cleanall" depends="clean">
38 <echo message="Removing Class Files and the Java Archive: ContextTool.jar"/>
39 <delete file="${installLocation}/ContextTool.jar"/>
40 <if>
41 <available file="${installLocation}/ContextTool.jar"/>
42 <then>
43 <echo message="You must manually remove the file: ${installLocation}/ContextTool.jar"/>
44 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>
45 </then>
46 </if>
47 </target>
48 <target name="install" depends="source">
49 <jar destfile="${installLocation}/ContextTool.jar"
50 basedir="${buildDir}"
51 includes="**"
52 />
53 </target>
54 </project>
55