[jbosstools-issues] [JBoss JIRA] (JBIDE-18541) Support generation of update sites both with and without references to upstream TP content

Paul Leacu (JIRA) issues at jboss.org
Tue Oct 14 13:15:38 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011702#comment-13011702 ] 

Paul Leacu commented on JBIDE-18541:
------------------------------------

The jbosstools site repo did generate the 'references' and 'withreferences' dirs - (the devstudio site repository did not).  Here is the jbosstools 'references' site/repository/references/content.xml:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<?metadataRepository version='1.1.0'?>
<repository name='References forJBoss Tools Integration Stack Aggregate' type='org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository' version='1'>
  <properties size='1'>
    <property name='p2.timestamp' value='1413296541277'/>
  </properties>
  <references size='4'>
      <repository options='1' type='0' uri='http://download.jboss.org/jbosstools/updates/development/luna/' url='http://download.jboss.org/jbosstools/updates/development
/luna/'/>
      <repository options='1' type='1' uri='http://download.jboss.org/jbosstools/updates/development/luna/' url='http://download.jboss.org/jbosstools/updates/development
/luna/'/>
      <repository options='1' type='0' uri='http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/' url='http://download.jboss.org/jbosstools/targetplatf
orms/jbtistarget/luna/'/>
      <repository options='1' type='1' uri='http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/' url='http://download.jboss.org/jbosstools/targetplatf
orms/jbtistarget/luna/'/>
  </references>
</repository>

The withreferences composites look like this:
<?compositeMetadataRepository version='1.0.0'?>
<repository name='JBoss Tools Integration Stack Aggregate' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
  <properties size='2'>
    <property name='p2.compressed' value='true'/>
    <property name='p2.timestamp' value='1413296541277'/>
  </properties>
  <children size='2'>
    <child location='../'/>
    <child location='../references'/>
  </children>
</repository>




> Support generation of update sites both with and without references to upstream TP content
> ------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-18541
>                 URL: https://issues.jboss.org/browse/JBIDE-18541
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: build
>    Affects Versions: 4.2.0.CR2
>            Reporter: Mickael Istria
>            Assignee: Mickael Istria
>             Fix For: 4.2.0.Final
>
>         Attachments: content.xml.new, content.xml.orig
>
>
> Instead of associating statically sites (target-platform) when creating a repository, the generate-repository-facade mojo could create some indirection files allowing to access the repository in 2 flavours:
> * One plain content only, without any reference: for downstream project aggregation
> * One that also references its dependencies for easy install and testers
> Example:
> {code}
> /integration-stack  <-- composited without side effects into /earlyaccess/development/luna/
>   content.jar
>   artifacts.jar
>   /withdeps  <--- good for testing/single installs
>      /compositeContent.xml  -> ../ and ../targetplatform-link/
>     /compositeArtifacts.xml
>  /targetplatform-link  <--- point to what is needed for install (not to be used by higher up composites/aggregates [JBT content, JBT IS content, JBT TP, JBT IS TP, etc.]
>    content.xml -> associate pointer to TP using ONLY:
>    <references size="4">
>       <repository options="1" type="0" uri="http://download.jboss.org/jbosstools/updates/development/luna/" url="http://download.jboss.org/jbosstools/updates/development/luna/"/> (this currently includes *latest* JBT + JBT TP)
>       <repository options="1" type="1" uri="http://download.jboss.org/jbosstools/updates/development/luna/" url="http://download.jboss.org/jbosstools/updates/development/luna/"/>
>       <repository options="1" type="0" uri="http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/is-tp.4.2.3" url="http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/is-tp.4.2.3"/>
>       <repository options="1" type="1" uri="http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/is-tp.4.2.3" url="http://download.jboss.org/jbosstools/targetplatforms/jbtistarget/luna/is-tp.4.2.3"/>
>    </references>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list