"Fossies" - the Fresh Open Source Software Archive

Member "UNICORE-Client-7.4.1/plugins/org.apache.ant_1.10.3.v20180417-1627/bin/antRun.bat" (4 May 2018, 1532 Bytes) of package /windows/misc/UNICORE_Client-7.4.1-win32.win32.x86.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    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.
   18 if "%OS%"=="Windows_NT" @setlocal
   19 if "%OS%"=="WINNT" @setlocal
   21 if ""%1""=="""" goto runCommand
   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
   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
   44 :runCommand
   45 rem echo %ANT_RUN_CMD%
   46 %ANT_RUN_CMD%
   48 if "%OS%"=="Windows_NT" @endlocal
   49 if "%OS%"=="WINNT" @endlocal