> -----Original Message-----
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]]
> Sent: 18. november 2002 14:51
> To: Turbine Maven Users List
> Subject: Rep:Can't override properties in multiple <attainGoal/>
>
>
> You can try this :
>
> <preGoal name="java:compile">
>   <j:set var="maven.zeus.constraints"
>          value="${maven.src.dir}/testdata/geek-1.0.dtd"/>
>   <j:set var="maven.zeus.package"
>          value="xdoclet.plugins.xmlFacade.test.geek.geek_1_0"/>
>   <attainGoal name="zeus"/>
>
>   <j:set var="maven.zeus.constraints"
>          value="${maven.src.dir}/testdata/geek-2.0.dtd"/>
>   <j:set var="maven.zeus.package"
>          value="xdoclet.plugins.xmlFacade.test.geek.geek_2_0"/>
>   <attainGoal name="zeus"/>
> </preGoal>
>

This works if the "zeus" goal is defined in the same script as the
attainGoal. But I have defined "zeus" it in a separate plugin.jelly, and
strangely enough the plugin.jelly script can't see the properties (??!!)

Is this a case where I would have to use <j:set scope="something"/> ? What
would the scope be?

Cheers,
Aslak

> Property is an ant tag that it can set only one time.
>
> Emmanuel
>
> -----Message d'origine-----
> De: Aslak_Helles�y <[EMAIL PROTECTED]>
> A: <[EMAIL PROTECTED]>
> Date: 18/11/02
> Objet: Can't override properties in multiple <attainGoal/>
>
> Hi!
>
> (Using Maven from CVS a week ago)
>
> I have written a Maven plugin for Zeus (http://zeus.enhydra.org/) that
> will
> invoke the Zeus DTD/Schema -> Java generator. It works just fine, and it
> defines one goal called "zeus". This goal expects some properties to be
> set
> (maven.zeus.constraints and maven.zeus.package).
>
> In my project (XDoclet 2) I want to invoke the zeus goal several times
> with
> different properties. I've tried:
>
>   <preGoal name="java:compile">
>     <attainGoal name="zeus">
>       <property name="maven.zeus.constraints"
> value="${maven.src.dir}/testdata/geek-1.0.dtd"/>
>       <property name="maven.zeus.package"
> value="xdoclet.plugins.xmlFacade.test.geek.geek_1_0"/>
>     </attainGoal>
>
>     <attainGoal name="zeus">
>       <property name="maven.zeus.constraints"
> value="${maven.src.dir}/testdata/geek-2.0.dtd"/>
>       <property name="maven.zeus.package"
> value="xdoclet.plugins.xmlFacade.test.geek.geek_2_0"/>
>     </attainGoal>
>   </preGoal>
>
> This doesn't work the way I want it to. The zeus goal is attained twice,
> but
> both times with the properties I specified in the first attainGoal. -But
> I
> _want_ them to be overridden.
>
> Is there some other technique I could use to achieve the desired effect?
>
> Cheers,
> Aslak
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> __________________________________________________
> Modem offert : 150,92 euros rembours�s sur le Pack eXtense de Wanadoo !
> Haut d�bit � partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
>
>
> __________________________________________________
> Modem offert : 150,92 euros rembours�s sur le Pack eXtense de Wanadoo !
> Haut d�bit � partir de 30 euros/mois : http://www.ifrance.com/_reloc/w
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to