> Is it possible to invoke goals multiple times with different sets of properties? 
>   Specifically, I'd like to be able to compile sub-sets of my source at 
> different times during a build and to jar them into different jars.  I'd like to 
> do this by changing the values of properties used by the appropriate goals 
> (java:compile and java:jar).  If Jelly supports this, how do I do it?

        <attainGoal name="java:compile"/>

I'm planning on a fix, though, that will make it so that a single goal
will typically only be attained once, regardless of how many times you
ask for it.

ie:

        <attainGoal name="java:compile"/>
        <attainGoal name="java:compile"/>
        <attainGoal name="java:compile"/>

That block would attain it once, at most, if it hadn't already been
satisfied when the block was reached.

Though, I understand exactly what you're trying to do, and I'd suggest
we find a different way.  That kinda turns our 'goal' semantic into a
'function' semantic, which I'd like to avoid.

We we want function/method/macro type of thing, then let's figure out
a good way to get those semantics, and not overload what a goal
really is.

Jelly has the jelly:define taglib, which allows you to use jelly
script to define jelly tags.  Sounds like we might want to define
a tag for the java:compile functionality, say <maven-javac>, 
that takes just a few arguments (whatever props you're setting before 
calling the goal).

The java:compile goal would then simply be one of many users of the
<maven-javac> jellyscript jellytag.

        -bob


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

Reply via email to