Author: nickboldt
Date: 2011-10-06 09:56:05 -0400 (Thu, 06 Oct 2011)
New Revision: 35420
Modified:
trunk/download.jboss.org/jbosstools/updates/requirements/mirror.sh.txt
Log:
update the mirror script to allow more cmdline params to be passed through
Modified:
trunk/download.jboss.org/jbosstools/updates/requirements/mirror.sh.txt
===================================================================
---
trunk/download.jboss.org/jbosstools/updates/requirements/mirror.sh.txt 2011-10-06
13:43:31 UTC (rev 35419)
+++
trunk/download.jboss.org/jbosstools/updates/requirements/mirror.sh.txt 2011-10-06
13:56:05 UTC (rev 35420)
@@ -3,7 +3,7 @@
destfolder=`pwd`
scriptname=${destfolder}/build.xml
-if [[ $# -lt 1 ]]; then
+if [[ $# -lt 1 ]] || [[ $1 == "." ]]; then
echo "Usage: $0 <scriptname> <destfolder>"
echo "Usage: $0 - (to use defaults of build.xml and .)"
exit
@@ -13,12 +13,9 @@
if [[ $2 ]]; then destfolder=$2; fi
fi
fi
-#export JAVA_HOME=/opt/jdk1.6.0; # old path on qa01
-export JAVA_HOME=$HOME/bin/sun-java2-6.0; # new path on dev01 - download Sun JDK 6 SE
(.bin) and unpack into ~/bin/, then symlink as sun-java2-6.0
+export JAVA_HOME=$HOME/bin/sun-java2-6.0
+${JAVA_HOME}/bin/java -cp ~/eclipse/plugins/org.eclipse.equinox.launcher_*.jar
org.eclipse.equinox.launcher.Main -vm ${JAVA_HOME} -consoleLog -nosplash -data $TMP
-application org.eclipse.ant.core.antRunner -f $scriptname -Ddestination=$destfolder
-Declipse.p2.mirrors=false $3 $4 $5
+#${JAVA_HOME}/bin/java -cp ~/eclipse/plugins/org.eclipse.equinox.launcher_*.jar
org.eclipse.equinox.launcher.Main -vm ${JAVA_HOME} -consoleLog -nosplash -data $TMP
-application org.eclipse.ant.core.antRunner -f $scriptname -Ddestination=$destfolder
-Declipse.p2.mirrors=true
-${JAVA_HOME}/bin/java -cp ~/eclipse/plugins/org.eclipse.equinox.launcher_*.jar
org.eclipse.equinox.launcher.Main -vm ${JAVA_HOME} -consoleLog -nosplash -data $TMP
-application org.eclipse.ant.core.antRunner -f $scriptname -Ddestination=$destfolder
-Declipse.p2.mirrors=false
-
# cleanup
-if [[ $? -eq 0 ]]; then
- rm -fr $TMP
-fi
+rm -fr $TMP