-if "%ANT_HOME%"=="" goto no_ant\r
-if "%XMLBEANS_HOME%"=="" goto no_xmlbeans\r
-set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r
-\r
-echo.\r
-echo WORKSPACE: %WORKSPACE%\r
-echo ANT_HOME: %ANT_HOME%\r
-echo JAVA_HOME: %JAVA_HOME%\r
-\r
-if "%PATHBACKUP%"=="" set PATHBACKUP=%PATH%\r
-set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATHBACKUP%;%CYGWIN_HOME%\bin\r
-\r
-echo PATH: %PATH%\r
-echo.\r
-\r
-@REM We are going to create the SurfaceArea.jar file first so that other Java Program can use it\r
-set CLASSPATH=%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\r
-\r
-call ant -f %WORKSPACE%Tools\build.xml SurfaceArea\r
-\r
-@REM Now we can make the other Java Programs\r
-set CLASSPATH=%WORKSPACE%Tools\Jars\SurfaceArea.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\r
-\r
-call ant -f %WORKSPACE%Tools\build.xml JavaCode\r
-\r
-@REM We have all of the Java Programs and add-in classes created, so we can start using the cpp-tasks to create our tools\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\r
-\r
-call ant -f %WORKSPACE%Tools\build.xml C_Code\r
-\r
-goto end\r
-\r
-:no_jdk\r
-echo.\r
-echo !!! Please install Java, and set JAVA_HOME !!!\r
-echo.\r
-goto end \r
-\r
-:no_ant\r
-echo.\r
-echo !!! Please install Apache Ant, and set ANT_HOME !!!\r
-echo.\r
-goto end \r
-\r
-:no_xmlbeans\r
-echo.\r
-echo !!! Please install XML Beans, and set XMLBEANS_HOME !!!\r
-echo.\r
-goto end \r
+@if NOT "%1"=="" goto Usage\r
+@goto end\r
+\r
+:Usage\r
+ @echo.\r
+ @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [--nt32] [Reconfig]"\r
+ @echo --nt32 Call vsvars32.bat for NT32 platform build.\r
+ @echo.\r
+ @echo Reconfig Reinstall target.txt, tools_def.txt and build_rule.txt.\r
+ @echo.\r
+ @echo Note that target.template, tools_def.template and build_rules.template\r
+ @echo will be only copied to target.txt, tools_def.txt and build_rule.txt\r
+ @echo respectively if they do not exist. Using option [Reconfig] to force the copy. \r
+ @echo.\r
+ @goto end\r