Terry Mullett wrote:

>    From what little I can tell so far about b5, it's not being invoked 
> by Ant delegates anymore. Is it still possible to use Maven through 
> Ant in b5? Can Maven still use Ant targets in the pre- and post- hooks?

Now, Maven uses Jelly.
It has its own script, called "maven". You can't invoke Maven from Ant 
anymore.

Though, Jelly is able to run Ant tasks natively. Since Maven uses Jelly, 
all your Ant build files should still work
under Maven B5.

There aren't pre- and post- hooks anymore. Instead, Maven uses Werkz, 
which allows to define <goals>.
You can then define <goal>, <preGoal>, <postGoal>, <attainGoal>. This 
mecanism is MUCH more flexible,
and allows you to define arbitrary goals that will be invoked, preGoals 
being invoked before, and postGoals after.

Thus, goals replace Ant targets.
Note that "requires=" is replaced by "prereqs=".

For instance, if you have an Ant build file that you want to use, you 
would simply name it "maven.xml",
and make it look like:
<project name="foo">
<goal name="my-old-build-file"> (you would replace every target by a goal)
... your Ant stuff  ...
</goal>
</project>

Then, you may type "maven my-old-build-file" ant your build file will be 
run.

This new structure allows to have very flexible build-files, and to have 
each "plugin" independent.
(Maven's core is a plugin in itself)

For more information, you may give a look at:
http://jakarta.apache.org/commons/sandbox/jelly/
http://werkz.werken.com/

Cheers,
St�phane

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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

Reply via email to