Re: Tags/branches with Subversion, Best Practices?

Antoine Levy-Lambert <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Wawok, Brian wrote:
> -----Original Message-----
> From: Doug Breaux [mailto:[email protected]] 
>
>
> Another question is whether there's any way to have CC "reuse" project 
> definitions. I really don't want to have to maintain two set of projects with 
> the only difference being the SVN path.
>
> Thanks,
> Doug
>
> look at making a project plugin ala http://cruisecontrol.sourceforge.net/main/plugins.html#preconfiguration
>
>   
making a project plugin is a good tip.

I make CruiseControl include files where the project definitions look like


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cruisecontrol [
<!ENTITY branch.entity SYSTEM "branch.entity">
]>
<cruisecontrol>
  &ivybranch.entity;

<project name="foo_${branch}">
...
</project>

<project name="bar_${branch}">
...
</project>

</cruisecontrol>

the branch.entity will contain <property name="branch" value="trunk"/>
for instance.

The cruisecontrol config file with the list of projects should be also
maintained in different branches to record changes of the list of
projects in your build stack, and merged at the same time as the rest of
the code.

Regards,

Antoine

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.