@echo off :: Licensed to the Apache Software Foundation (ASF) under one or more :: contributor license agreements. See the NOTICE file distributed with :: this work for additional information regarding copyright ownership. :: The ASF licenses this file to You under the Apache License, Version 2.0 :: (the "License"); you may not use this file except in compliance with :: the License. You may obtain a copy of the License at :: :: http://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable law or agreed to in writing, software :: distributed under the License is distributed on an "AS IS" BASIS, :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. :: See the License for the specific language governing permissions and :: limitations under the License. :: :: $Id$ :: ---------------------------------------------------------------------------- :: build.bat - Win32 Build Script for Apache Xindice :: ---------------------------------------------------------------------------- :: ----- Verify and Set Required Environment Variables ------------------------ :: ----- Ignore system CLASSPATH variable set OLD_CLASSPATH=%CLASSPATH% set CLASSPATH= :: ----- Use Java in JAVA_HOME if JAVA_HOME is set. set OLD_PATH=%PATH% if "%JAVA_HOME%" == "" goto noJavaHome echo Using Java from %JAVA_HOME% set PATH=%JAVA_HOME%\bin :noJavaHome :: ----- Use Ant shipped with Xindice. Ignore installed in the system Ant set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=tools :: ----- Set endorsed library path to be used by Ant set OLD_ANT_OPTS=%ANT_OPTS% call %ANT_HOME%\bin\ant -Djava.endorsed.dirs=lib\endorsed -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9 :: ----- Restore ANT_OPTS set ANT_OPTS=%OLD_ANT_OPTS% set OLD_ANT_OPTS= :: ----- Restore ANT_HOME set ANT_HOME=%OLD_ANT_HOME% set OLD_ANT_HOME= :: ----- Restore PATH set PATH=%OLD_PATH% set OLD_PATH= :: ----- Restore CLASSPATH set CLASSPATH=%OLD_CLASSPATH% set OLD_CLASSPATH=