You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ant.bat 1.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @echo off
  2. if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
  3. if not "%OS%"=="Windows_NT" goto start
  4. rem %~dp0 is name of current script under NT
  5. set DEFAULT_ANT_HOME=%~dp0
  6. rem : operator works similar to make : operator
  7. set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%
  8. if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
  9. set DEFAULT_ANT_HOME=
  10. :start
  11. if not "%ANT_HOME%" == "" goto ant_home_found
  12. echo.
  13. echo Warning: ANT_HOME environment variable is not set.
  14. echo This needs to be set for Win9x as it's command prompt
  15. echo scripting bites
  16. echo.
  17. goto end
  18. :ant_home_found
  19. if not "%JAVA_HOME%" == "" goto javaCmdSetup
  20. rem hope that there is java command in path
  21. if "%JAVACMD%" == "" set JAVACMD=java
  22. goto argSetup
  23. rem if JAVA_HOME is set then make sure we use that java exe
  24. :javaCmdSetup
  25. if "%JAVACMD%" == "" set JAVACMD=%JAVA_HOME%\bin\java
  26. :argSetup
  27. set ANT_CMD_LINE_ARGS=
  28. rem Slurp all args...
  29. :setupArgs
  30. if "%0" == "" goto doneArgs
  31. set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
  32. shift
  33. goto setupArgs
  34. :doneArgs
  35. rem Mmmmmm tasty - finished slurping args
  36. %JAVACMD% %ANT_OPTS% -jar %ANT_HOME%\bin\myrmidon-launcher.jar %ANT_CMD_LINE_ARGS%
  37. :end
  38. if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
  39. set ANT_CMD_LINE_ARGS=