ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dunning, John (LNG-HBE)" <>
Subject RE: Ant not noticing changes to file unless renamed
Date Tue, 17 Apr 2012 20:40:20 GMT
I'm not compiling the XSLT; I've tried both the <xslt> and <java> tasks, as shown

The XSLT file is copied from ClearCase to a directory by the <copy> task. (I've verified
that the 'correct' version is being copied and that the XSLT is actually being run from that
directory).  The checkin was done manually, not by the Ant script.

The transformation doesn't fail, it's just that it doesn't produce the same output as if I
save the XSLT to a different filename and run the same Ant tasks.

<xslt in="${fullPath}/${dirname}_${fileName}" out="${fullPath}/out.txt" style="${fullPath}\createGrid.xsl"
	<param name="Schema" expression="${schemaName}"/>
	<classpath location="${ant_home}/lib/saxon9.jar"/>					
	<factory name="net.sf.saxon.TransformerFactoryImpl"/> 


<java classname="net.sf.saxon.Transform" classpath="${ant_home}/lib/saxon9.jar" dir="${fullPath}/${allFolderName}"
failonerror="true" fork="true" logError="true">
	<jvmarg value="-Xmx1300m"/>
	<arg value="-s:${fullPath}/${dirname}_${fileName}"/>
	<arg value="-xsl:${fullPath}\createGrid.xsl"/>
          If I run with this line different output is produced:
          <arg value="-xsl:${fullPath}\createGrid_duplicate.xsl"/> 
	<arg value="mappingGridFileName=${dirname}"/>
	<arg value="Schema=${schemaName}"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message