Project

General

Profile

Download (1.45 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / cots / ant / apache-ant-1.8.1 / bin / antRun.bat @ d2a8c3fd

1
@echo off
2

    
3
REM  Licensed to the Apache Software Foundation (ASF) under one or more
4
REM  contributor license agreements.  See the NOTICE file distributed with
5
REM  this work for additional information regarding copyright ownership.
6
REM  The ASF licenses this file to You under the Apache License, Version 2.0
7
REM  (the "License"); you may not use this file except in compliance with
8
REM  the License.  You may obtain a copy of the License at
9
REM 
10
REM      http://www.apache.org/licenses/LICENSE-2.0
11
REM 
12
REM  Unless required by applicable law or agreed to in writing, software
13
REM  distributed under the License is distributed on an "AS IS" BASIS,
14
REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
REM  See the License for the specific language governing permissions and
16
REM  limitations under the License.
17

    
18
if "%OS%"=="Windows_NT" @setlocal
19
if "%OS%"=="WINNT" @setlocal
20

    
21
if ""%1""=="""" goto runCommand
22

    
23
rem Change drive and directory to %1
24
if "%OS%"=="Windows_NT" goto nt_cd
25
if "%OS%"=="WINNT" goto nt_cd
26
cd ""%1""
27
goto end_cd
28
:nt_cd
29
cd /d ""%1""
30
:end_cd
31
shift
32

    
33
rem Slurp the command line arguments. This loop allows for an unlimited number
34
rem of arguments (up to the command line limit, anyway).
35
set ANT_RUN_CMD=%1
36
if ""%1""=="""" goto runCommand
37
shift
38
:loop
39
if ""%1""=="""" goto runCommand
40
set ANT_RUN_CMD=%ANT_RUN_CMD% %1
41
shift
42
goto loop
43

    
44
:runCommand
45
rem echo %ANT_RUN_CMD%
46
%ANT_RUN_CMD%
47

    
48
if "%OS%"=="Windows_NT" @endlocal
49
if "%OS%"=="WINNT" @endlocal
50