I have a project that build an ant task, and I would like to use maven to
build this project :-)

During my tests, I would like to invoke an ANT script that use my task, in
order to validate that it works as expected.

How can I make this.

I have first tried to write a JUnit test that call this script, but when I
do that, the ant script is not executed in the correct environment (it
doesn't have tools.jar in the classpath).  It's probably possible to work
around, but it will not be easy.

I guess a simpler solution would be to have a maven plugin that setup the
correct classloader, and call the ant script.

Does such a plugin already exist ? 
Or do you see other alternatives ?


SCOKART Gilles

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

Reply via email to