X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;h=7fabe4690e921b6d2be5a841258f983a03f2e380;hp=740b7bd15b6badc0a7fe1f78c7d23910d8f152ce;hb=20480ea13852606681e9ad34a0b2bfffcbd01ff2;hpb=3a9b7229223b7a87c3394954a88ebe4b45021d74 diff --git a/edksetup.bat b/edksetup.bat index 740b7bd15b..7fabe4690e 100644 --- a/edksetup.bat +++ b/edksetup.bat @@ -10,12 +10,12 @@ @REM @REM set following environment in this file or in command shell -@REM set JAVA_HOME=C:\Java\jdk1.5.0_04 +@REM set JAVA_HOME=C:\Java\jdk1.5.0_06 @REM set ANT_HOME=C:\ANT @REM set XMLBEANS_HOME=C:\xmlbeans @REM set CYGWIN_HOME=C:\cygwin -@REM usage: edksetup.bat [Rebuild] [ForceRebuild] +@REM usage: edksetup.bat [Rebuild] [ForceRebuild] [Reconfig] @REM if the argument, skip is present, only the paths and the @REM test and set of environment settings are performed. @@ -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% @@ -87,6 +90,8 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO @if "%1"=="/h" goto Usage @if "%1"=="/?" goto Usage @if "%1"=="/help" goto Usage +@if "%1"=="ForceRebuild" goto ForceBuild +@if "%1"=="Reconfig" goto Reconfig @IF NOT EXIST "Tools\Jars\Common.jar" goto NormalBuild @IF NOT EXIST "Tools\Jars\PcdTools.jar" goto NormalBuild @@ -128,14 +133,12 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO @IF NOT EXIST "Tools\bin\dlg.exe" goto NormalBuild @if "%1"=="Rebuild" goto NormalBuild -@if "%1"=="ForceRebuild" goto ForceBuild @if NOT "%1"=="" goto Usage 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 +154,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 +233,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 @@ -248,9 +251,23 @@ set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\MigrationTools.jar echo CLASSPATH: %CLASSPATH% goto end +:Reconfig +@REM +@REM Reinstall all config files +@REM +call ant -f %WORKSPACE%\Tools\build.xml reconfig +goto end + :Usage echo. -echo Usage: %0 [Rebuild] [ForceRebuild] +echo Usage: %0 [Rebuild] [ForceRebuild] [Reconfig] +echo Rebuild: Incremental build, only build those updated tools; +echo ForceRebuild: Rebuild all tools neither updated or not; +echo Reconfig: Reinstall target.txt, tools_def.txt, FrameworkDatabase.db. +echo. +echo Note that target.template, tools_def.template, FrameworkDatabase.template will be +echo only copied to target.txt, tools_def.txt, FrameworkDatabase.db respectively if they +echo are not existed. Using option [Reconfig] to do the force copy. echo. :end