You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2008/08/23 20:14:09 UTC

svn commit: r688388 - in /james/mailet/maven-mailetdocs-plugin/trunk: ./ src/main/java/org/apache/james/mailet/MailetdocsMojo.java

Author: bago
Date: Sat Aug 23 11:14:09 2008
New Revision: 688388

URL: http://svn.apache.org/viewvc?rev=688388&view=rev
Log:
Fix a documentatin issue for Matchers (getMatcherInfo was not correctly reported).
Add target to svnignore.

Modified:
    james/mailet/maven-mailetdocs-plugin/trunk/   (props changed)
    james/mailet/maven-mailetdocs-plugin/trunk/src/main/java/org/apache/james/mailet/MailetdocsMojo.java

Propchange: james/mailet/maven-mailetdocs-plugin/trunk/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Aug 23 11:14:09 2008
@@ -0,0 +1 @@
+target

Modified: james/mailet/maven-mailetdocs-plugin/trunk/src/main/java/org/apache/james/mailet/MailetdocsMojo.java
URL: http://svn.apache.org/viewvc/james/mailet/maven-mailetdocs-plugin/trunk/src/main/java/org/apache/james/mailet/MailetdocsMojo.java?rev=688388&r1=688387&r2=688388&view=diff
==============================================================================
--- james/mailet/maven-mailetdocs-plugin/trunk/src/main/java/org/apache/james/mailet/MailetdocsMojo.java (original)
+++ james/mailet/maven-mailetdocs-plugin/trunk/src/main/java/org/apache/james/mailet/MailetdocsMojo.java Sat Aug 23 11:14:09 2008
@@ -194,18 +194,21 @@
             getSink().sectionTitle2_();
 
             getSink().paragraph();
-            if (((MailetMatcherDescriptor) descriptors.get(i)).getType() == MailetMatcherDescriptor.TYPE_MAILET) {
-                getSink().text("Mailet Info: ");
-            } else if (((MailetMatcherDescriptor) descriptors.get(i)).getType() == MailetMatcherDescriptor.TYPE_MAILET) {
-                getSink().text("Matcher Info: ");
-            } else {
-                getSink().text("Info: ");
+            
+            if (((MailetMatcherDescriptor) descriptors.get(i)).getInfo() != null) {
+	            if (((MailetMatcherDescriptor) descriptors.get(i)).getType() == MailetMatcherDescriptor.TYPE_MAILET) {
+	                getSink().text("Mailet Info: ");
+	            } else if (((MailetMatcherDescriptor) descriptors.get(i)).getType() == MailetMatcherDescriptor.TYPE_MATCHER) {
+	                getSink().text("Matcher Info: ");
+	            } else {
+	                getSink().text("Info: ");
+	            }
+	            getSink().bold();
+	            getSink().text(
+	                    ((MailetMatcherDescriptor) descriptors.get(i)).getInfo());
+	            getSink().bold_();
+	            getSink().paragraph_();
             }
-            getSink().bold();
-            getSink().text(
-                    ((MailetMatcherDescriptor) descriptors.get(i)).getInfo());
-            getSink().bold_();
-            getSink().paragraph_();
 
             getSink().paragraph();
             getSink().rawText(



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org