You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Y Z <xa...@hotmail.com> on 2000/09/21 21:19:34 UTC

build using ANT

I am generating html files from xml & xsl files using xalan. Currently, I am 
using Makefile but thinking about using Ant. What is the best tool to build? 
Makefile or Ant?

Using Ant, is there a way not to invoke JVM for every xalan run using the 
<java> task (with @fork disabled), or do I have to create my own task (and 
System Security Manager to suppress System.exit())?

Also, using Ant, Can I do it in a way that would invoke xalan on all xml 
files in the directory, rather than having to edit the build file for every 
new xml?

This is a sample of my Ant's build.xml file:
<project name="myproj"  default="all" basedir=".">
        <target name="all" depends="f1,f2">
                <property name="xml-home" value="./xml"/>
                <property name="xsl-home" value="./xsl"/>
                <property name="html-home" value="./html"/>
                <property name="xalan-args" value="-validate off -xsl 
${xsl-home}/main.xsl -param pl-home '.'"/>
        </target>
        <target name="f1">
                <property name="file" value="f1"/>
    <java fork="yes" classname="org.apache.xalan.xslt.Process" 
args="${xalan-args} -in ${xml-home}/${file}.xml -out 
${html-home}/${file}.html"/>
        </target>
  <target name="f2">
    <property name="file" value="f2"/>
    <java fork="yes" classname="org.apache.xalan.xslt.Process" 
args="${xalan-args} -in ${xml-home}/${file}.xml -out 
${html-home}/${file}.html"/>
  </target>
</project>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.