Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] New version of Buckminster Book available (rev0.5)

Hi, where did you read that versionOverride should be used to get things from different branches? I tried googling for your example, but without luck. That example is not in the book BTW.

I think it is better to handle branches with entries in the RMAP. We have several examples in the book that shows how to use this for different repositories (nightly, integration, release etc), and this naturally works well for SVN branches as well.

Controlling the routing in the RMAP with properties also makes it possible to use advisor nodes where this property is set - this to enable picking different components from different branches (instead of using a version override).

- henrik


Cailliau, Dieter wrote:
When talking about svn branches i read that one should use the versionOverride (1) in combination with the rmap (2) of this form (see below).
This is very slow because it seems like buckminster visits all branches in order to find the best match, which is useless as i typically want one single branch (no need to do a find-best-match).
So it's much faster to have a specific rmap for each branch this (3) (and leave the .cquery alone, without the advisor nodes).
Can you comment on this please? Is it okay to do so, or not?

(3) my faster branch-specific rmap

	<rm:searchPath name="bundle">
		<rm:provider readerType="svn" componentTypes="osgi.bundle" mutable="false" source="true">
			<rm:uri format="http://.../svn/software/branches/branchname/{0}?moduleAfterBranch";>
				<bc:propertyRef key="buckminster.component" />
			</rm:uri>
		</rm:provider>
	</rm:searchPath>



(1) the example from the documentation

    <cq:advisorNode namePattern="com.mycompany.*" useTargetPlatform="false" versionOverride="raw:['branchname','branchname']/format(S):branchname,branchname"/>

(2)

	<rm:searchPath name="cspec">
		<rm:provider readerType="svn" componentTypes="buckminster" mutable="false" source="true">
			<rm:uri format="http://.../svn/software/trunk/{0}?moduleAfterBranch";>
				<bc:propertyRef key="buckminster.component" />
			</rm:uri>
			<rm:versionConverter type="branch">
				<rm:transform fromPattern="^(.*)$" fromReplacement="$1" toPattern="^(.*)$" toReplacement="$1" />
			</rm:versionConverter>
		</rm:provider>
		<rm:provider readerType="svn" componentTypes="buckminster" mutable="false" source="true">
			<rm:uri format="http://.../svn/software/trunk/{0}?moduleAfterTag";>
				<bc:propertyRef key="buckminster.component" />
			</rm:uri>
			<rm:versionConverter type="tag">
				<rm:transform fromPattern="^(.*)$" fromReplacement="$1" toPattern="^(.*)$" toReplacement="$1" />
			</rm:versionConverter>
		</rm:provider>
	</rm:searchPath>


DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.


Back to the top