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 41ab4f9ade1326b67c224080eeb45502630ffc6c
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Feb 14 17:31:48 2026 +0100

    wrong variable names
---
 src/main/org/apache/tools/ant/taskdefs/Property.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java 
b/src/main/org/apache/tools/ant/taskdefs/Property.java
index cd930dbbd..488f3148e 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Property.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Property.java
@@ -527,11 +527,11 @@ public class Property extends Task {
         if (name != null && untypedValue != null) {
             if (relative) {
                 try {
-                    File from =
+                    File target =
                         untypedValue instanceof File ? (File) untypedValue
                             : new File(untypedValue.toString());
-                    File to = basedir != null ? basedir : 
getProject().getBaseDir();
-                    String relPath = FileUtils.getRelativePath(to, from);
+                    File source = basedir != null ? basedir : 
getProject().getBaseDir();
+                    String relPath = FileUtils.getRelativePath(source, target);
                     relPath = relPath.replace('/', File.separatorChar);
                     addProperty(name, relPath);
                 } catch (Exception e) {

Reply via email to