21
21
# Fresh port from Mukul Gandhi's revised build.bat.
22
22
# WARNING: This currently does not include the hooks needed
23
23
# to make the script compatable with cygwin (unix/Linux shell
24
- # and commands ported to run under Windows). See
24
+ # and commands ported to run under Windows). See
25
25
# deprecated_build.sh to see how we handled the cygwin
26
26
# syntax differences back in 2001. These days, Windows users
27
27
# are more likely to use WSL, which simplifies matters.
39
39
echo Xalan-J test automation build
40
40
echo -----------------------------
41
41
42
- if [ " $1 " = " -h" ]; then
42
+ if [ " $1 " = " -h" ]; then
43
43
echo build.sh - executes Xalan Java-based test automation
44
44
echo Usage: build [target] [-D options]
45
45
echo Example: build api -DtestClass=TransformerAPITest -Dqetest.loggingLevel=30
@@ -50,19 +50,19 @@ if [ "$1" = "-h" ]; then
50
50
exit 1
51
51
fi
52
52
53
- if [ " $JAVA_HOME " = " " ]; then
53
+ if [ " $JAVA_HOME " = " " ]; then
54
54
echo Warning: JAVA_HOME environment variable is not exported
55
55
echo You may have meant to set it to /etc/alternatives/java_sdk
56
56
exit 1
57
57
fi
58
58
59
59
JAVACMD=$JAVA_HOME /bin/java
60
-
60
+
61
61
CLASSPATH=$CLASSPATH :$JAVA_HOME /lib/tools.jar
62
62
63
63
# Default is to use a copy of ant bundled with xalan-java
64
- if [ $ANT_HOME = " " ]; then
65
- _ANT_HOME=../xalan-java
64
+ if [ " $ANT_HOME " = " " ]; then
65
+ _ANT_HOME=../xalan-java
66
66
else
67
67
_ANT_HOME=$ANT_HOME
68
68
fi
@@ -89,7 +89,7 @@ XALAN_BUILD_DIR_PATH=../xalan-java/build:../build
89
89
XERCES_ENDORSED_DIR_PATH=../xalan-java/lib/endorsed:../lib/endorsed
90
90
91
91
# Reminder: Note $* versus $@ distinction
92
- echo Running: $JAVACMD -mx1024m -Djava.endorsed.dirs=$XALAN_BUILD_DIR_PATH :$XERCES_ENDORSED_DIR_PATH -classpath " $CLASSPATH " org.apache.tools.ant.Main " $@ "
93
- $JAVACMD -mx1024m -Djava.endorsed.dirs=$XALAN_BUILD_DIR_PATH :$XERCES_ENDORSED_DIR_PATH -classpath " $CLASSPATH " org.apache.tools.ant.Main " $@ "
92
+ echo Running: " $JAVACMD " -mx1024m -Djava.endorsed.dirs=" $XALAN_BUILD_DIR_PATH :$XERCES_ENDORSED_DIR_PATH " -classpath " $CLASSPATH " org.apache.tools.ant.Main " $@ "
93
+ " $JAVACMD " -mx1024m -Djava.endorsed.dirs=" $XALAN_BUILD_DIR_PATH :$XERCES_ENDORSED_DIR_PATH " -classpath " $CLASSPATH " org.apache.tools.ant.Main " $@ "
94
94
95
95
echo " build.sh complete!"
0 commit comments