Re: Windows Changes in Current master
Stefan Bodewig <[email protected]> Mon, 09 Feb 2026 18:30:48 +0100
| Newsgroups | gmane.comp.jakarta.ant.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2026-02-09, Jens Hofschröer wrote: > Am 09.02.2026 um 12:25 schrieb Stefan Bodewig: >> Many thanks Jens, this is exactly why I asked people to test the release >> candidate. >> Can you tell us which version of Java you are using? >> I suspect you are using Java < 24 and things would break with Java 24+ >> (i.e. the current LTS of 25) for you even when using Ant 1.10.15. >> Prior to Java 24 File#getCanonicalPath does not follow junctions or >> symlinks on Windows while Path#toRealPath does. One change in 1.10.16 is >> to use Path#toRealPath here. But if I'm correct, then the change to >> getCanonicalPath in Java 24+ would have the same effect on your build. > Yes, you are right. I first run it with JDK17 and testet it now with > JDK21 and JDK25 with your expected result. Great, so Java 24 breaks Ant in subtle ways. >> For your specific case we probably need something like followSymlinks on >> <property> that you would need to set to false in order to resolve the >> file the same way as before. > This would be a valid workaround I think. Yes. I'll be looking for similar cases where we can at least help our users, even though it is not really related to the changes in 1.10.16 - the issues just show up earlier. We'll defer the release for the changes necessary. Stefan