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.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @echo off
  2. REM Copyright 1999-2004 The Apache Software Foundation
  3. REM
  4. REM Licensed under the Apache License, Version 2.0 (the "License");
  5. REM you may not use this file except in compliance with the License.
  6. REM You may obtain a copy of the License at
  7. REM
  8. REM http://www.apache.org/licenses/LICENSE-2.0
  9. REM
  10. REM Unless required by applicable law or agreed to in writing, software
  11. REM distributed under the License is distributed on an "AS IS" BASIS,
  12. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. REM See the License for the specific language governing permissions and
  14. REM limitations under the License.
  15. REM
  16. REM $Id: build.bat,v 1.2 2004/02/27 19:32:25 jeremias Exp $
  17. echo Apache FOP: Build System
  18. echo --------------------------
  19. if "%JAVA_HOME%" == "" goto no_java_home
  20. if "%ANT_HOME%" == "" goto no_ant_home
  21. call %ANT_HOME%\bin\ant.bat %1 %2 %3 %4 %5 %6 %7 %8
  22. goto end
  23. :no_java_home
  24. echo ERROR: JAVA_HOME not found in your environment.
  25. echo Please, set the JAVA_HOME variable in your environment to match the
  26. echo location of the Java Virtual Machine you want to use.
  27. goto end
  28. :no_ant_home
  29. echo ERROR: ANT_HOME not found in your environment.
  30. echo Please install Apache Ant first. FOP uses Ant as its build system.
  31. echo You can download Apache Ant from http://ant.apache.org
  32. echo 1. Download and install Ant
  33. echo 2. Set the ANT_HOME environment variable to the directory where you've
  34. echo placed Ant.
  35. echo 3. Add "%%ANT_HOME%%\bin" to your PATH so the "ant.bat" batch file
  36. echo can be executed from wherever needed.
  37. echo 4. (optional) Download JUnit and place junit-*.jar in %%ANT_HOME%%\lib.
  38. echo This enables the JUnit test cases.
  39. echo You will now be directed to the Apache Ant website...
  40. pause
  41. start http://ant.apache.org
  42. goto end
  43. :end