-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.bat
77 lines (63 loc) · 2.3 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
rem
rem ==========================================================================
rem = Copyright 2001-2004 The Apache Software Foundation.
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
rem Name: build.bat
rem Author: shane_curcuru@lotus.com,
rem ggregory@apache.org,
rem mukulg@apache.org
rem
rem See: build.xml
rem
rem Setup:
rem 1) You must set JAVA_HOME
rem
rem 2) You can set ANT_HOME if you use your own Ant install
echo.
echo Xalan-J test automation build
echo -----------------------------
if "%JAVA_HOME%"=="" goto noJavaHome
if exist "%JAVA_HOME%\lib\tools.jar" (
set _CLASSPATH=%JAVA_HOME%\lib\tools.jar
)
set _JAVACMD=%JAVA_HOME%\bin\java
rem On windows grab all arguments at once
set ANT_CMD_LINE_ARGS=%*
rem Default ANT_HOME to the one what user has set
if not "%ANT_HOME%"=="" set _ANT_HOME=%ANT_HOME%
if "%ANT_HOME%"=="" set _ANT_HOME=..\xalan-java
if exist "%_ANT_HOME%\tools\ant.jar" (
set _ANT_JARS=%_ANT_HOME%\tools\ant.jar
) else if EXIST "%_ANT_HOME%\..\tools\ant.jar" (
set _ANT_JARS=%_ANT_HOME%\..\tools\ant.jar
) else (
set _ANT_JARS=%_ANT_HOME%\lib\ant.jar;%_ANT_HOME%\lib\ant-launcher.jar
)
set _CLASSPATH=%_CLASSPATH%;%_ANT_JARS%
set XALAN_BUILD_DIR_PATH=..\xalan-java\build;..\build
set XERCES_ENDORSED_DIR_PATH=..\xalan-java\lib\endorsed;..\lib\endorsed
@echo on
"%_JAVACMD%" -mx1024m -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% -classpath "%_CLASSPATH%" org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
@echo off
goto end
:noJavaHome
echo Warning: JAVA_HOME environment variable is not set
:end
set _CLASSPATH=
set _ANT_HOME=
set _JAVACMD=
set _ANT_JARS=