ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marijan (Mario) Madunic" <haj...@imag.net>
Subject Re: Cached results?
Date Thu, 16 Oct 2008 18:33:39 GMT
Thanks, Dominique and Robert. I've set force="true" but am going to 
check out Dominique's suggestions as a learning exercise.

Marijan (Mario) Madunic

Dominique Devienne wrote:
> On Thu, Oct 16, 2008 at 1:19 PM, Robert Koberg <rob@koberg.com> wrote:
>   
>> Ant's XSL only checks the primary XSL file for changes (and the source XML -
>> not xi:includes or file entities). It does not parse that XSL to find
>> xsl:import/includes to check if they have changed.
>>
>> You could put the import/includes in the primary XSL or use force=true on
>> the xslt task.
>>     
>
> Or you explicitly check on the included/imported style sheets via
> <uptodate> or AntContrib's <outofdate> separately from <xslt> itself.
> This forces you to put in the build knowledge about the XSL, which is
> not great, but often an acceptable compromise.
>
> Or you patch <xslt> to parse the XSL to discover it's includes/imports
> (recursively in those too), to check on the timestamps of those as
> well ;-) That's not too difficult, and since they must appear in the
> "prolog" before the templates themselves, you can stop parsing fairly
> early too. But that involves some programming ;-)  --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message