Hi Carlos,

Yes, it's possible using setProperty: For ex: <ant:setProperty
name="fork" value="${maven.compile.fork}" /> 

Check the java plugin for how to use that.

-Vincent

> -----Original Message-----
> From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
> Sent: 15 May 2004 17:47
> To: [EMAIL PROTECTED]
> Subject: plugin.jelly Using a tag attribute only if another attribute
has
> a specified value
> 
> Hi all,
> 
> I have this in the plugin.jelly
> 
>       <ant:iajc
>           fork="${maven.aspectj.fork}"
>           maxmem="${maven.aspectj.maxmem}"
>           [more parameters]>
>           [LOTS of things here]
>       </ant:iajc>
> 
> But i'd like to use maxmem only if "fork" is true (because the aspectj
> compiler prints a warning)
> 
> Is there any way to achieve this without repeating the whole ant task?
> 
> <j:choose>
>   <j:when ...>
>       <ant:iajc
>           fork="${maven.aspectj.fork}"
>           [more parameters]>
>           [LOTS of things here]
>       </ant:iajc>
>   </j:when>
>   <j:otherwise>
>       <ant:iajc
>           fork="${maven.aspectj.fork}"
>           maxmem="${maven.aspectj.maxmem}"
>           [more parameters]>
>           [LOTS of things here]
>       </ant:iajc>
>   </j:otherwise>
> </j:choose>
> 
> 
> Thanks,
> 
> Carlos Sanchez
> A Coru�a, Spain
> 
> Oness Project
> http://oness.sourceforge.net
> 
> 
> 
> ---------------------------------------------------------------------
> 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