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