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 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @echo off
  2. echo Fop Build System
  3. echo ----------------
  4. if "%JAVA_HOME%" == "" goto error
  5. set LIBDIR=lib
  6. set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip
  7. for %%j in ( %LIBDIR%\*.jar ) do set LOCALCLASSPATH=%LOCALCLASSPATH%;%%j
  8. set ANT_HOME=%LIBDIR%
  9. echo Building with classpath %LOCALCLASSPATH%
  10. echo Starting Ant...
  11. %JAVA_HOME%\bin\java.exe -Dant.home=%ANT_HOME% -classpath "%LOCALCLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
  12. goto end
  13. :error
  14. echo ERROR: JAVA_HOME not found in your environment.
  15. echo Please, set the JAVA_HOME variable in your environment to match the
  16. echo location of the Java Virtual Machine you want to use.
  17. :end
  18. rem set LOCALCLASSPATH=
  19. pause;
  20. rem $Id$
  21. rem ============================================================================
  22. rem The Apache Software License, Version 1.1
  23. rem ============================================================================
  24. rem
  25. rem Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
  26. rem
  27. rem Redistribution and use in source and binary forms, with or without modifica-
  28. rem tion, are permitted provided that the following conditions are met:
  29. rem
  30. rem 1. Redistributions of source code must retain the above copyright notice,
  31. rem this list of conditions and the following disclaimer.
  32. rem
  33. rem 2. Redistributions in binary form must reproduce the above copyright notice,
  34. rem this list of conditions and the following disclaimer in the documentation
  35. rem and/or other materials provided with the distribution.
  36. rem
  37. rem 3. The end-user documentation included with the redistribution, if any, must
  38. rem include the following acknowledgment: "This product includes software
  39. rem developed by the Apache Software Foundation (http://www.apache.org/)."
  40. rem Alternately, this acknowledgment may appear in the software itself, if
  41. rem and wherever such third-party acknowledgments normally appear.
  42. rem
  43. rem 4. The names "FOP" and "Apache Software Foundation" must not be used to
  44. rem endorse or promote products derived from this software without prior
  45. rem written permission. For written permission, please contact
  46. rem apache@apache.org.
  47. rem
  48. rem 5. Products derived from this software may not be called "Apache", nor may
  49. rem "Apache" appear in their name, without prior written permission of the
  50. rem Apache Software Foundation.
  51. rem
  52. rem THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  53. rem INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  54. rem FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  55. rem APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  56. rem INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
  57. rem DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  58. rem OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  59. rem ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  60. rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  61. rem THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  62. rem ============================================================================
  63. rem
  64. rem This software consists of voluntary contributions made by many individuals
  65. rem on behalf of the Apache Software Foundation and was originally created by
  66. rem James Tauber <jtauber@jtauber.com>. For more information on the Apache
  67. rem Software Foundation, please see <http://www.apache.org/>.