Hi Ali,

I believe that an eclipseextension (ExtensionLocationMetadataRepository) can 
only contain features/ and plugins/ directories. If you additionally have any 
of p2 metadata files 
({artifacts,compositeArtifacts,content,compositeContent}.{xml,jar}), this 
becomes a p2 repository (StandardP2Repository). Finally, starting with Eclipse 
4.2 an error is produced if one tries to load an eclipseextension directory 
with one of the aforementioned files, unless there is a ".eclipseextension" 
file which silences the error (see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348990). I don't know an answer 
to your question, but hope this helps.

Kind regards,
Mikhail Kalkov


----- Original Message -----
From: "ali_anwar" <[email protected]>
To: [email protected]
Sent: Monday, January 21, 2013 8:26:30 PM
Subject: Re: [p2-dev] Loading eclipseextension repository with artifact size = 0

On 01/21/2013 10:37 PM, ali_anwar wrote:
> Hi,
>
> I have following contents in artifact.xml file for eclipseextension repo:
>

Please note that eclipseextension repo is automatically created with 
below mentioned data even when you delete all the IUs from the eclipse-juno.

Version: Juno Service Release 1
Build id: 20120920-0800

> <?artifactRepository version='1.1.0'?>
> <repository name='/home/ali/path_to/eclipse/.eclipseextension'
> type='org.eclipse.equinox.p2.artifact.repository.simpleRepository'
> version='1.0.0'>
>    <properties size='3'>
>      <property name='p2.timestamp' value='1358545297882'/>
>      <property name='org.eclipse.update.site.policy' value='USER-EXCLUDE'/>
>      <property name='org.eclipse.update.site.list' value=''/>
>    </properties>
>    <mappings size='3'>
>      <rule filter='(&amp; (classifier=osgi.bundle))'
> output='${repoUrl}/plugins/${id}_${version}.jar'/>
>      <rule filter='(&amp; (classifier=binary))'
> output='${repoUrl}/binary/${id}_${version}'/>
>      <rule filter='(&amp; (classifier=org.eclipse.update.feature))'
> output='${repoUrl}/features/${id}_${version}.jar'/>
>    </mappings>
>    <artifacts size='0'/>
> </repository>
>
>
> When p2 loads the repository it shows that the size of artifacts is 298
> instead of 0. Little investigation revealed that the artifacts are those
> which are mentioned in eclipse/artifact.xml file:
>
>
> <?artifactRepository version='1.1.0'?>
> <repository name='Bundle pool'
> type='org.eclipse.equinox.p2.artifact.repository.simpleRepository'
> version='1.0.0'>
>    <properties size='2'>
>      <property name='p2.system' value='true'/>
>      <property name='p2.timestamp' value='1358545325329'/>
>    </properties>
>    <mappings size='3'>
>      <rule filter='(&amp; (classifier=osgi.bundle))'
> output='${repoUrl}/plugins/${id}_${version}.jar'/>
>      <rule filter='(&amp; (classifier=binary))'
> output='${repoUrl}/binary/${id}_${version}'/>
>      <rule filter='(&amp; (classifier=org.eclipse.update.feature))'
> output='${repoUrl}/features/${id}_${version}.jar'/>
>    </mappings>
>    <artifacts size='298'>
>      <artifact classifier='osgi.bundle'
> id='org.eclipse.rse.services.files.ftp' version='3.0.300.v201101042155'>
>        <properties size='1'>
>          <property name='download.size' value='39844'/>
>        </properties>
>      </artifact>
> ...
>
>
> Is it an expected behaviour (as the mappings of both repositories is same)?
>
> Thanks,
> -Ali
> _______________________________________________
> p2-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to