Community
Participate
Working Groups
In a component query advisory nodes can be specified with a "Selection Criteria" for "Branch/Tag path". We would like to have the branch or tag name used for the version qualifier. Could buckminster provide a version qualifier generator for that purpose? Example: qualifier.replacement.* = generator.selectedBranchOrTag In case no branch or tag has been specified for a component buckminster could use the value specified in a property like: generator.selectedBranchOrTag.default.qualifier = someValue
FYI we have implemented that feature for CVS. After it is reviewed it will be released as a patch here.
Created attachment 110794 [details] Source code
Created attachment 110795 [details] Plugin for Eclipse 3.4 + Buckminster r9505 Attached source code and binary plug-in. From README.txt: CVS Tag Qualifier Generator =========================== Created on 2008/8/25 by Michael Pfeiffer, Software Competence Center Hagenberg Description ----------- This plug-in provides a qualifier generator for components connected to a CVS repository materialized into a workspace. The qualifier is set to the CVS tag associated with the component (for example the branch name or version). Installation ------------ 1) Headless Buckminster Install headless Buckminster CVS feature, then copy this plug-in into the Buckminster "plugins" folder. 2) Eclipse IDE Copy this plug-in into the Eclipse "plugins" folder. Usage ----- Use "generator:cvsTag" as qualifier generator in Buckminster property "qualifier.replacement.*". # For all components: qualifier.replacement.*=generator:cvsTag # For subset of components starting with "my.component": qualifier.replacement.my.component.*=generator:cvsTag
Given that branch and tags are both generic concepts in Buckminster, would it be possible to implement this with a generalization (i.e. generator:tag and generator:branch, the former IMO more important then the latter) so that someone could implement the corresponding support for SVN? Please note that I'm very grateful that you provide the CVS support for this. I'm not asking that you also provide the SVN support, just that you make it possible for someone else to do it. One thing to keep in mind is that a CVS tag can reflect both a tag (sticky) and a branch (not sticky). That's however an implementation detail. A tag is never a branch in Buckminster and they should be kept separate at all times.
(In reply to comment #4) > Given that branch and tags are both generic concepts in Buckminster, would it > be possible to implement this with a generalization (i.e. generator:tag and > generator:branch, the former IMO more important then the latter) so that > someone could implement the corresponding support for SVN? It should be quite easy for someone who is familiar with Buckminster source code. The other two existing qualifier generators provide good examples how it could be done. I am sorry to tell you, that at the moment we have no resources available to do it. It is however very likely that later this year one of our projects will switch to subversion. If that feature is required there too, we will implement it also for subversion in the proposed way and integrate the cvs qualifier generator then.