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
This commit is contained in:
@ -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}"
|
||||
|
Reference in New Issue
Block a user