ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaco de Groot <jaco.de.gr...@eo.nl>
Subject Re: Last modified of copied files
Date Mon, 30 Oct 2000 13:30:42 GMT
Stefan Bodewig wrote:
> 
> >>>>> "MKH" == Matthew Kuperus Heun <matthew.k.heun@gaerospace.com>
writes:
> 
>  >> destFile.setLastModified(sourceFile.lastModified());
>  >>
>  >> I'm affraid this isn't Java 1.1 compatible, is this a problem?
> 
> Take a look at the <touch> task (and unzip, untar ...).
> 
>  MKH> What is the general policy for ANT wrt jdk1.2?
> 
> Simple: Ant is JDK 1.1 compatible. If there is something you cannot do
> in 1.1 but is very useful (like setting the timestamp of a file) -
> call it via reflection and print a warning if necessary.

I've done it using reflection now. I created OldJava.java wich contains the
setFileLastModified method wich can be used at other places as well (like
Touch.java). Can somebody take a look at what I've done and add it to CVS if
approved?

Jaco
Mime
View raw message