Fixed CLASSPATH, ANT_HOME and XMLBEANS_HOME to allow this program to start.
authorlhauch <lhauch@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 28 Apr 2006 19:53:20 +0000 (19:53 +0000)
committerlhauch <lhauch@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 28 Apr 2006 19:53:20 +0000 (19:53 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@80 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/Tools/bin/PackageEditor.bat

index 5a49666..af54852 100644 (file)
 \r
 :check_java\r
 if "%JAVA_HOME%"=="" goto no_jdk\r
+\r
 :check_wks\r
 if "%WORKSPACE%"=="" goto no_wks\r
 \r
-set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant\r
-set XMLBEANS_HOME=%WORKSPACE%\Tools\bin\xmlbeans\r
+:check_ant\r
+if "%ANT_HOME%"=="" goto no_ant\r
+@REM set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant\r
+\r
+:check_xmlbeans\r
+if "%XMLBEANS_HOME"=="" goto no_xmlbeans\r
+@REM set XMLBEANS_HOME=%WORKSPACE%\Tools\bin\xmlbeans\r
+\r
 set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r
 \r
-set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%\r
+set PATH=%WORKSPACE%\Tools\bin;%PATH%\r
 \r
-set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\saxon8-jdom.jar;%XMLBEANS_HOME%\lib\saxon8-sql.jar;%XMLBEANS_HOME%\lib\resolver.jar\r
+set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar\r
+set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar\r
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar\r
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar\r
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\saxon8-jdom.jar\r
+set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8-sql.jar;%XMLBEANS_HOME%\lib\resolver.jar\r
 \r
 call "ant" -f %WORKSPACE%\Tools\Source\PackageEditor\build.xml\r
 \r
@@ -40,6 +52,18 @@ goto check_wks
 echo.\r
 echo !!! Please set WORKSPACE !!!\r
 echo.\r
+goto check_ant\r
+\r
+:no_ant\r
+echo.\r
+echo !!! Please set ANT_HOME !!!\r
+echo.\r
+goto check_xmlbeans\r
+\r
+:no_xmlbeans\r
+echo.\r
+echo !!! Please set XMLBEANS_HOME !!!\r
+echo.\r
 goto end\r
 \r
 :end\r