You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by jl...@apache.org on 2012/08/19 20:42:07 UTC

svn commit: r1374844 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java

Author: jlboudart
Date: Sun Aug 19 20:42:06 2012
New Revision: 1374844

URL: http://svn.apache.org/viewvc?rev=1374844&view=rev
Log:
getImportedModuleReport method attempts to match either the complete module id, module name
or the module alias as specified in the build module.

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java?rev=1374844&r1=1374843&r2=1374844&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java (original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/report/EasyAntReport.java Sun Aug 19 20:42:06 2012
@@ -201,7 +201,7 @@ public class EasyAntReport {
     /**
      * Returns the imported module indicated by the passed parameter.
      * 
-     * The method attempts to match either the complete module id
+     * The method attempts to match either the complete module id, module name
      * or the module alias as specified in the build module.
      * 
      * @param module
@@ -220,6 +220,9 @@ public class EasyAntReport {
             if(moduleRep.moduleMrid.startsWith(module)) {
                 retVal = moduleRep;
                 break;
+            } else if (module.equals(moduleRep.getModule())) {
+                retVal = moduleRep;
+                break;
             } else if(moduleRep.as != null && moduleRep.as.equals(module)) {
                 retVal = moduleRep;
                 break;