@echo off REM *************************************************************** REM * Copyright 2008 the EasyAnt project REM * REM * See the NOTICE file distributed with this work for additional information REM * regarding copyright ownership. REM * REM * Licensed under the Apache License, Version 2.0 (the "License"); REM * you may not use this file except in compliance with the License. REM * You may obtain a copy of the License at REM * REM * http://www.apache.org/licenses/LICENSE-2.0 REM * REM * Unless required by applicable law or agreed to in writing, software REM * distributed under the License is distributed on an "AS IS" BASIS, REM * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM * See the License for the specific language governing permissions and REM * limitations under the License. REM **************************************************************** REM load user ant configuration if exist "%USERPROFILE%\.easyant\easyant_pre.bat" call "%USERPROFILE%\.easyant\easyant_pre.bat" if not exist "%EASYANT_HOME%\bin\easyant.bat" goto noEasyAntHome goto run :noEasyAntHome echo EASYANT_HOME is set incorrectly or easyant could not be located. Please set EASYANT_HOME. goto end :run set ANT_HOME=%EASYANT_HOME%\ant-1.7-patched set ANT_CMD="%ANT_HOME%\bin\ant.bat" rem Slurp the command line arguments. This loop allows for an unlimited number rem of arguments (up to the command line limit, anyway). set EASYANT_CMD_LINE_ARGS=%1 if ""%1""=="""" goto doneStart shift :setupArgs if ""%1""=="""" goto doneStart set EASYANT_CMD_LINE_ARGS=%EASYANT_CMD_LINE_ARGS% %1 shift goto setupArgs :doneStart call %ANT_CMD% -Dbasedir=. -f %EASYANT_HOME%\easyant.ant %EASYANT_CMD_LINE_ARGS% :end