[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [buckminster-dev] Making Buckminster understand SVN branching
|
Sorry, I was to fast to write previous letter.
1) I've solved a promlem with "trunk" - I've just added another provider on top of my SearchPath with "trunk" resolution, so now it is:
<searchPath name="default">
<provider readerType="svn" componentTypes="eclipse.feature,osgi.bundle,buckminster">
<uri format="svn://localhost/test/{0}/trunk/">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="svn" componentTypes="eclipse.feature,osgi.bundle,buckminster">
<uri format="svn://localhost/test/{0}/trunk/">
<bc:propertyRef key="buckminster.component" />
</uri>
<versionConverter type="branch">
<transform
fromPattern="^(\d)+\.(\d)+\..*$" fromReplacement="R$1\.$2\.x"
toPattern="^R(\d)+\.(\d)+\.x$" toReplacement="$1\.$2\.0" />
</versionConverter>
</provider>
</searchPath>
2) But I've found another problem. When I try to execute CQUERY without specifying exact version of component, it resolves well. But when I specify version of component, it failes.
For example:
My SearchPath:
<searchPath name="default">
<provider readerType="svn" componentTypes="eclipse.feature,osgi.bundle,buckminster">
<uri format="svn://localhost/test/{0}/trunk/">
<bc:propertyRef key="buckminster.component" />
</uri>
<versionConverter type="branch">
<transform
fromPattern="^(\d)+\.(\d)+\..*$" fromReplacement="R$1\.$2\.x"
toPattern="^R(\d)+\.(\d)+\.x$" toReplacement="$1\.$2\.0" />
</versionConverter>
</provider>
</searchPath>
My CQUERY:
<cq:componentQuery>
<cq:rootRequest name="plA" componentType="osgi.bundle"/>
</cq:componentQuery>
It resolves perfectly to R1.0.x branch, which contains 1.0.0 version of component.
But when I specify in my CQUERY that I need version 1.0.0 EXPLICITLY, resolution failes:
<cq:componentQuery>
<cq:rootRequest name="plA" componentType="osgi.bundle" versionDesignator="[1.0.0,1.0.0]" versionType="OSGi"/>
</cq:componentQuery>
I've tried to provide "versionDesignator" in different forms, but none of it worked. I've also tried to make simple version->branch replacion (w/o any regexps, just 1.0.0 version transforms to 1.0.0 branch), I thought maybe I have some mistake in regexps, but it didn't help. Can you help me to solve this matter?
Thanks.