[jbosstools-issues] [JBoss JIRA] (JBIDE-19702) installFromCentral.sh should support installing from earlyaccess plugin (not just the central one)

Nick Boldt (JIRA) issues at jboss.org
Thu Apr 23 17:18:52 EDT 2015


Nick Boldt created JBIDE-19702:
----------------------------------

             Summary: installFromCentral.sh should support installing from earlyaccess plugin (not just the central one)
                 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


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/installFromCentral.sh



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list