ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marijan (Mario) Madunic" <>
Subject Cached results?
Date Thu, 16 Oct 2008 18:09:02 GMT
(Using ANT 1.7.1 on a Windows XP SP3 machine)

Sorry about the not to obvious subject line but I'll do my best in 
explaining the problem I've been having.

I'm using ant to pipeline a series of transforms on content extracted 
from a db.

There is one main XSLT that does the bulk of the transforms. It's built 
using called templates. Here it is in ANT:

<xslt in="../doNotDelete/keep.xml" out="../temp/deleteMe.xml" 
style="../xslChunks/fixArtistType.xsl" />

<xslt in="../doNotDelete/keep.xml" out="../temp/deleteMe.xml" 
style="../xslChunks/fixCountries.xsl" />

<xslt in="../doNotDelete/keep.xml" out="../temp/deleteMe.xml" 
style="../xslChunks/getArtists.xsl" />

The last one is the main XSLT transform. I am overwriting the output doc 
as I don't need it. I use it keep.xml as a dummy doc as I parse a series 
of other XML docs to get my desired output.

What is happening is that even though I make changes to the called 
templates that getArtists.xsl uses I get the following


G:\XML\cdCollection>ant -f G:\XML\cdCollection\antTasks\getArtists.xml
Buildfile: G:\XML\cdCollection\antTasks\getArtists.xml

     [echo] fixArtistType.xsl
     [xslt] Processing G:\XML\cdCollection\doNotDelete\keep.xml to 
     [xslt] Loading stylesheet 
     [xslt] START fixArtistType
     [xslt] END fixArtistType
     [echo] fixCountries.xsl
     [echo] getArtists.xsl
   [delete] Deleting directory G:\XML\cdCollection\temp

Total time: 0 seconds

When I make a change to the getArtists.xsl directly the total time is 15 
seconds and I usually get the output I expected, but now I don't. The 
funny thing was if I added a space to the getArtists.xsl anywhere I 
usually get the output I expected. I used to be able to halt this by 
deleting all temp files, moving the result files to a location on a 
server. In other words have a clean structure every time I ran an ANT 
process. This all runs fine when using Saxon from the command line minus 
ANT but don't want to really go that route.

So my questions are: Is ANT checking for a cached result set? Does it 
check the files it is to use for the transform and check if they are 
different from a cached set? How do I stop this behaviour?

Any help would be appreciated.


Marijan (Mario) Madunic

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

View raw message