You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bd...@apache.org on 2005/06/09 07:49:07 UTC

svn commit: r189715 - /cocoon/trunk/build.sh

Author: bdelacretaz
Date: Wed Jun  8 22:49:07 2005
New Revision: 189715

URL: http://svn.apache.org/viewcvs?rev=189715&view=rev
Log:
allow ./tools to be overridden, to reuse this script from subdirectories

Modified:
    cocoon/trunk/build.sh

Modified: cocoon/trunk/build.sh
URL: http://svn.apache.org/viewcvs/cocoon/trunk/build.sh?rev=189715&r1=189714&r2=189715&view=diff
==============================================================================
--- cocoon/trunk/build.sh (original)
+++ cocoon/trunk/build.sh Wed Jun  8 22:49:07 2005
@@ -14,8 +14,14 @@
 #  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
+# ----- Set path to our tools, overridable  -----------------------------------
+if [ "$COCOON_TOOLS" = "" ] 
+then
+  COCOON_TOOLS="./tools"
+fi
+
+chmod u+x $COCOON_TOOLS/bin/antRun
+chmod u+x $COCOON_TOOLS/bin/ant
 
 # ----- Verify and Set Required Environment Variables -------------------------
 
@@ -33,7 +39,7 @@
 
 # ----- Use Ant shipped with Cocoon. Ignore installed in the system Ant
 OLD_ANT_HOME="$ANT_HOME"
-ANT_HOME=tools
+ANT_HOME=$COCOON_TOOLS
 OLD_ANT_OPTS="$ANT_OPTS"
 ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed"
 export ANT_HOME ANT_OPTS