Author: vgritsenko Date: Thu Jul 29 05:35:59 2004 New Revision: 30920 Modified: cocoon/branches/BRANCH_2_1_X/build.sh Log: Sync with 2.2
Modified: cocoon/branches/BRANCH_2_1_X/build.sh ============================================================================== --- cocoon/branches/BRANCH_2_1_X/build.sh (original) +++ cocoon/branches/BRANCH_2_1_X/build.sh Thu Jul 29 05:35:59 2004 @@ -1,4 +1,5 @@ #!/bin/sh + # Copyright 1999-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# + chmod u+x ./tools/bin/antRun chmod u+x ./tools/bin/ant @@ -32,18 +33,21 @@ # ----- Use Ant shipped with Cocoon. Ignore installed in the system Ant OLD_ANT_HOME="$ANT_HOME" -export ANT_HOME=tools +ANT_HOME=tools OLD_ANT_OPTS="$ANT_OPTS" -export ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed" +ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed" +export ANT_HOME ANT_OPTS "$ANT_HOME/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs $@ # ----- Restore ANT_HOME and ANT_OPTS -export ANT_HOME="$OLD_ANT_HOME" +ANT_HOME="$OLD_ANT_HOME" +ANT_OPTS="$OLD_ANT_OPTS" +export ANT_HOME ANT_OPTS unset OLD_ANT_HOME -export ANT_OPTS="$OLD_ANT_OPTS" unset OLD_ANT_OPTS # ----- Restore CLASSPATH -export CLASSPATH="$OLD_CLASSPATH" +CLASSPATH="$OLD_CLASSPATH" +export CLASSPATH unset OLD_CLASSPATH
