aboutsummaryrefslogtreecommitdiff
path: root/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2012-04-10 12:43:05 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-04-10 12:43:05 -0700
commit78805488af6d622bc53a6c1b383fc5e00f54a056 (patch)
tree7f0ea4f55cda3d6e8a51a179f075ae586aa9509a /basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh
parent4962dcfd83c5fc8a01c807185230afbfd62a0c4a (diff)
parent402794e73aed8611d62eb4b01cd155e2d76fcb87 (diff)
downloadeclipse-basebuilder-78805488af6d622bc53a6c1b383fc5e00f54a056.tar.gz
Merge "SDK: Add Eclipse basebuilder-3.6.2 + src, used for building RCP tools."
Diffstat (limited to 'basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh')
-rw-r--r--basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh b/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh
new file mode 100644
index 0000000..e0411f4
--- /dev/null
+++ b/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_bugzilla/updateBugState.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+export JAVA_HOME=/opt/sun-java2-1.4;
+export ANT_HOME=/opt/apache-ant-1.6;
+
+#aasemble the command and its classpath
+CLASSPATH="$JAVA_HOME/lib/rt.jar";
+# 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
+#for f in `find $ANT_HOME/lib -maxdepth 1 -name "*.jar" -type f -not -name "xercesImpl.jar"`; do CLASSPATH=$CLASSPATH":"$f; done
+CLASSPATH=$CLASSPATH":"$ANT_HOME/lib/ant.jar":"$ANT_HOME/lib/ant-launcher.jar;
+cmd="$JAVA_HOME/bin/java \
+ -Dant.home=$ANT_HOME \
+ -Dant.library.dir=$JAVA_HOME/lib \
+ -classpath $CLASSPATH:../bugTools.jar \
+ org.apache.tools.ant.launch.Launcher \
+ -buildfile updateBugState.xml";
+
+if [[ $debug -gt 0 ]]; then
+ echo "Running ..."; echo ""; echo $cmd | sed -e "s/ \-/# \-/g" -e "s/:/# :/g" | tr "#" "\n"; echo "";
+fi
+
+# run the command
+$cmd;