Ant task to transform all files in a folder
Posted: Thu Jun 26, 2014 11:54 pm
				
				I'm having trouble getting a fairly simple Ant task to work. I'm trying to run an XSLT transformation on all the files in a folder and output the results to another folder. This is what the relevant bit of the build file looks like at the moment:
I get this output in the console, but nothing is created:
According to how I read the Ant docs, this should scan the included directory (anthology) and process all of the files in it. 
Can anyone see what I'm missing?
			Code: Select all
  <target name="poemsToHTML">
    <echo>Create output for all poems in the anthology folder.</echo>
    <xslt force="true" style="${pd}/xsl/poem.xsl" includes="${pd}/anthology" basedir="${pd}/xsl" destdir="${pd}/html" extension=".html" scanincludeddirectories="true">     
      <factory name="net.sf.saxon.TransformerFactoryImpl"/>
      <classpath location="${oxygenlib}/saxon9ee.jar"/>
    </xslt>
  </target> 
Code: Select all
poemsToHTML:
     [echo]Create output for all poems in the anthology folder.
     [xslt] Transforming into /media/Data/mholmes/Documents/english/VictorianPoetryNetwork/svnrepo/html
Can anyone see what I'm missing?