Re: Delayed properties resolving
Antoine Levy Lambert <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
In my project we are using a LDAP directory tree to store properties.
This way, with the appropriate client code to read the properties, we
can have all manners of overrides.
Handling properties is always work, because one is often dealing with
different dimensions such :
- platform : properties defined for Solaris, HP-UX, ...
- development branch : if you are on a project with say a 4.0 and a 5.0
and a 5.2 branch, you may have requirements to have different properties
for each branch, for instance different email addresses of release
manager to send emails to. You do not want to check in a property file
with the actual name of the release manager in the source tree because
otherwise horror and confusion will happen at merge time.
- location : you may be in a multilocal project with locations NYC, FRA,
LON, ...
Some tree structure is always needed.
One thing which I did not try with cruisecontrol is to create one
property file like this :
foo.property1=3 ponies
foo.property2=2 dogs
bar.property1=Joe
bar.property2=Sven
and a config.xml file like that
<project name="foo">
<property name="${project.name}.property1"
value="${{project.name}.property1}"/>
<property name="${project.name}.property2"
value="${{project.name}.property2}"/>
<!-- hopefully get 3 ponies and 2 dogs here -->
</project>
<project name="bar">
<property name="${project.name}.property1"
value="${{project.name}.property1}"/>
<property name="${project.name}.property2"
value="${{project.name}.property2}"/>
<!-- hopefully get Joe and Sven here -->
</project>
Regards,
Antoine
Daniel Tihelka wrote:
> Hallo Antoine,
>
> thank you very much for your hint. I have tried it using properties file
> included into subprojects. It is working, however, not nice solution - you
> have settings in 2+ files, which makes it harder to administrate :-( ...
>
> I include the listing of simple project I have tried.
>
> Thank you very much again.
> Dan
>
>
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev