From 7ea420955e74cb8aff11e1d5b097a24aa3c19313 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 4 Mar 2008 14:14:42 +0000 Subject: [PATCH] normalize build file name. In essence, turn relative file names given on the command line into absolute ones. Submitted by: Justin Vallon. PR: 44323 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@633480 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Main.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index 32e048167..00fb063b3 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -420,6 +420,10 @@ public class Main implements AntMain { throw new BuildException("Build failed"); } + // Normalize buildFile for re-import detection + buildFile = + FileUtils.getFileUtils().normalize(buildFile.getAbsolutePath()); + // Load the property files specified by -propertyfile loadPropertyFiles();