ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: File Includer
Date Thu, 10 Jun 2004 15:24:32 GMT
On first glance, I would say that the FilterChain 
may be the correct solution.

The way to resolve your requirement is providing
a different task (useful on its own right) that
given a fileset it adjust the lastmodified of a target
file to be the latest date of the files in the fileset.

Do you think this two things will solve your problem?

Jose Alberto

> -----Original Message-----
> From: Rami Ojares [mailto:rami.ojares@elisa.fi] 
> Sent: 10 June 2004 13:42
> To: dev@ant.apache.org
> Subject: File Includer
> 
> 
> Hi,
> 
> I have a small tool that I thought might be useful in Ant.
> 
> You have a source file (srcFile)
> Within that file you have references like:
> blaa blaa ${path/to/another/file} blaa blaa
> 
> The tool resolves those paths to files and replaces
> the references with the contents of files that were
> referenced.
> 
> And the resulting file it stores somewhere (not overwriting
> the srcFile)
> 
> This could be called FileIncluder or something similar.
> 
> I though that maybe this could be done somehow with
> the existing FilterChain framework but there is one
> important requirement that makes it impossible.
> 
> Namely I want the lastModified time of the resulting file
> to be set to the latest lastModified time of any of the 
> source files (srcFile or any of the included files).
> 
> I would like to get some comments of whether such task/type 
> is considered 
> useful and if so how to go about integrating it to ant.
> 
> - Rami Ojares
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message