anchor.diff:  if "%OS%"=="Windows_NT" @endlocal
   if "%OS%"=="WINNT" @endlocal
   
  -if "%HOME%"=="" goto homeDrivePathPost
  -if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
  -
  -:homeDrivePathPost
  -if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost
  -if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost
  -if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"
  -
  -:userProfilePost
  -if "%USERPROFILE%"=="" goto omega
  -if "%USERPROFILE%"=="%HOME%" goto omega
  -if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega
  -if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"
  -
   :omega
   
   exit /b %ANT_ERROR%
  
positive.code: 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
  
negative.code: REM  See the License for the specific language governing permissions and
  REM  limitations under the License.
  
  if "%OS%"=="Windows_NT" @setlocal
  if "%OS%"=="WINNT" @setlocal
  
  if "%DITA_HOME%"=="" goto setDefaultDitaHome
  
  :setDefaultDitaHome
  rem %~dp0 is expanded pathname of the current script under NT
  set DITA_HOME="%~dp0.."
  
  rem Slurp the command line arguments. This loop allows for an unlimited number
  rem of arguments (up to the command line limit, anyway).
  set DITA_CMD_LINE_ARGS=
  :setupArgs
  if ""%1""=="""" goto doneStart
  set DITA_CMD_LINE_ARGS=%DITA_CMD_LINE_ARGS% %1
  shift
  goto setupArgs
  
  