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.

build.bat 1.8 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @echo off
  2. rem --------------------------------------------------------------------------
  3. rem build.bat - Build Script for Frantic (lifted from Tomcat...thx guys)
  4. rem
  5. rem Environment Variable Prerequisites:
  6. rem
  7. rem JAVA_HOME Must point at your Java Development Kit [REQUIRED]
  8. rem
  9. rem ---------------------------------------------------------------------------
  10. rem ----- Save Environment Variables ------------------------------------------
  11. set _CLASSPATH=%CLASSPATH%
  12. set _CLASSES=%CLASSES%
  13. rem ----- Verify and Set Required Environment Variables -----------------------
  14. if not "%JAVA_HOME%" == "" goto gotJavaHome
  15. echo You must set JAVA_HOME to point at your Java Development Kit installation
  16. goto cleanup
  17. :gotJavaHome
  18. rem ----- Set Up The Runtime Classpath ----------------------------------------
  19. if not "%CLASSPATH%" == "" set CLASSPATH=%CLASSPATH%;
  20. set CLASSPATH=%CLASSPATH%;./src
  21. rem ----- Execute The Requested Build -----------------------------------------
  22. if not exist dist mkdir dist
  23. if not exist dist\lib mkdir dist\lib
  24. if not exist dist\lib\classes mkdir dist\lib\classes
  25. if not exist dist\doc mkdir dist\doc
  26. if not exist dist\doc\api mkdir dist\doc\api
  27. set CLASSES=dist\lib\classes
  28. %JAVA_HOME%\bin\javac -d %CLASSES% src/org/apache/ant/test/*.java
  29. %JAVA_HOME%\bin\jar cvf dist\lib\frantic.jar -C dist\lib\classes .
  30. xcopy website\*.html dist\doc /s /y
  31. xcopy website\*.gif dist\doc /s /y
  32. %JAVA_HOME%\bin\javadoc -protected -sourcepath src -d dist\doc\api -author org.apache.ant org.apache.ant.engine org.apache.ant.tasks org.apache.ant.tasks.build org.apache.ant.tasks.util
  33. rem ----- Restore Environment Variables ---------------------------------------
  34. :cleanup
  35. set CLASSPATH=%_CLASSPATH%
  36. set CLASSES=%_CLASSES%
  37. set _CLASSPATH=
  38. set _CLASSES=
  39. :finish