Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 1 | @echo off
|
| 2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
|
| 3 | rem contributor license agreements. See the NOTICE file distributed with
|
| 4 | rem this work for additional information regarding copyright ownership.
|
| 5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
|
| 6 | rem (the "License"); you may not use this file except in compliance with
|
| 7 | rem the License. You may obtain a copy of the License at
|
| 8 | rem
|
| 9 | rem http://www.apache.org/licenses/LICENSE-2.0
|
| 10 | rem
|
| 11 | rem Unless required by applicable law or agreed to in writing, software
|
| 12 | rem distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 | rem See the License for the specific language governing permissions and
|
| 15 | rem limitations under the License.
|
| 16 |
|
| 17 | rem ---------------------------------------------------------------------------
|
| 18 | rem Append to CLASSPATH
|
| 19 | rem ---------------------------------------------------------------------------
|
| 20 |
|
| 21 | rem Process the first argument
|
| 22 | if ""%1"" == """" goto end
|
| 23 | set CLASSPATH=%CLASSPATH%;%1
|
| 24 | shift
|
| 25 |
|
| 26 | rem Process the remaining arguments
|
| 27 | :setArgs
|
| 28 | if ""%1"" == """" goto doneSetArgs
|
| 29 | set CLASSPATH=%CLASSPATH% %1
|
| 30 | shift
|
| 31 | goto setArgs
|
| 32 | :doneSetArgs
|
| 33 | :end
|