You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jl...@apache.org on 2013/10/03 20:36:17 UTC

svn commit: r1528964 - /ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java

Author: jlboudart
Date: Thu Oct  3 18:36:16 2013
New Revision: 1528964

URL: http://svn.apache.org/r1528964
Log:
Add some javadoc on installMultiModuleLogger method

Modified:
    ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java

Modified: ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java
URL: http://svn.apache.org/viewvc/ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java?rev=1528964&r1=1528963&r2=1528964&view=diff
==============================================================================
--- ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java (original)
+++ ant/easyant/core/trunk/src/main/java/org/apache/easyant/core/ant/ProjectUtils.java Thu Oct  3 18:36:16 2013
@@ -118,12 +118,19 @@ public class ProjectUtils {
 
     }
 
+    /**
+     * Install multi module logger Multi module logger specified through {@link EasyAntMagicNames}.MULTIMODULE_LOGGER
+     * property. If this property is not set use default implementation
+     * 
+     * @param project
+     *            a given project where multi module logger should be installed
+     */
     public static void installMultiModuleLogger(Project project) {
-        String multiModuleLoggerName = project.getProperty(EasyAntMagicNames.MULTIMODULE_LOGGER);
-        if (multiModuleLoggerName == null) {
-            multiModuleLoggerName = MultiModuleLogger.class.getCanonicalName();
+        String multiModuleLoggerClassName = project.getProperty(EasyAntMagicNames.MULTIMODULE_LOGGER);
+        if (multiModuleLoggerClassName == null) {
+            multiModuleLoggerClassName = MultiModuleLogger.class.getCanonicalName();
         }
-        BuildLogger buildLogger = (BuildLogger) ClasspathUtils.newInstance(multiModuleLoggerName,
+        BuildLogger buildLogger = (BuildLogger) ClasspathUtils.newInstance(multiModuleLoggerClassName,
                 EasyAntEngine.class.getClassLoader(), BuildLogger.class);
         replaceMainLogger(project, buildLogger);
     }