anchor.diff:  rem and for NT handling to skip to.
   
   :doneStart
  -
  -if "%_USE_CLASSPATH%"=="no" goto findDitaHome
  -
  -:stripClasspath
  -if not _%CLASSPATH:~-1%==_\ goto findDitaHome
  -set CLASSPATH=%CLASSPATH:~0,-1%
  -goto stripClasspath
  -
  -:findDitaHome
  -rem find DITA_HOME if it does not exist due to either an invalid value passed
  -rem by the user or the %0 problem on Windows 9x
  -if exist "%DITA_HOME%\lib\ant.jar" goto checkJava
  -
  -rem check for ant in Program Files
  -if not exist "%ProgramFiles%\ant" goto checkSystemDrive
  -set DITA_HOME=%ProgramFiles%\ant
  -goto checkJava
  -
  -:checkSystemDrive
  -rem check for ant in root directory of system drive
  -if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
  -set DITA_HOME=%SystemDrive%\ant
  -goto checkJava
  -
  -:checkCDrive
  -rem check for ant in C:\ant for Win9X users
  -if not exist C:\ant\lib\ant.jar goto noAntHome
  -set DITA_HOME=C:\ant
  -goto checkJava
  -
  -:noAntHome
  -echo DITA_HOME is set incorrectly or ant could not be located. Please set DITA_HOME.
  -goto end
   
   :checkJava
   rem Set environment variables
  
positive.code: if "%_JAVACMD%" == "" set _JAVACMD=java.exe
  
  :runAnt
  if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
  :runAntWithClasspath
  "%_JAVACMD%" %ANT_OPTS% -classpath "%DITA_HOME%\lib\ant-launcher.jar" "-Dant.home=%DITA_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %DITA_CMD_LINE_ARGS% -buildfile "%DITA_HOME%\build.xml" -main "org.dita.dost.invoker.Main"
  rem Check the error code of the Ant build
  if not "%OS%"=="Windows_NT" goto onError
  set ANT_ERROR=%ERRORLEVEL%
  goto end
  
  :runAntNoClasspath
  "%_JAVACMD%" %ANT_OPTS% -classpath "%DITA_HOME%\lib\ant-launcher.jar" "-Dant.home=%DITA_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %DITA_CMD_LINE_ARGS% -buildfile "%DITA_HOME%\build.xml" -main "org.dita.dost.invoker.Main"
  rem Check the error code of the Ant build
  if not "%OS%"=="Windows_NT" goto onError
  set ANT_ERROR=%ERRORLEVEL%
  
negative.code: if "%OS%"=="Windows_NT" @endlocal
  if "%OS%"=="WINNT" @endlocal
  
  :omega
  
  exit /b %ANT_ERROR%
  