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

build.bat 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. rem $Id$
  3. echo Apache FOP: Build System
  4. echo --------------------------
  5. if "%JAVA_HOME%" == "" goto no_java_home
  6. if "%ANT_HOME%" == "" goto no_ant_home
  7. call %ANT_HOME%\bin\ant.bat %1 %2 %3 %4 %5 %6 %7 %8
  8. goto end
  9. :no_java_home
  10. echo ERROR: JAVA_HOME not found in your environment.
  11. echo Please, set the JAVA_HOME variable in your environment to match the
  12. echo location of the Java Virtual Machine you want to use.
  13. goto end
  14. :no_ant_home
  15. echo ERROR: ANT_HOME not found in your environment.
  16. echo Please install Apache Ant first. FOP uses Ant as its build system.
  17. echo You can download Apache Ant from http://ant.apache.org
  18. echo 1. Download and install Ant
  19. echo 2. Set the ANT_HOME environment variable to the directory where you've
  20. echo placed Ant.
  21. echo 3. Add "%%ANT_HOME%%\bin" to your PATH so the "ant.bat" batch file
  22. echo can be executed from wherever needed.
  23. echo 4. (optional) Download JUnit and place junit-*.jar in %%ANT_HOME%%\lib.
  24. echo This enables the JUnit test cases.
  25. echo You will now be directed to the Apache Ant website...
  26. pause
  27. start http://ant.apache.org
  28. goto end
  29. :end