incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1431674 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java
Date Thu, 10 Jan 2013 21:45:39 GMT
Author: jlboudart
Date: Thu Jan 10 21:45:39 2013
New Revision: 1431674

URL: http://svn.apache.org/viewvc?rev=1431674&view=rev
Log:
Handle null description on parameters in describe man command

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java?rev=1431674&r1=1431673&r2=1431674&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java (original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/man/Describe.java Thu Jan
10 21:45:39 2013
@@ -96,7 +96,8 @@ public class Describe extends EasyantOpt
         if (parameter != null) {
             getProject().log("\tName: " + target);
             getProject().log("\t\tType: " + parameter.getType());
-            getProject().log("\t\tDescription: " + parameter.getDescription());
+            getProject().log(
+                    "\t\tDescription: " + (parameter.getDescription() == null ? NONE : parameter.getDescription()));
             getProject().log("\t\tRequired: " + parameter.isRequired());
             if (parameter.getOwningTarget() != null) {
                 getProject().log("\t\tDefined in: " + parameter.getOwningTarget());



Mime
View raw message