Hi, I'm using ant to merge two directory's. I have two source directory's and one destination directory. If two the same files are found in the two source directory's I want to have the newest of the two in de destination directory. I use:
<copydir src="source1" dest="destination" /> <copydir src="source2" dest="destination" /> The problem with this is that the copied files last modified time is the time of copying. So the files in source2 will never be copied to the destination because the time of the files in the destination are allways newer. I solved this by adding the following code to Project.java on line 656: destFile.setLastModified(sourceFile.lastModified()); I'm affraid this isn't Java 1.1 compatible, is this a problem? Jaco
