This is an automated email from the ASF dual-hosted git repository. bodewig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ant.git
commit cfd6a7b7d743e7430a45879ec2d1749163c7a4ac Author: Stefan Bodewig <[email protected]> AuthorDate: Sun Feb 8 08:47:40 2026 +0100 symlinks on Windows are either file or directory links, you can't change the target "type" and expect the link to still work --- src/tests/antunit/taskdefs/delete-and-symlinks-test.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/antunit/taskdefs/delete-and-symlinks-test.xml b/src/tests/antunit/taskdefs/delete-and-symlinks-test.xml index 0e8e61cb2..034140ac6 100644 --- a/src/tests/antunit/taskdefs/delete-and-symlinks-test.xml +++ b/src/tests/antunit/taskdefs/delete-and-symlinks-test.xml @@ -54,8 +54,10 @@ <target name="testRemoveNotFollowedLinkHonorsIncludesOnFiles" depends="setUp" if="canCreateSymlink" description="https://issues.apache.org/bugzilla/show_bug.cgi?id=53959"> + <delete link="${link}"/> <delete dir="${input}/C"/> <touch file="${input}/C"/> + <symlink link="${link}" resource="${input}/C"/> <delete removeNotFollowedSymlinks="true"> <fileset dir="${input}/A" followSymlinks="false" includes="**/D"/> </delete>
