]
Nick Boldt updated JBIDE-19702:
-------------------------------
Fix Version/s: 4.3.1.Beta2
4.4.0.Alpha1
(was: 4.4.x)
installFromCentral.sh should support installing from central
site+plugin OR earlyaccess site+plugin
---------------------------------------------------------------------------------------------------
Key: JBIDE-19702
URL:
https://issues.jboss.org/browse/JBIDE-19702
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: build, updatesite
Affects Versions: 4.3.0.Alpha2
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 4.3.1.Beta2, 4.4.0.Alpha1
Today, installFromCentral.sh assumes two incorrect things:
a) central URL is always different than the JBT/JBDS site URL [no longer true, since
JBT/JBDS & Central content are now co-located]
b) the plugin to parse for IUs is ONLY the central one, not the EA one [we should parse
ONE or BOTH, depending on cmdline flag]
{code}
# get a list of IUs to install from the Central site (based on the discovery.xml ->
plugin.jar -> plugin.xml)
CENTRAL_URL=${INSTALL_PLAN#*,} # includes discovery.xml # echo CENTRAL_URL =
$CENTRAL_URL
if [[ $CENTRAL_URL != $INSTALL_PLAN ]]; then
# echo $CENTRAL_URL
wget ${CENTRAL_URL} -q --no-check-certificate -N -O directory.xml
PLUGINJAR=`cat ${WORKSPACE}/directory.xml | egrep
"org.jboss.tools.central.discovery_|com.jboss.jbds.central.discovery_" | sed
"s#.\+url=\"\(.\+\).jar\".\+#\1.jar#"`
# echo "Got $PLUGINJAR"
CENTRAL_URL=${SITES#*,} # excludes discovery.xml # echo CENTRAL_URL = $CENTRAL_URL
wget ${CENTRAL_URL}/${PLUGINJAR} -q --no-check-certificate -N -O plugin.jar
unzip -oq plugin.jar plugin.xml
...
{code}
https://github.com/jbosstools/jbosstools-build-ci/blob/4.3.x/util/install...