> We use the user's home build.properties to insert values into
> project.xml, so these are obviously available as well.
>
> [~/build.properties]
> my.cvs.userid=matt
> my.cvs.server=cvs
> my.cvs.root=/cvsroot
>
> [project.xml]
> <repository>
> <developerConnection>scm:cvs:ext:[EMAIL
> PROTECTED]:${my.cvs.root}:/my/module</developerConnection>
> </repository>
>
> I don't imagine it would be difficult (although I haven't tested it) to
> do something similar with the version element of dependencies.
Yeabut...
I don't want every developer on the team to have to maintain the version
numbers in their own ~/build.properties.
What I would really like to do is use <property> or <j:set> in project.xml
to set the version numbers of dependencies that are listed in several
subprojects' project.xml. I've tried everything I can think of but it just
doesn't work. (Even better... set those versions in the top-level
project.properties when said file becomes inherited by subprojects!)
>
>
> Matt
>
> [EMAIL PROTECTED] wrote:
>
>>The project.xml can use variables defined in the pom, like you have
>> mentioned below.
>>
>>I'm not sure which other properties are available at interpolation
>> time. --
>>dIon Gillard, Multitask Consulting
>>Blog: http://blogs.codehaus.org/people/dion/
>>Pub Key:http://blogs.codehaus.org/people/dion/public-key.asc
>>
>>
>>Stephen McConnell <[EMAIL PROTECTED]> wrote on 31/10/2003 07:48:00
>> AM:
>>
>>
>>
>>>James CE Johnson wrote:
>>>
>>>
>>>
>>>>>The project.xml file isn't executed as a jelly script. It's treated
>>>>> as an expression.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Drat.
>>>>
>>>>I guess that also explains why I can't set properties/variables in
>>>> maven.xml and have them evaluated in project.xml:
>>>>
>>>>maven.xml:
>>>>
>>>> ...
>>>> <property name="foo.version" value="1.2.3"/>
>>>>
>>>>project.xml:
>>>>
>>>> <dependency>
>>>> <id>foo</id>
>>>> <version>${foo.version}</version>
>>>> </dependency>
>>>>
>>>>
>>>>
>>>>
>>>This (parameterized versions) would be *so* helpful!
>>>
>>>Steve.
>>>
>>>
>>>
>>>>---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>--
>>>
>>>Stephen J. McConnell
>>>mailto:[EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]