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 13 ### 14 ### NOTE: this script is ONLY an example, and needs to be customized for your personal use. ### 15 ### 16 17 export JAVA_HOME=/opt/sun-java2-5.0; 18 export ANT_HOME=/opt/apache-ant-1.6; 19 CLASSPATH="$JAVA_HOME/lib/rt.jar"; 20 CLASSPATH=$CLASSPATH":"$ANT_HOME/lib/ant.jar":"$ANT_HOME/lib/ant-launcher.jar; 21 CLASSPATH=$CLASSPATH":"../feedTools.jar; 22 23 projectName="emf"; 24 25 # define/override variables not set in properties file (can also be passed in querystring, etc.) 26 # this allows a static set of properties + some dynamic ones to be mixed in together 27 debug=2; 28 branch="HEAD"; # optional 29 version="2.2.1"; 30 buildID="S200609210005"; 31 buildAlias="2.2.1RC2"; 32 dependencyURLs="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/M20060919-1045/eclipse-SDK-M20060919-1045-linux-gtk.tar.gz"; # comma-separated if more than one 33 # ... 34 35 cmd="$JAVA_HOME/bin/java -debug -Dant.home=$ANT_HOME -Dant.library.dir=$JAVA_HOME/lib -classpath $CLASSPATH org.apache.tools.ant.launch.Launcher" 36 cmd=$cmd" -buildfile feedPublish.xml -propertyfile ../properties/feedPublish.$projectName.properties" 37 cmd=$cmd" -Dbranch=$branch -Dversion=$version -DbuildID=$buildID -DbuildAlias=$buildAlias -DbuildType="${buildID:0:1}; 38 cmd=$cmd" -DdependencyURLs=$dependencyURLs -Ddebug=$debug"; 39 echo ""; echo $cmd | sed -e "s/ \-/# \-/g" -e "s/.jar:/.jar# :/g" | tr "#" "\n"; echo ""; 40 $cmd; 41