Fixed a typo
[mirror_edk2.git] / Tools / Java / Source / FrameworkTasks / build.xml
CommitLineData
878ddf1f 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="FrameworkTasks" default="FrameworkTasks">\r
878ddf1f 13 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
14 <property environment="env"/>\r
15 <property name="workspace" value="${env.WORKSPACE}"/>\r
16 <property name="buildDir" value="build"/>\r
17 <property name="installLocation" value="${workspace}/Tools/Jars"/>\r
a7828769 18 <target name="FrameworkTasks" depends="install"/>\r
878ddf1f 19 <target name="source">\r
20 <mkdir dir="${buildDir}"/>\r
21 <javac srcdir="." destdir="${buildDir}">\r
22 <classpath>\r
23 <fileset dir="${workspace}/Tools/Jars">\r
24 <include name="*.jar"/>\r
25 </fileset>\r
26 </classpath>\r
27 <compilerarg value="-Xlint"/>\r
28 </javac>\r
29 </target>\r
30 <target name="clean">\r
439656f1 31 <delete includeemptydirs="true" failonerror="false" quiet="true">\r
32 <fileset dir="${WORKSPACE}/Tools/Java/Source/FrameworkTasks" includes="${buildDir}"/>\r
33 </delete>\r
878ddf1f 34 </target>\r
439656f1 35 <target name="cleanall" depends="clean">\r
617cc72b 36 <delete file="${installLocation}/frameworktasks.jar"/>\r
878ddf1f 37 <if>\r
38 <available file="${installLocation}/frameworktasks.jar"/>\r
39 <then>\r
40 <echo message="You must manually remove the file: ${installLocation}/frameworktasks.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 <copy file="frameworktasks.tasks" toDir="${buildDir}"/>\r
47 <jar destfile="${installLocation}/frameworktasks.jar"\r
48 basedir="${buildDir}"\r
49 includes="**"\r
50 />\r
51 </target>\r
52</project>\r