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


The following commit(s) were added to refs/heads/master by this push:
     new e0d164130 fix test
e0d164130 is described below

commit e0d1641308fb0967418fddc083aa264d647f5dc4
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Feb 7 22:10:33 2026 +0100

    fix test
---
 src/tests/junit/org/apache/tools/ant/util/PermissionUtilsTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/junit/org/apache/tools/ant/util/PermissionUtilsTest.java 
b/src/tests/junit/org/apache/tools/ant/util/PermissionUtilsTest.java
index 6fb52d416..a36ce9557 100644
--- a/src/tests/junit/org/apache/tools/ant/util/PermissionUtilsTest.java
+++ b/src/tests/junit/org/apache/tools/ant/util/PermissionUtilsTest.java
@@ -32,6 +32,7 @@ import java.nio.file.attribute.PosixFilePermission;
 import java.util.EnumSet;
 import java.util.Set;
 
+import org.apache.tools.ant.Project;
 import org.apache.tools.ant.taskdefs.condition.CanCreateSymbolicLink;
 import org.apache.tools.ant.taskdefs.condition.Os;
 import org.apache.tools.ant.taskdefs.optional.windows.Mklink;
@@ -112,6 +113,7 @@ public class PermissionUtilsTest {
         if (Os.isFamily("windows")) {
             Path junction = folder.getRoot().toPath().resolve("link.tst");
             Mklink task = new Mklink();
+            task.setProject(new Project());
             Mklink.LinkType linkType = new Mklink.LinkType();
             linkType.setValue("junction");
             task.setLinkType(linkType);

Reply via email to