Browse Source

Ant is reusing the same helper

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273736 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
13706da641
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java

+ 1
- 1
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -627,7 +627,7 @@ public class ProjectHelper2 extends ProjectHelper {
// XXX Move to Project ( so it is shared by all helpers )
String antFileProp="ant.file." + context.currentProjectName;
String dup=project.getProperty(antFileProp);
if( dup!=null ) {
if( dup!=null && ! dup.equals(context.buildFile)) {
project.log("Duplicated project name in import. Project "+
context.currentProjectName + " defined first in " +
dup + " and again in " + context.buildFile,


Loading…
Cancel
Save