Roland Berger wrote: > Hi all > > Everywhere I can read that it is easy to call an ant target from maven.xml > but after all I did not find an example. > I tried it the following way: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <goal name="enhance"> > <ant:java fork="yes" failonerror="yes" output="enhancer.out" > classname="com.signsoft.ibo.enhancer.Main" > classpathref="project.class.path"> > <arg line="-s classes -d enhanced -v:info"/> > </ant:java> > </goal> > > All I get is: > > Fatal Error [line 3, row 143]: The prefix "ant" for element "ant:java" is > not bound. > > Thank you for any example how to do it better.
<?xml version="1.0" encoding="ISO-8859-1"?> <project xmlns:ant="jelly:ant"> <goal name="enhance"> <ant:java fork="yes" failonerror="yes" output="enhancer.out" classname="com.signsoft.ibo.enhancer.Main" classpathref="project.class.path"> <arg line="-s classes -d enhanced -v:info"/> </ant:java> </goal> </project> R. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]