diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 06:24:21 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 06:24:21 +0000 |
commit | eb614e7e39b33d1ea9bcf8e50edd331952c9806f (patch) | |
tree | 3c27852a227a36d73850b1a124d1d317503ac184 | |
parent | ae69d4dae83d70576c524ababa15f9deb7249fea (diff) | |
download | edk2-platforms-eb614e7e39b33d1ea9bcf8e50edd331952c9806f.tar.xz |
Fixed EDKT381. We can keep the system's CLASSPATH value after executing edksetup.bat and won't duplicate it with more than one time of execution.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1769 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | edksetup.bat | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/edksetup.bat b/edksetup.bat index ec9f20444e..8a6aeb356c 100644 --- a/edksetup.bat +++ b/edksetup.bat @@ -67,6 +67,9 @@ set WORKSPACE=%CD% set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin
+if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH=%CLASSPATH%
+set CLASSPATH=%ORIGINAL_CLASSPATH%
+
if defined WORKSPACE_TOOLS_PATH goto check_path
set PATH=%FRAMEWORK_TOOLS_PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%XMLBEANS_HOME%\bin;%PATH%
set WORKSPACE_TOOLS_PATH=%FRAMEWORK_TOOLS_PATH%
@@ -134,8 +137,7 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO goto skipbuild
:ForceBuild
-@if "%CLASSPATH%"=="" set CLASSPATH=
-call ant -noclasspath -f %WORKSPACE%\Tools\build.xml cleanall
+call ant -f %WORKSPACE%\Tools\build.xml -noclasspath cleanall
:NormalBuild
@REM
@@ -151,7 +153,7 @@ echo. @REM Java Programs can use it.
@REM It needs the XMLBEANS libraries in order to compile.
@REM
-set CLASSPATH=%XMLBEANS_HOME%\lib
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean.jar
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar
@@ -230,7 +232,7 @@ echo XMLBEANS_HOME: %XMLBEANS_HOME% echo CYGWIN_HOME: %CYGWIN_HOME%
echo PATH: %PATH%
echo.
-set CLASSPATH=%XMLBEANS_HOME%\lib
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean.jar
set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar
|