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 17export JAVA_HOME=/opt/sun-java2-5.0; 18export ANT_HOME=/opt/apache-ant-1.6; 19CLASSPATH="$JAVA_HOME/lib/rt.jar"; 20CLASSPATH=$CLASSPATH":"$ANT_HOME/lib/ant.jar":"$ANT_HOME/lib/ant-launcher.jar; 21CLASSPATH=$CLASSPATH":"../feedTools.jar; 22 23projectName="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 27debug=2; 28branch="HEAD"; # optional 29version="2.2.1"; 30buildID="S200609210005"; 31buildAlias="2.2.1RC2"; 32dependencyURLs="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 35cmd="$JAVA_HOME/bin/java -debug -Dant.home=$ANT_HOME -Dant.library.dir=$JAVA_HOME/lib -classpath $CLASSPATH org.apache.tools.ant.launch.Launcher" 36cmd=$cmd" -buildfile feedPublish.xml -propertyfile ../properties/feedPublish.$projectName.properties" 37cmd=$cmd" -Dbranch=$branch -Dversion=$version -DbuildID=$buildID -DbuildAlias=$buildAlias -DbuildType="${buildID:0:1}; 38cmd=$cmd" -DdependencyURLs=$dependencyURLs -Ddebug=$debug"; 39echo ""; echo $cmd | sed -e "s/ \-/# \-/g" -e "s/.jar:/.jar# :/g" | tr "#" "\n"; echo ""; 40$cmd; 41