Home » Archived » Buckminster » Getting components from branch
Getting components from branch [message #550306] |
Thu, 29 July 2010 20:47 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Hi,
I am trying to retrieve a component from a branch, but the component is getting pulled from trunk. In my cquery I have this advisor
<cq:advisorNode namePattern="com.iwaysoftware.designer.ui" branchTagPath="0.1,main"/>
And my rmap is this
<?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="resources">
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/dependencies/trunk/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/Explorer/trunk/plugins/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/features/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/channel/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/core/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/designer/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/ifl/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/integration/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="true" source="true">
<uri format="{0}/iIT/trunk/plugins/transformer/{1}?moduleAfterTag&moduleAfterBranch">
<bc:propertyRef key="svn.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
<searchPath name="ganymede">
<provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="false" source="false">
<uri format="http://download.eclipse.org/releases/ganymede/?importType=binary"/>
</provider>
</searchPath>
<searchPath name="galileo">
<provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature,buckminster"
mutable="false" source="false">
<uri format="http://download.eclipse.org/releases/galileo/?importType=binary"/>
</provider>
</searchPath>
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.integration(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.logging" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.eclipse\.common" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.integration\.deployment" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.explorer" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.explorer\.configuration" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ifl\.ui" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.emf\.query" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.core(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.designer(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.eclipse\.ui(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.cheatsheets" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.iaexp" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.iamp" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ibsexp" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ieexp" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.irexp" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.iwtrans(\..+)?" /><!--
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.channel(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.route(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.inlet(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.outlet(\..+)?" />
--><locator searchPathRef="resources" pattern="^com\.iwaysoftware\.gmf(\..+)?" />
<locator searchPathRef="resources" pattern="^com\.iwaysoftware\.perspective\.integration" />
<locator searchPathRef="ganymede" failOnError="false" />
<locator searchPathRef="galileo" failOnError="false" />
<property key="svn.root" value="http://localhost/svn" />
</rmap>
What am I doing wrong here? My concern is that svn structure might not be correct.
thanks,
Alex
|
|
|
Re: Getting components from branch [message #550372 is a reply to message #550306] |
Fri, 30 July 2010 06:50 |
|
Some things to check.
1. The 'namePattern' of the advisorNode is a regular expression. The dot
means "any character". I.e. it's likely that you want the pattern:
"^com\.iwaysoftware\.designer\.ui$".
2. Check that you don't have an advisorNode that precedes this one that
has a pattern that also matches. Only the first matching node will be used.
3. The branchTagPath directs the reader to first check the 0.1 branch.
If it fails, it will try the trunk. Perhaps you should try using only
"0.1" and not fall back to trunk until you know what's wrong.
HTH,
- thomas
On 07/29/2010 10:47 PM, Alex wrote:
> Hi,
>
> I am trying to retrieve a component from a branch, but the component is
> getting pulled from trunk. In my cquery I have this advisor
>
> <cq:advisorNode namePattern="com.iwaysoftware.designer.ui"
> branchTagPath="0.1,main"/>
>
> And my rmap is this
>
> <?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="resources">
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri format=" {0}/dependencies/trunk/{1}?moduleAfterTag&moduleAfterBra nch ">
> <bc:propertyRef key="svn.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/Explorer/trunk/plugins/{1}?moduleAfterTag&moduleAfte rBranch ">
> <bc:propertyRef key="svn.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri format=" {0}/iIT/trunk/features/{1}?moduleAfterTag&moduleAfterBra nch ">
> <bc:propertyRef key="svn.root" /> <bc:propertyRef
> key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri format=" {0}/iIT/trunk/plugins/{1}?moduleAfterTag&moduleAfterBran ch ">
> <bc:propertyRef key="svn.root" /> <bc:propertyRef
> key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/channel/{1}?moduleAfterTag&moduleA fterBranch ">
>
> <bc:propertyRef key="svn.root" /> <bc:propertyRef
> key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/core/{1}?moduleAfterTag&moduleAfte rBranch ">
> <bc:propertyRef key="svn.root" /> <bc:propertyRef
> key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/designer/{1}?moduleAfterTag&module AfterBranch ">
>
> <bc:propertyRef key="svn.root" /> <bc:propertyRef
> key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/ifl/{1}?moduleAfterTag&moduleAfter Branch ">
> <bc:propertyRef key="svn.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/integration/{1}?moduleAfterTag&mod uleAfterBranch ">
>
> <bc:propertyRef key="svn.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="true" source="true">
> <uri
> format=" {0}/iIT/trunk/plugins/transformer/{1}?moduleAfterTag&mod uleAfterBranch ">
>
> <bc:propertyRef key="svn.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
> <searchPath name="ganymede">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/releases/ganymede/?importType=bi nary"/>
> </provider>
> </searchPath>
>
> <searchPath name="galileo">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle,eclipse.feature,buckminster"
> mutable="false" source="false">
> <uri
> format=" http://download.eclipse.org/releases/galileo/?importType=bin ary"/>
> </provider>
> </searchPath>
>
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.integration(\..+)?" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.logging" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.eclipse\.common" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.integration\.deployment" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.explorer" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.explorer\.configuration" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ifl\.ui" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.emf\.query" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.core(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.designer(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.eclipse\.ui(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.cheatsheets" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.iaexp" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.iamp" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ibsexp" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.ieexp" />
> <locator searchPathRef="resources" pattern="^com\.iwaysoftware\.irexp" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.iwtrans(\..+)?" /><!--
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.channel(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.route(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.inlet(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.outlet(\..+)?" />
> --><locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.gmf(\..+)?" />
> <locator searchPathRef="resources"
> pattern="^com\.iwaysoftware\.perspective\.integration" />
> <locator searchPathRef="ganymede" failOnError="false" />
> <locator searchPathRef="galileo" failOnError="false" />
> <property key="svn.root" value="http://localhost/svn" />
> </rmap>
>
> What am I doing wrong here? My concern is that svn structure might not
> be correct.
>
> thanks,
> Alex
>
>
|
|
| |
Goto Forum:
Current Time: Sat Apr 27 16:46:21 GMT 2024
Powered by FUDForum. Page generated in 0.03961 seconds
|