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>
<!-- Using Saxon as didnt find option to write
output to java-->
<pathelement location="${saxonapi.jar}"/>
<pathelement location="${xalanapi.jar}"/>
<!--<pathelement
location="${env.XALAN_BIN}/bsf.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#a8173529
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]