Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 6166 invoked from network); 16 Oct 2008 18:17:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 18:17:53 -0000 Received: (qmail 11137 invoked by uid 500); 16 Oct 2008 18:17:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 11099 invoked by uid 500); 16 Oct 2008 18:17:46 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 11088 invoked by uid 99); 16 Oct 2008 18:17:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 11:17:46 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [24.71.223.10] (HELO idcmail-mo1so.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 18:16:40 +0000 Received: from pd3ml2so-ssvc.prod.shaw.ca ([10.0.141.138]) by pd2mo1so-svcs.prod.shaw.ca with ESMTP; 16 Oct 2008 12:17:16 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=0 a=AdDZOVyJ52mkwLDj7eoA:9 a=Cg6pRJiwb9byr40dMRsA:7 a=MHEbTrmhKzNlawZy8MNZzAkN0kIA:4 Received: from s01060040f4ca870f.vc.shawcable.net (HELO [192.168.1.100]) ([24.83.161.156]) by pd3ml2so-dmz.prod.shaw.ca with ESMTP; 16 Oct 2008 12:17:16 -0600 Message-ID: <48F78542.2090206@imag.net> Date: Thu, 16 Oct 2008 11:17:38 -0700 From: "Marijan (Mario) Madunic" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Ant Users List Subject: Re: Cached results? References: <48F7833E.8050700@imag.net> In-Reply-To: <48F7833E.8050700@imag.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Never mind found the solution. force="true" on the xslt task Marijan (Mario) Madunic Marijan (Mario) Madunic wrote: > (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: > > fixArtistType.xsl > style="../xslChunks/fixArtistType.xsl" /> > > fixCountries.xsl > style="../xslChunks/fixCountries.xsl" /> > > getArtists.xsl > 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>step2 > > G:\XML\cdCollection>ant -f G:\XML\cdCollection\antTasks\getArtists.xml > Buildfile: G:\XML\cdCollection\antTasks\getArtists.xml > > main: > [echo] fixArtistType.xsl > [xslt] Processing G:\XML\cdCollection\doNotDelete\keep.xml to > G:\XML\cdCollection\temp\deleteMe.xml > [xslt] Loading stylesheet > G:\XML\cdCollection\xslChunks\fixArtistType.xsl > [xslt] START fixArtistType > [xslt] END fixArtistType > [echo] fixCountries.xsl > [echo] getArtists.xsl > [delete] Deleting directory G:\XML\cdCollection\temp > > BUILD SUCCESSFUL > 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. > > Thanks > > Marijan (Mario) Madunic > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org