Hi Raju,
You can do this by adding this snippet of code to your pom.xml:
<configuration>
<tasks>
<ant antfile="${basedir}/build.xml" inheritRefs="true">
<target name="test"/>
</ant>
</tasks>
</configuration>
You may also refer to
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html.
Hope this helps.
Dawn
raju wrote:
>
> Hi ,
> Currently I am invoking java org.apache.xalan.xslt.Process using an ant
> build file in order to generate output based on XSL.IS there any way i can
> do the same in MAVEN or maybe call this ant script from within MAVEN POM.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Code Generation" default="build" basedir=".">
> <property file="build.properties"/>
> <target name="build">
> <java classname="harsh.javatoxml.Java2XML" fork="true" >
> <arg line="${dir.src}/*.java"/>
> <classpath>
> <pathelement location="${java2xml.jarpath}"/>
> </classpath>
> </java>
> <java classname="org.apache.xalan.xslt.Process" fork="true" >
> <arg line="-in ${dir.outputsrcxml}/output.xml -xsl
> ${dir.inputsrcxml}/initial.xsl"/>
> <classpath>
>
> <pathelement location="${saxonapi.jar}"/>
> <pathelement location="${xalanapi.jar}"/>
>
> </classpath>
> </java>
> </target>
> </project>
>
> Regards
> Raju
>
--
View this message in context:
http://www.nabble.com/Invoking-ant-java-Task-from-Maven-or-similar-approaches-in-MAVEN-tf2924117s177.html#a8175641
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]