You can take a look at the tag set in Jelly

http://jakarta.apache.org/commons/jelly/tags.html#core:set

Arnaud
 

> -----Message d'origine-----
> De : Mironenko, Philip [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 27 octobre 2005 16:18
> À : users@maven.apache.org
> Objet : Setting global properties - is it even possible?
> 
> Hi all,
> 
> I have a fairly simple question about properties - is there 
> any way to set them AFTER they've been initialized for the 
> first time or is it like ant - once it's set, it's immutable? 
> An example of what I'm asking is:
> 
> <?xml version="1.0"?>
> <project default="all" xmlns:j="jelly:core" xmlns:ant="jelly:ant"
> xmlns:m="jelly:maven" xmlns:deploy="deploy" xmlns:u="jelly:util"
> xmlns:x="jelly:xml">
> 
>     <property environment="env"/>
>     <property name="maven.jar.manifest" value="target/MANIFEST.MF"/>
> 
>     <!-- Can this property's value be changed afterwards, 
> from within a goal? -->
>     <property name="phnx.db.user" value="myAppUser" />
> 
>     <goal name="initProperties">
> 
>       <!-- Is there any way to set my property from here? -->
> 
>     </goal>
> 
> </project>
> 
> 
> If it is not possible, could anyone suggest a suitable 
> replacement? Is there something along the lines of "global 
> variables" in Maven? We're using 1.0, by the way. Thanks in 
> advance for all the help! :-)
> 
> Phil
> ##############################################################
> #######################
> This e-mail message has been scanned for Viruses and Content 
> and cleared by NetIQ MailMarshal 
> ##############################################################
> #######################
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to