ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49162] incorrect duplicated project name warning when imports from URL-providing resource
Date Sun, 09 May 2010 11:36:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49162

--- Comment #3 from Sky Ao <aoxiaojian@gmail.com> 2010-05-09 07:36:24 EDT ---
I have verified this bug with new version 1.8.1, this warning doesn't appear
now.

Also I have checked the source code of class org.apache.tools.ant.helper
ProjectHelper2, the code above in my bug report has been updated to add check
for both context.getBuildFileURL() and context.getBuildFile():

if (MagicNames.ANT_FILE_TYPE_URL.equals(dupType)) {
    ...
    contextFile = context.getBuildFileURL();
} else {
    ...
    contextFile = context.getBuildFile();
}

if (context.isIgnoringProjectTag() && !dupFile.equals(contextFile)) {
    project.log("Duplicated project name in import. Project "
       + context.getCurrentProjectName() + " defined first in " + dup
       + " and again in " + contextFile, Project.MSG_WARN);
 }

I think this bug has been fix and this issue would be closed.

Thanks to all.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message