diff options
author | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-11 16:40:33 +0000 |
---|---|---|
committer | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-11 16:40:33 +0000 |
commit | d7bb51136bec52eb92898b15891e2499dfa6821b (patch) | |
tree | f4c40dae381d036baa233799ad95e2b19b22b7be | |
parent | 41109716357a12d76640bb8fb836a42db76b66ee (diff) | |
download | edk2-platforms-d7bb51136bec52eb92898b15891e2499dfa6821b.tar.xz |
Standardized property name WORKSPACE and fixed cleanall messages.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1725 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/CCode/Source/Pccts/antlr/build.xml | 11 | ||||
-rw-r--r-- | Tools/CCode/Source/Pccts/build.xml | 1 | ||||
-rw-r--r-- | Tools/CCode/Source/Pccts/dlg/build.xml | 8 | ||||
-rw-r--r-- | Tools/Java/Source/Common/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/ContextTool/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/Cpptasks/build.xml | 9 | ||||
-rw-r--r-- | Tools/Java/Source/FrameworkTasks/build.xml | 7 | ||||
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/GenBuild/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/Merge/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/MigrationTools/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/PcdTools/build.xml | 1 | ||||
-rw-r--r-- | Tools/Java/Source/SurfaceArea/build.xml | 1 | ||||
-rw-r--r-- | Tools/build.xml | 21 |
14 files changed, 55 insertions, 10 deletions
diff --git a/Tools/CCode/Source/Pccts/antlr/build.xml b/Tools/CCode/Source/Pccts/antlr/build.xml index 5280085847..7ea7458f7b 100644 --- a/Tools/CCode/Source/Pccts/antlr/build.xml +++ b/Tools/CCode/Source/Pccts/antlr/build.xml @@ -40,6 +40,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="TRUE">
+ <arg line="/NOLOGO"/>
<arg line="-f AntlrMS.mak"/>
</exec>
</then>
@@ -55,6 +56,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <istrue value="${gcc}"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
+ <arg line="-s"/>
<arg line="-f makefile BIN_DIR=${BIN_DIR}"/>
</exec>
</then>
@@ -69,6 +71,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="TRUE">
+ <arg line="/C"/>
+ <arg line="/NOLOGO"/>
<arg line="-f AntlrMS.mak clean"/>
</exec>
</then>
@@ -84,6 +88,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <istrue value="${gcc}"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
+ <arg line="-s"/>
<arg line="-f makefile clean"/>
</exec>
</then>
@@ -97,7 +102,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="FALSE">
- <arg line="-f AntlrMS.mak clean"/>
+ <arg line="/C"/>
+ <arg line="/NOLOGO"/>
+ <arg line="/f AntlrMS.mak clean"/>
</exec>
</then>
<elseif>
@@ -105,6 +112,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <then>
<echo message="Building antlr with cygwin gcc"/>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="FALSE">
+ <arg line="-s"/>
<arg line="-f makefile.cygwin clean"/>
</exec>
</then>
@@ -114,6 +122,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <then>
<echo message="Building antlr with gcc"/>
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="FALSE">
+ <arg line="-s"/>
<arg line="-f makefile clean"/>
</exec>
</then>
diff --git a/Tools/CCode/Source/Pccts/build.xml b/Tools/CCode/Source/Pccts/build.xml index d6ed0749df..58a82f4c36 100644 --- a/Tools/CCode/Source/Pccts/build.xml +++ b/Tools/CCode/Source/Pccts/build.xml @@ -41,6 +41,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </target>
<target name="cleanall">
+ <echo message="Removing Object Files and the Executables from the package: Pccts"/>
<ant dir="${PACKAGE_DIR}/Pccts/antlr" target="cleanall" inheritAll="true"/>
<ant dir="${PACKAGE_DIR}/Pccts/dlg" target="cleanall" inheritAll="true"/>
</target>
diff --git a/Tools/CCode/Source/Pccts/dlg/build.xml b/Tools/CCode/Source/Pccts/dlg/build.xml index 3a8a9eec2b..da5dbd0f59 100644 --- a/Tools/CCode/Source/Pccts/dlg/build.xml +++ b/Tools/CCode/Source/Pccts/dlg/build.xml @@ -42,6 +42,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
+ <arg line="/NOLOGO"/>
<arg line="-f DlgMS.mak"/>
</exec>
</then>
@@ -57,6 +58,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="gcc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
+ <arg line="-s"/>
<arg line="-f makefile BIN_DIR=${BIN_DIR}"/>
</exec>
</then>
@@ -71,6 +73,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
+ <arg line="/C"/>
+ <arg line="/NOLOGO"/>
<arg line="-f DlgMS.mak clean"/>
</exec>
</then>
@@ -86,6 +90,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="gcc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
+ <arg line="-s"/>
<arg line="-f makefile clean"/>
</exec>
</then>
@@ -99,6 +104,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="msvc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="FALSE">
+ <arg line="/C"/>
+ <arg line="/NOLOGO"/>
<arg line="-f DlgMS.mak clean"/>
</exec>
</then>
@@ -106,6 +113,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <equals arg1="${ToolChain}" arg2="gcc"/>
<then>
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="FALSE">
+ <arg line="-s"/>
<arg line="-f makefile clean"/>
</exec>
</then>
diff --git a/Tools/Java/Source/Common/build.xml b/Tools/Java/Source/Common/build.xml index 376948c465..f75db2fb71 100644 --- a/Tools/Java/Source/Common/build.xml +++ b/Tools/Java/Source/Common/build.xml @@ -44,6 +44,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: Common.jar"/>
<delete file="${installLocation}/Common.jar"/>
<if>
<available file="${installLocation}/Common.jar"/>
diff --git a/Tools/Java/Source/ContextTool/build.xml b/Tools/Java/Source/ContextTool/build.xml index 65f75456f7..3779dbe257 100644 --- a/Tools/Java/Source/ContextTool/build.xml +++ b/Tools/Java/Source/ContextTool/build.xml @@ -35,6 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: ContextTool.jar"/>
<delete file="${installLocation}/ContextTool.jar"/>
<if>
<available file="${installLocation}/ContextTool.jar"/>
diff --git a/Tools/Java/Source/Cpptasks/build.xml b/Tools/Java/Source/Cpptasks/build.xml index 971e7e774c..ce040e6ac7 100644 --- a/Tools/Java/Source/Cpptasks/build.xml +++ b/Tools/Java/Source/Cpptasks/build.xml @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <project name="CppTasks" default="CppTasks" basedir=".">
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<property environment="env"/>
- <property name="workspace" value="${env.WORKSPACE}"/>
+ <property name="WORKSPACE" value="${env.WORKSPACE}"/>
<property name="buildDir" value="build"/>
- <property name="installLocation" value="${workspace}/Tools/Jars"/>
+ <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>
<target name="CppTasks" depends="install"/>
<target name="init">
<uptodate property="jar.newer" targetfile="${installLocation}/cpptasks.jar">
@@ -25,18 +25,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <mkdir dir="${buildDir}"/>
<javac srcdir="net" destdir="${buildDir}" source="1.4">
<classpath>
- <fileset dir="${workspace}/Tools/Jars">
+ <fileset dir="${WORKSPACE}/Tools/Jars">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="clean">
- <delete includeemptydirs="true" failonerror="false">
+ <delete includeemptydirs="true" failonerror="false" quiet="true">
<fileset dir="${WORKSPACE}/Tools/Java/Source/Cpptasks" includes="${buildDir}"/>
</delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: cpptasks.jar"/>
<delete file="${installLocation}/cpptasks.jar"/>
<if>
<available file="${installLocation}/cpptasks.jar"/>
diff --git a/Tools/Java/Source/FrameworkTasks/build.xml b/Tools/Java/Source/FrameworkTasks/build.xml index ad5d3f0ff9..c3c86c987c 100644 --- a/Tools/Java/Source/FrameworkTasks/build.xml +++ b/Tools/Java/Source/FrameworkTasks/build.xml @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <project name="FrameworkTasks" default="FrameworkTasks">
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<property environment="env"/>
- <property name="workspace" value="${env.WORKSPACE}"/>
+ <property name="WORKSPACE" value="${env.WORKSPACE}"/>
<property name="buildDir" value="build"/>
- <property name="installLocation" value="${workspace}/Tools/Jars"/>
+ <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>
<target name="FrameworkTasks" depends="install"/>
<target name="source">
<mkdir dir="${buildDir}"/>
<javac srcdir="." destdir="${buildDir}">
<classpath>
- <fileset dir="${workspace}/Tools/Jars">
+ <fileset dir="${WORKSPACE}/Tools/Jars">
<include name="*.jar"/>
</fileset>
</classpath>
@@ -33,6 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: frameworktasks.jar"/>
<delete file="${installLocation}/frameworktasks.jar"/>
<if>
<available file="${installLocation}/frameworktasks.jar"/>
diff --git a/Tools/Java/Source/FrameworkWizard/build.xml b/Tools/Java/Source/FrameworkWizard/build.xml index c936930254..5c71edbd19 100644 --- a/Tools/Java/Source/FrameworkWizard/build.xml +++ b/Tools/Java/Source/FrameworkWizard/build.xml @@ -34,6 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: FrameworkWizard.jar"/>
<delete file="${installLocation}/FrameworkWizard.jar"/>
</target>
<target name="install" depends="source">
diff --git a/Tools/Java/Source/GenBuild/build.xml b/Tools/Java/Source/GenBuild/build.xml index d33cbebde0..2f9476f4bd 100644 --- a/Tools/Java/Source/GenBuild/build.xml +++ b/Tools/Java/Source/GenBuild/build.xml @@ -36,6 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: GenBuild.jar"/>
<delete file="${installLocation}/GenBuild.jar"/>
<if>
<available file="${installLocation}/GenBuild.jar"/>
diff --git a/Tools/Java/Source/Merge/build.xml b/Tools/Java/Source/Merge/build.xml index 8b91fad7cd..709c9e8fe9 100644 --- a/Tools/Java/Source/Merge/build.xml +++ b/Tools/Java/Source/Merge/build.xml @@ -33,6 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: Merge.jar"/>
<delete file="${installLocation}/Merge.jar"/>
</target>
<target name="install" depends="source">
diff --git a/Tools/Java/Source/MigrationTools/build.xml b/Tools/Java/Source/MigrationTools/build.xml index 10ca9215c8..ddb4979ea9 100644 --- a/Tools/Java/Source/MigrationTools/build.xml +++ b/Tools/Java/Source/MigrationTools/build.xml @@ -34,6 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: MigrationTools.jar"/>
<delete file="${installLocation}/MigrationTools.jar"/>
<if>
<available file="${installLocation}/MigrationTools.jar"/>
diff --git a/Tools/Java/Source/PcdTools/build.xml b/Tools/Java/Source/PcdTools/build.xml index a8c7aa959f..4db07e0cf4 100644 --- a/Tools/Java/Source/PcdTools/build.xml +++ b/Tools/Java/Source/PcdTools/build.xml @@ -35,6 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </delete>
</target>
<target name="cleanall" depends="clean">
+ <echo message="Removing Class Files and the Java Archive: PcdTools.jar"/>
<delete file="${installLocation}/PcdTools.jar"/>
<if>
<available file="${installLocation}/PcdTools.jar"/>
diff --git a/Tools/Java/Source/SurfaceArea/build.xml b/Tools/Java/Source/SurfaceArea/build.xml index 6931d81706..6dd98cd9d1 100644 --- a/Tools/Java/Source/SurfaceArea/build.xml +++ b/Tools/Java/Source/SurfaceArea/build.xml @@ -200,6 +200,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </target>
<target name="cleanall" depends="SurfaceArea.jar.clean">
+ <echo message="Removing Class Files and the Java Archive: SurfaceArea.jar"/>
<delete file="${WORKSPACE}/Tools/Jars/SurfaceArea.jar"/>
<if>
<available file="${WORKSPACE}/Tools/Jars/SurfaceArea.jar"/>
diff --git a/Tools/build.xml b/Tools/build.xml index 0f746c98e8..caef839b50 100644 --- a/Tools/build.xml +++ b/Tools/build.xml @@ -130,15 +130,32 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Java/Source/PcdTools/build.xml
Java/Source/Common/build.xml
Java/Source/SurfaceArea/build.xml
- CCode/Source/build.xml
Java/Source/MigrationTools/build.xml
Java/Source/ContextTool/build.xml
Java/Source/Merge/build.xml
+ CCode/Source/build.xml
"/>
</subant>
</target>
<target name="cleanall">
+ <echo message="Removing extra ${env.WORKSPACE} history.xml files!"/>
+ <if>
+ <available file="${env.WORKSPACE}/Tools/bin/history.xml"/>
+ <then>
+ <delete failonerror="false" quiet="true">
+ <fileset file="${env.WORKSPACE}/Tools/bin/history.xml"/>
+ </delete>
+ </then>
+ </if>
+ <if>
+ <available file="${env.WORKSPACE}/Tools/CCode/Source/Library/history.xml"/>
+ <then>
+ <delete failonerror="false" quiet="true">
+ <fileset file="${env.WORKSPACE}/Tools/CCode/Source/Library/history.xml"/>
+ </delete>
+ </then>
+ </if>
<available classname="org.tianocore.frameworkwizard.FrameworkWizardUI" property="FrameworkWizardUI.available"/>
<available classname="org.tianocore.build.GenBuildTask" property="GenBuildTask.available"/>
<available classname="org.tianocore.framework.tasks.Tool" property="Tool.available"/>
@@ -164,10 +181,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Java/Source/PcdTools/build.xml
Java/Source/Common/build.xml
Java/Source/SurfaceArea/build.xml
- CCode/Source/build.xml
Java/Source/MigrationTools/build.xml
Java/Source/ContextTool/build.xml
Java/Source/Merge/build.xml
+ CCode/Source/build.xml
"/>
</subant>
</target>
|