| 1 |
@ECHO OFF |
| 2 |
:: ---------------------------------------------------------------------------- |
| 3 |
:: |
| 4 |
:: Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 |
:: contributor license agreements. See the NOTICE file distributed with |
| 6 |
:: this work for additional information regarding copyright ownership. |
| 7 |
:: The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 |
:: (the "License"); you may not use this file except in compliance with |
| 9 |
:: the License. You may obtain a copy of the License at |
| 10 |
:: |
| 11 |
:: http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
:: |
| 13 |
:: Unless required by applicable law or agreed to in writing, software |
| 14 |
:: distributed under the License is distributed on an "AS IS" BASIS, |
| 15 |
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 |
:: See the License for the specific language governing permissions and |
| 17 |
:: limitations under the License. |
| 18 |
:: |
| 19 |
:: build.bat - Win32 build script for rasterizer task |
| 20 |
:: |
| 21 |
:: $Id$ |
| 22 |
:: -------------------------------------------------------------------------- |
| 23 |
|
| 24 |
:: ----- Verify and set required environment variables ---------------------- |
| 25 |
|
| 26 |
IF NOT "%JAVA_HOME%" == "" GOTO gotJavaHome |
| 27 |
ECHO You must set JAVA_HOME to point at your JDK installation. |
| 28 |
GOTO cleanup |
| 29 |
:gotJavaHome |
| 30 |
|
| 31 |
IF NOT "%ANT_HOME%" == "" GOTO gotAntHome |
| 32 |
SET ANT_HOME=..\.. |
| 33 |
:gotAntHome |
| 34 |
|
| 35 |
SET BATIK_HOME=.\..\.. |
| 36 |
|
| 37 |
|
| 38 |
:: ----- Set up classpath --------------------------------------------------- |
| 39 |
|
| 40 |
SET CP="%JAVA_HOME%\lib\tools.jar";"%ANT_HOME%\lib\build\ant-1.9.3.jar";"%ANT_HOME%\lib\build\ant-launcher-1.9.3.jar";"%BATIK_HOME%\lib\build\crimson-1.1.3.jar" |
| 41 |
SET CP=%CP%;%BATIK_HOME%\classes |
| 42 |
|
| 43 |
|
| 44 |
:: ----- Execute ------------------------------------------------------------ |
| 45 |
|
| 46 |
"%JAVA_HOME%\bin\java.exe" %ANT_OPTS% -classpath %CP% org.apache.tools.ant.Main -emacs -Dant.home=%ANT_HOME% %1 -Dargs="%2 %3 %4 %5 %6 %7 %8 %9" |
| 47 |
|
| 48 |
|
| 49 |
:: ----- Cleanup the environment -------------------------------------------- |
| 50 |
|
| 51 |
:cleanup |
| 52 |
SET BATIK_HOME= |
| 53 |
SET CP= |
| 54 |
|