Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » [buckminster-dev] Downloading source jars
[buckminster-dev] Downloading source jars [message #518589] Thu, 04 March 2010 14:50
Ed Kohlwey is currently offline Ed KohlweyFriend
Messages: 3
Registered: July 2009
Junior Member
--0016e68fc5cdd7045a0480fab74b
Content-Type: text/plain; charset=ISO-8859-1

Hi,
First of all, I apologize if this is not the correct place to ask this
question. I attempted to ask this question via the newsgroup, but was unable
to get my bugzilla account to log in to them.

I would like to materialize all of the projects my organization is
maintaining to the workspace, and materialize the dependency jars (including
source jars) to an external target installation. Presently, my scheme works,
except I have been unable to materialize the source jars to the target.
Buckminster is being invoked by right clicking on the mspec file and
selecting "Import". The rmap below is one of two rmaps thats aggregated to
actually run the query. The other rmap uses a filter pattern for
"com\.myArtifacts\.", and the eclipse plugins rmap is used as a "catch all".
The other files (and the rmap). The dependencies on eclipse artifacts are
declared in the bundle MANIFEST.MF's for my artifacts. I have tried setting
"cbi.include.source=true" in the CQUERY properties section as well.

<?xml version="1.0" encoding="UTF-8"?>
<md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.eclipse.org/buckminster/MetaData-1.0
http://www.eclipse.org/buckminster/schemas/metadata-1.0.xsd"
materializer="p2"
installLocation="${user.home}/my-target"
name="com.myArtifacts.root:osgi.bundle:1.0.0.qualifier"
url="workspace_and_target.cquery">
<md:mspecNode materializer="workspace"
conflictResolution="UPDATE" namePattern="com\.myArtifacts\.*">
</md:mspecNode>
</md:mspec>

and the CQUERY

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="workspace_and_target.rmap"
properties="testapp_locations.properties" shortDesc="Using This CQUERY">
<cq:documentation xmlns="http://www.w3.org/1999/xhtml
"></cq:documentation>
<cq:rootRequest name="com.myArtifacts.root"
componentType="osgi.bundle"/>
<cq:property key="target.arch" value="*"/>
<cq:property key="target.os" value="*"/>
<cq:property key="target.ws" value="*"/>
<cq:advisorNode namePattern=".*" sourceLevel="DESIRE"
useTargetPlatform="false" useWorkspace="false"/>
<cq:advisorNode namePattern="com\.myArtifacts\..*"
mutableLevel="REQUIRE" sourceLevel="REQUIRE" useTargetPlatform="false"/>
</cq:componentQuery>

and finally, the relevant RMAP

<?xml version="1.0" encoding="UTF-8"?>
<rmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:mp="
http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
<searchPath name="org.eclipse.galileo.updates">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="
http://download.eclipse.org/eclipse/updates/3.5?importType=s ource" />
</provider>
</searchPath>
<searchPath name="org.eclipse.galileo.download">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="true">
<uri format=" http://download.eclipse.org/releases/galileo?importType=sour ce"
/>
</provider>
</searchPath>
<searchPath name="org.eclipse.galileo.buckminster">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="
http://download.eclipse.org/tools/buckminster/updates-3.5?im portType=source"
/>
</provider>
</searchPath>
<searchPath name="org.eclipse.galileo.epp">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="
http://download.eclipse.org/technology/epp/packages/galileo? importType=source"
/>
</provider>
</searchPath>
<searchPath name="org.eclipse.swtbot">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri
format="
http://download.eclipse.org/technology/swtbot/galileo/dev-bu ild/update-site?importType=source"
/>
</provider>
</searchPath>
<searchPath name="org.tigris.subclipse">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="http://subclipse.tigris.org/update_1.6.x?importType=source" />
</provider>
</searchPath>
<searchPath name="edu.umd.cs.findbugs">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="http://findbugs.cs.umd.edu/eclipse?importType=source" />
</provider>
</searchPath>
<searchPath name="org.eclipse.orbit">
<provider readerType="eclipse.import"
componentTypes="osgi.bundle,eclipse.feature"
mutable="false" source="false">
<uri format="
http://download.eclipse.org/tools/orbit/downloads/drops/R201 00114021427/updateSite?importType=source"
/>
</provider>
</searchPath>
<locator searchPathRef="org.eclipse.galileo.buckminster"
pattern="org\.eclipse\.buckminster(\..*)?" />
<locator searchPathRef="org.eclipse.swtbot"
pattern="org\.eclipse\.swtbot(\..*)?" />
<locator searchPathRef="org.tigris.subclipse" pattern="org\.tigris(\..*)?"
/>
<locator searchPathRef="edu.umd.cs.findbugs"
pattern="edu\.umd\.cs\.findbugs(\..*)?" />
<locator searchPathRef="org.eclipse.galileo.epp" failOnError="false" />
<locator searchPathRef="org.eclipse.galileo.updates"
failOnError="false" />
<locator searchPathRef="org.eclipse.galileo.download" failOnError="false" />
<locator searchPathRef="org.eclipse.orbit" />
</rmap>

--0016e68fc5cdd7045a0480fab74b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div>First of all, I apologize if this is not the correct place to ask t=
his question. I attempted to ask this question via the newsgroup, but was u=
nable to get my bugzilla account to log in to them.</div><div><br></div>
<div>I would like to materialize all of the projects my organization is mai=
ntaining to the workspace, and materialize the dependency jars (including s=
ource jars) to an external target installation. Presently, my scheme works,=
except I have been unable to materialize the source jars to the target. Bu=
ckminster is being invoked by right clicking on the mspec file and selectin=
g &quot;Import&quot;. The rmap below is one of two rmaps thats aggregated t=
o actually run the query. The other rmap uses a filter pattern for &quot;co=
m\.myArtifacts\.&quot;, and the eclipse plugins rmap is used as a &quot;cat=
ch all&quot;. The other files (and the rmap). The dependencies on eclipse a=
rtifacts are declared in the bundle MANIFEST.MF&#39;s for my artifacts. I h=
ave tried setting &quot;cbi.include.source=3Dtrue&quot; in the CQUERY prope=
rties section as well.</div>
<div><br></div><div><div>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quo=
t;UTF-8&quot;?&gt;</div><div>&lt;md:mspec xmlns:md=3D&quot;<a href=3D"http:=
//www.eclipse.org/buckminster/MetaData-1.0">http://www.eclipse.org/buckmins=
ter/MetaData-1.0</a>&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>xmlns=
:xsi=3D&quot;<a href=3D"http://www.w3.org/2001/XMLSchema-instance">http://w=
ww.w3.org/2001/XMLSchema-instance</a>&quot;</div><div ><span class=3D"Apple-=
tab-span" style=3D"white-space:pre"> </span>xsi:schemaLocation=3D&quot;<a h=
ref=3D"http://www.eclipse.org/buckminster/MetaData-1.0">http://www.eclipse.=
org/buckminster/MetaData-1.0</a> <a href=3D"http://www.eclipse.org/buckmins=
ter/schemas/metadata-1.0.xsd">http://www.eclipse.org/buckminster/schemas/me=
tadata-1.0.xsd</a>&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>mater=
ializer=3D&quot;p2&quot;</div><div><span class=3D"Apple-tab-span" style=3D"=
white-space:pre"> </span>installLocation=3D&quot;${user.home}/my-target&quo=
t;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span> name=
=3D&quot;com.myArtifacts.root:osgi.bundle:1.0.0.qualifie r&quot; </div><div><=
span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>url=3D&quot=
;workspace_and_target.cquery&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;m=
d:mspecNode materializer=3D&quot;workspace&quot; =A0conflictResolution=3D&q=
uot;UPDATE&quot;=A0namePattern=3D&quot;com\.myArtifa cts\.*&quot;&gt; </div><=
div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;/m=
d:mspecNode&gt;</div>
<div>&lt;/md:mspec&gt;</div><div><br></div><div >and the CQUERY</div><div><b=
r></div><div><div>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8=
&quot;?&gt;</div><div>&lt;cq:componentQuery xmlns:cq=3D&quot;<a href=3D"htt=
p://www.eclipse.org/buckminster/CQuery-1.0">http://www.eclipse.org/buckmins=
ter/CQuery-1.0</a>&quot; resourceMap=3D&quot;workspace_and_target.rmap&quot=
; properties=3D&quot;testapp_locations.properties&quot ; shortDesc=3D&quot;U=
sing This CQUERY&quot;&gt;</div>
<div>=A0=A0 =A0&lt;cq:documentation xmlns=3D&quot;<a href=3D"http://www.w3.=
org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;&lt;/cq:documenta=
tion&gt;</div><div>=A0=A0 =A0&lt;cq:rootRequest name=3D&quot;com.myArtifact=
s.root&quot; componentType=3D&quot;osgi.bundle&quot;/&gt;</div >
<div>=A0=A0 =A0&lt;cq:property key=3D&quot;target.arch&quot; value=3D&quot;=
*&quot;/&gt;</div><div>=A0=A0 =A0&lt;cq:property key=3D&quot;target.os&quot=
; value=3D&quot;*&quot;/&gt;</div><div>=A0=A0 =A0&lt;cq:property key=3D&quo=
t;<a href=3D"http://target.ws">target.ws</a>&quot; value=3D&quot;*&quot;/&g=
t;</div>
<div>=A0=A0 =A0&lt;cq:advisorNode namePattern=3D&quot;.*&quot; sourceLevel=
=3D&quot;DESIRE&quot; useTargetPlatform=3D&quot;false&quot; useWorkspace=3D=
&quot;false&quot;/&gt;</div><div>=A0=A0 =A0&lt;cq:advisorNode namePattern=
=3D&quot;com\.myArtifacts\..*&quot; mutableLevel=3D&quot;REQUIRE&quot; sour=
ceLevel=3D&quot;REQUIRE&quot; useTargetPlatform=3D&quot;false&quot;/&gt;</d=
iv>
<div>&lt;/cq:componentQuery&gt;</div><div><br></div ><div>and finally, the r=
elevant RMAP</div><div><br></div><div><div>&lt;?xml version=3D&quot;1.0&quo=
t; encoding=3D&quot;UTF-8&quot;?&gt;</div><div>&lt;rmap xmlns:xsi=3D&quot;<=
a href=3D"http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001=
/XMLSchema-instance</a>&quot; xmlns=3D&quot;<a href=3D"http://www.eclipse.o=
rg/buckminster/RMap-1.0">http://www.eclipse.org/buckminster/RMap-1.0</a>&qu=
ot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>xmlns=
:bc=3D&quot;<a href=3D"http://www.eclipse.org/buckminster/Common-1.0">http:=
//www.eclipse.org/buckminster/Common-1.0</a>&quot; xmlns:mp=3D&quot;<a href=
=3D"http://www.eclipse.org/buckminster/MavenProvider-1.0">http://www.eclips=
e.org/buckminster/MavenProvider-1.0</a>&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>xmlns=
:pp=3D&quot;<a href=3D"http://www.eclipse.org/buckminster/PDEMapProvider-1.=
0">http://www.eclipse.org/buckminster/PDEMapProvider-1.0</a>&quot;&gt;</div=
><div>
<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;search=
Path name=3D&quot;org.eclipse.galileo.updates&quot;&g t; </div><div><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;provider reade=
rType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osgi.bundle,eclip=
se.feature&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>mut=
able=3D&quot;false&quot; source=3D&quot;false&quot;&gt;</div><div><span cla=
ss=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;uri format=3D=
&quot;<a href=3D"http://download.eclipse.org/eclipse/updates/3.5?importType=
=3Dsource"> http://download.eclipse.org/eclipse/updates/3.5?importType=3 Dsou=
rce</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.eclipse.g=
alileo.download&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;true&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri format=3D&quot;<a href=3D"http://download.eclipse.org/releases/galileo=
?importType=3Dsource">http://download.eclipse.org/releases/galileo?importTy=
pe=3Dsource</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.eclipse.g=
alileo.buckminster&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri format=3D&quot;<a href=3D"http://download.eclipse.org/tools/buckminste=
r/updates-3.5?importType=3Dsource">http://download.eclipse.org/tools/buckmi=
nster/updates-3.5?importType=3Dsource</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.eclipse.g=
alileo.epp&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri format=3D&quot;<a href=3D"http://download.eclipse.org/technology/epp/p=
ackages/galileo?importType=3Dsource">http://download.eclipse.org/technology=
/epp/packages/galileo?importType=3Dsource</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.eclipse.s=
wtbot&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>format=3D&quot;<a href=3D"http://download.eclipse.org/technology/sw=
tbot/galileo/dev-build/update-site?importType=3Dsource">http://download.ecl=
ipse.org/technology/swtbot/galileo/dev-build/update-site?imp ortType=3Dsourc=
e</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.tigris.su=
bclipse&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri format=3D&quot;<a href=3D"http://subclipse.tigris.org/update_1.6.x?imp=
ortType=3Dsource">http://subclipse.tigris.org/update_1.6.x?importType=3Dsou=
rce</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;edu.umd.cs.fi=
ndbugs&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri format=3D&quot;<a href=3D"http://findbugs.cs.umd.edu/eclipse?importTyp=
e=3Dsource">http://findbugs.cs.umd.edu/eclipse?importType=3Dsource</a>&quot=
; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;searchPath name=3D&quot;org.eclipse.o=
rbit&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
provider readerType=3D&quot;eclipse.import&quot; componentTypes=3D&quot;osg=
i.bundle,eclipse.feature&quot;</div><div><span class=3D"Apple-tab-span" sty=
le=3D"white-space:pre"> </span>mutable=3D&quot;false&quot; source=3D&quot=
;false&quot;&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt=
;uri=A0format=3D&quot;<a href=3D"http://download.eclipse.org/tools/orbit/do=
wnloads/drops/R20100114021427/updateSite?importType=3Dsource ">http://downlo=
ad.eclipse.org/tools/orbit/downloads/drops/R20100114021427/u pdateSite?impor=
tType=3Dsource</a>&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;=
/provider&gt;</div><div><span class=3D"Apple-tab-span" style=3D"white-space=
:pre"> </span>&lt;/searchPath&gt;</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>&lt;locator searchPathRef=3D&quot;org.ecl=
ipse.galileo.buckminster&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>patt=
ern=3D&quot;org\.eclipse\.buckminster(\..*)?&quot; /&gt;</div><div><span cl=
ass=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;locator search=
PathRef=3D&quot;org.eclipse.swtbot&quot;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>patt=
ern=3D&quot;org\.eclipse\.swtbot(\..*)?&quot; /&gt;</div><div><span class=
=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;locator searchPat=
hRef=3D&quot;org.tigris.subclipse&quot; pattern=3D&quot;org\.tigris(\..*)?&=
quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;l=
ocator searchPathRef=3D&quot;edu.umd.cs.findbugs&quot; pattern=3D&quot;edu\=
..umd\.cs\.findbugs(\..*)?&quot; /&gt;</div><div><span class=3D"Apple-tab-sp=
an" style=3D"white-space:pre"> </span>&lt;locator searchPathRef=3D&quot;org=
..eclipse.galileo.epp&quot; failOnError=3D&quot;false&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;l=
ocator searchPathRef=3D&quot;org.eclipse.galileo.updates&qu ot; </div><div><s=
pan class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>failOnError=
=3D&quot;false&quot; /&gt;</div>
<div><span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>&lt;l=
ocator searchPathRef=3D&quot;org.eclipse.galileo.download&q uot; failOnError=
=3D&quot;false&quot; /&gt;</div><div><span class=3D"Apple-tab-span" style=
=3D"white-space:pre"> </span>&lt;locator searchPathRef=3D&quot;org.eclipse.=
orbit&quot; /&gt;</div>
<div>&lt;/rmap&gt;</div><div><br></div></div></div ></div>

--0016e68fc5cdd7045a0480fab74b--
Re: [buckminster-dev] Downloading source jars [message #518655 is a reply to message #518589] Thu, 04 March 2010 12:16 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Ed,
I have a couple of inline comments.

On 03/04/2010 03:50 PM, Ed Kohlwey wrote:
> Hi,
> First of all, I apologize if this is not the correct place to ask this
> question. I attempted to ask this question via the newsgroup, but was
> unable to get my bugzilla account to log in to them.
>
> I would like to materialize all of the projects my organization is
> maintaining to the workspace, and materialize the dependency jars
> (including source jars) to an external target installation. Presently,
> my scheme works, except I have been unable to materialize the source
> jars to the target. Buckminster is being invoked by right clicking on
> the mspec file and selecting "Import". The rmap below is one of two
> rmaps thats aggregated to actually run the query. The other rmap uses a
> filter pattern for "com\.myArtifacts\.", and the eclipse plugins rmap is
> used as a "catch all". The other files (and the rmap). The dependencies
> on eclipse artifacts are declared in the bundle MANIFEST.MF's for my
> artifacts. I have tried setting "cbi.include.source=true" in the CQUERY
> properties section as well.
>
The cbi.include.source only applies when you perform an action. An better name for it would perhaps be
"cbi.generate.source.bundles.and.features" since that's what it really means. It is not looked at during resolution so
having it in the CQUERY will have no effect.


> <?xml version="1.0" encoding="UTF-8"?>
> <md:mspec xmlns:md="http://www.eclipse.org/buckminster/MetaData-1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.eclipse.org/buckminster/MetaData-1.0
> http://www.eclipse.org/buckminster/schemas/metadata-1.0.xsd"
> materializer="p2"
> installLocation="${user.home}/my-target"
> name="com.myArtifacts.root:osgi.bundle:1.0.0.qualifier"
> url="workspace_and_target.cquery">
> <md:mspecNode materializer="workspace"
> conflictResolution="UPDATE" namePattern="com\.myArtifacts\.*">
> </md:mspecNode>
> </md:mspec>
>
I would advice you to drop the 'installLocation' for the p2 materializer and instead make sure that the active target
platform has one "Directory Location". If no installLocation is given, then Buckminster will select the active target
platform.

I would also advice against using a namePattern for the workspace bundles and instead use the filter:

<md:mspecNode materializer="workspace" filter="(buckminster.source=true)"/>

In essence, that means that if the RMAP provider has source="true", then the result will end up in the workspace.

> and the CQUERY
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="workspace_and_target.rmap"
> properties="testapp_locations.properties" shortDesc="Using This CQUERY">
> <cq:documentation xmlns="http://www.w3.org/1999/xhtml"></cq:documentation>
> <cq:rootRequest name="com.myArtifacts.root" componentType="osgi.bundle"/>
> <cq:property key="target.arch" value="*"/>
> <cq:property key="target.os" value="*"/>
> <cq:property key="target.ws <http://target.ws>" value="*"/>
> <cq:advisorNode namePattern=".*" sourceLevel="DESIRE"
> useTargetPlatform="false" useWorkspace="false"/>
> <cq:advisorNode namePattern="com\.myArtifacts\..*"
> mutableLevel="REQUIRE" sourceLevel="REQUIRE" useTargetPlatform="false"/>
> </cq:componentQuery>
>
Only one advisorNode will be selected for any given component and that's the first advisorNode that matches. You have a
node here with the pattern ".*" (match all) which means that all components will use that node. Nodes declared after
that node will never be used.

> and finally, the relevant RMAP
>

I suggest you remove the source="true" and "?importType=source" here. From Buckminsters perspective, you are importing a
binary jar file into the target platform. The fact that it contains source files is not relevant here.

The source="true" should typically only be used with SCM type providers (cvs, svn, etc.) or if you really want to import
a source bundle and expand it as a project into your workspace.

Regards,
Thomas Hallgren



> <?xml version="1.0" encoding="UTF-8"?>
> <rmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="org.eclipse.galileo.updates">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/eclipse/updates/3.5?importType=s ource"
> />
> </provider>
> </searchPath>
> <searchPath name="org.eclipse.galileo.download">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="true">
> <uri
> format=" http://download.eclipse.org/releases/galileo?importType=sour ce" />
> </provider>
> </searchPath>
> <searchPath name="org.eclipse.galileo.buckminster">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/tools/buckminster/updates-3.5?im portType=source"
> />
> </provider>
> </searchPath>
> <searchPath name="org.eclipse.galileo.epp">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/technology/epp/packages/galileo? importType=source"
> />
> </provider>
> </searchPath>
> <searchPath name="org.eclipse.swtbot">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/technology/swtbot/galileo/dev-bu ild/update-site?importType=source"
> />
> </provider>
> </searchPath>
> <searchPath name="org.tigris.subclipse">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri format="http://subclipse.tigris.org/update_1.6.x?importType=source" />
> </provider>
> </searchPath>
> <searchPath name="edu.umd.cs.findbugs">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri format="http://findbugs.cs.umd.edu/eclipse?importType=source" />
> </provider>
> </searchPath>
> <searchPath name="org.eclipse.orbit">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature"
> mutable="false" source="false">
> <uri format=" http://download.eclipse.org/tools/orbit/downloads/drops/R201 00114021427/updateSite?importType=source"
> />
> </provider>
> </searchPath>
> <locator searchPathRef="org.eclipse.galileo.buckminster"
> pattern="org\.eclipse\.buckminster(\..*)?" />
> <locator searchPathRef="org.eclipse.swtbot"
> pattern="org\.eclipse\.swtbot(\..*)?" />
> <locator searchPathRef="org.tigris.subclipse"
> pattern="org\.tigris(\..*)?" />
> <locator searchPathRef="edu.umd.cs.findbugs"
> pattern="edu\..umd\.cs\.findbugs(\..*)?" />
> <locator searchPathRef="org..eclipse.galileo.epp" failOnError="false" />
> <locator searchPathRef="org.eclipse.galileo.updates"
> failOnError="false" />
> <locator searchPathRef="org.eclipse.galileo.download" failOnError="false" />
> <locator searchPathRef="org.eclipse.orbit" />
> </rmap>
>
Previous Topic:Coding style
Next Topic:Re: [buckminster-dev] Downloading source jars
Goto Forum:
  


Current Time: Tue Apr 16 22:02:42 GMT 2024

Powered by FUDForum. Page generated in 3.05355 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top