ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craeg K Strong <cstr...@arielpartners.com>
Subject [PATCH] new "force" attribute for style task XSLTProcess.java
Date Tue, 19 Jun 2001 22:59:49 GMT
Hello:

The attached patch represents a tiny but significant change to the style 
task (XSLTProcess.java).

Today the style task checks to see if the stylesheet or source XML file 
are out of date and only
styles the input file if one or both are.

However, there are circumstances when you want to ALWAYS regenerate the 
output no matter what.
For example, there may be extra parameters to the stylesheet that might 
change each invocation,
or other files like external DTD files, included/imported stylesheets, 
or XMLSchema (XSD) files.

Even if the task tried to detect these addition dependencies (which it 
does not), some of them
are _undetectable_ (for example: parameters to the stylesheet,
external XSD files not referenced by the XML source, etc.).  Correctness 
demands that we supply
some way to deal with this, and "force" is the Simplest Thing That Could 
Possibly Work.

Force defaults to false, which preserves the current behavior.

What do you'all think?  I can provide a patch to the docs as well...

Thanks,

--Craeg

-- 
Craeg K. Strong                               | www.arielpartners.com
Ariel Partners LLC		              | cstrong@arielpartners.com 
85 River Street, Ste. 3A                      | Fax:      (781) 647-9690
Waltham, MA 02453                             | Voice:    (781) 647-2425


Mime
View raw message