]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Java/Source/Cpptasks/build.xml
Fixed the build.xml files so that clean and cleanall actually removes the temporary...
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / 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="CppTasks" default="CppTasks" basedir=".">\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="CppTasks" depends="install"/>\r
878ddf1f 19 <target name="init">\r
20 <uptodate property="jar.newer" targetfile="${installLocation}/cpptasks.jar">\r
21 <srcfiles dir="net" includes="**"/>\r
22 </uptodate>\r
23 </target>\r
24 <target name="source" depends="init" unless="jar.newer">\r
25 <mkdir dir="${buildDir}"/>\r
0d806227 26 <javac srcdir="net" destdir="${buildDir}" source="1.4">\r
878ddf1f 27 <classpath>\r
28 <fileset dir="${workspace}/Tools/Jars">\r
29 <include name="*.jar"/>\r
30 </fileset>\r
31 </classpath>\r
32 </javac>\r
33 </target>\r
34 <target name="clean">\r
439656f1 35 <delete includeemptydirs="true" failonerror="false">\r
36 <fileset dir="${WORKSPACE}/Tools/Java/Source/Cpptasks" includes="${buildDir}"/>\r
37 </delete>\r
878ddf1f 38 </target>\r
439656f1 39 <target name="cleanall" depends="clean">\r
617cc72b 40 <delete file="${installLocation}/cpptasks.jar"/>\r
878ddf1f 41 <if>\r
42 <available file="${installLocation}/cpptasks.jar"/>\r
43 <then>\r
44 <echo message="You must manually remove the file: ${installLocation}/cpptasks.jar"/>\r
45 <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
46 </then>\r
47 </if>\r
48 </target>\r
49 <target name="install" depends="source" unless="jar.newer">\r
50 <copy file="cpptasks.tasks" toDir="${buildDir}"/>\r
51 <copy file="cpptasks.types" toDir="${buildDir}"/>\r
52 <jar destfile="${installLocation}/cpptasks.jar"\r
53 basedir="${buildDir}"\r
54 includes="**"\r
55 />\r
56 </target>\r
57</project>\r