]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Java/Source/Common/build.xml
Changed invalid tool chain tag name to WARNING rather than an ERROR
[mirror_edk2.git] / Tools / Java / Source / Common / build.xml
CommitLineData
b9546cc8 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="Common" default="Common_Jar" basedir=".">\r
b9546cc8 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 <property name="buildDir" value="build"/>\r
18 <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r
439656f1 19\r
20 <path id="classpath">\r
21 <fileset dir="${WORKSPACE}/Tools/Jars">\r
22 <include name="SurfaceArea.jar"/>\r
23 </fileset>\r
24 <fileset dir="${env.XMLBEANS_HOME}/lib">\r
25 <include name="*.jar"/>\r
26 </fileset>\r
27 <pathelement path="${env.CLASSPATH}"/>\r
28 </path>\r
29\r
a7828769 30 <target name="Common_Jar" depends="install"/>\r
439656f1 31\r
b9546cc8 32 <target name="source">\r
33 <mkdir dir="${buildDir}"/>\r
34 <javac srcdir="." destdir="${buildDir}">\r
439656f1 35 <classpath refid="classpath"/>\r
b9546cc8 36 <compilerarg value="-Xlint"/>\r
37 </javac>\r
38 </target>\r
439656f1 39\r
b9546cc8 40 <target name="clean">\r
439656f1 41 <delete includeemptydirs="true" failonerror="false">\r
42 <fileset dir="${WORKSPACE}/Tools/Java/Source/Common" includes="${buildDir}"/>\r
43 </delete>\r
b9546cc8 44 </target>\r
439656f1 45\r
46 <target name="cleanall" depends="clean">\r
d7bb5113 47 <echo message="Removing Class Files and the Java Archive: Common.jar"/>\r
617cc72b 48 <delete file="${installLocation}/Common.jar"/>\r
b9546cc8 49 <if>\r
50 <available file="${installLocation}/Common.jar"/>\r
51 <then>\r
52 <echo message="You must manually remove the file: ${installLocation}/Common.jar"/>\r
53 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
54 </then>\r
55 </if>\r
56 </target>\r
439656f1 57\r
b9546cc8 58 <target name="install" depends="source">\r
59 <jar destfile="${installLocation}/Common.jar"\r
60 basedir="${buildDir}"\r
61 includes="**"\r
62 />\r
63 </target>\r
64</project>\r