1#******************************************************************************* 2# Copyright (c) 2005, 2006 IBM Corporation and others. 3# All rights reserved. This program and the accompanying materials 4# are made available under the terms of the Eclipse Public License v1.0 5# which accompanies this distribution, and is available at 6# http://www.eclipse.org/legal/epl-v10.html 7# 8# Contributors: 9# IBM Corporation - initial API and implementation 10#******************************************************************************* 11#!/bin/sh 12 13export JAVA_HOME=/opt/sun-java2-5.0; 14export ANT_HOME=/opt/apache-ant-1.6; 15 16#ant standalone 17 18CLASSPATH="$JAVA_HOME/lib/rt.jar"; 19# note that com.sun.org.apache.xerces (Sun JDK 1.5, rt.jar) != org.apache.xerces (Ant 1.6.5, xercesImpl.jar) so must remove from classpath 20#for f in `find $ANT_HOME/lib -maxdepth 1 -name "*.jar" -type f -not -name "xercesImpl.jar"`; do CLASSPATH=$CLASSPATH":"$f; done 21CLASSPATH=$CLASSPATH":"$ANT_HOME/lib/ant.jar":"$ANT_HOME/lib/ant-launcher.jar; 22 23cmd="$JAVA_HOME/bin/java \ 24 -Dant.home=$ANT_HOME \ 25 -Dant.library.dir=$JAVA_HOME/lib \ 26 -classpath $CLASSPATH \ 27 org.apache.tools.ant.launch.Launcher \ 28 -buildfile feedManipulation.xml"; 29 30echo "Running ..."; echo ""; 31 32#prettyprint the command 33echo $cmd | sed -e 's/ \-/\n \-/g' -e 's/:/\n :/g'; echo ""; 34 35# run the command 36$cmd; 37