Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Getting components from branch
Getting components from branch [message #550306] Thu, 29 July 2010 20:47 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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
>
>
Re: Getting components from branch [message #550520 is a reply to message #550372] Fri, 30 July 2010 16:02 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Thanks Thomas, it's working now.
Previous Topic:Support for custom config.ini
Next Topic:Root advice warning
Goto Forum:
  


Current Time: Thu Mar 28 11:01:37 GMT 2024

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

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

Back to the top