summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/Common
diff options
context:
space:
mode:
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-10 23:01:42 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-10 23:01:42 +0000
commit439656f15250c9fd2e1c778649df1d517143e80e (patch)
treedc1f8d09e517c2e9a45c10b29166de67ab1a1f3e /Tools/Java/Source/Common
parent8973d1764ff732c1ddb8bfecf0f953b927fb66f1 (diff)
downloadedk2-platforms-439656f15250c9fd2e1c778649df1d517143e80e.tar.xz
Fixed the build.xml files so that clean and cleanall actually removes the temporary build directories, rather than leaving all of the intermediate files left lying around.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1715 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/Common')
-rw-r--r--Tools/Java/Source/Common/build.xml23
1 files changed, 20 insertions, 3 deletions
diff --git a/Tools/Java/Source/Common/build.xml b/Tools/Java/Source/Common/build.xml
index 4fd7285f01..376948c465 100644
--- a/Tools/Java/Source/Common/build.xml
+++ b/Tools/Java/Source/Common/build.xml
@@ -16,18 +16,34 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<property name="WORKSPACE" value="${env.WORKSPACE}"/>
<property name="buildDir" value="build"/>
<property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>
+
+ <path id="classpath">
+ <fileset dir="${WORKSPACE}/Tools/Jars">
+ <include name="SurfaceArea.jar"/>
+ </fileset>
+ <fileset dir="${env.XMLBEANS_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement path="${env.CLASSPATH}"/>
+ </path>
+
<target name="Common_Jar" depends="install"/>
+
<target name="source">
<mkdir dir="${buildDir}"/>
<javac srcdir="." destdir="${buildDir}">
+ <classpath refid="classpath"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
+
<target name="clean">
- <delete dir="${buildDir}"/>
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${WORKSPACE}/Tools/Java/Source/Common" includes="${buildDir}"/>
+ </delete>
</target>
- <target name="cleanall">
- <delete dir="${buildDir}"/>
+
+ <target name="cleanall" depends="clean">
<delete file="${installLocation}/Common.jar"/>
<if>
<available file="${installLocation}/Common.jar"/>
@@ -37,6 +53,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</then>
</if>
</target>
+
<target name="install" depends="source">
<jar destfile="${installLocation}/Common.jar"
basedir="${buildDir}"