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>
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]>