maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r672247 - /maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
Date Fri, 27 Jun 2008 11:39:17 GMT
Author: vsiveton
Date: Fri Jun 27 04:39:17 2008
New Revision: 672247

URL: http://svn.apache.org/viewvc?rev=672247&view=rev
Log:
MDOAP-9: Support more DOAP resource like wikis

o added writeWiki()

Modified:
    maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java

Modified: maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java?rev=672247&r1=672246&r2=672247&view=diff
==============================================================================
--- maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
(original)
+++ maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
Fri Jun 27 04:39:17 2008
@@ -248,6 +248,9 @@
         // screenshots
         writeScreenshots( writer );
 
+        // wiki
+        writeWiki( writer );
+
         // Releases
         writeReleases( writer );
 
@@ -513,6 +516,25 @@
     }
 
     /**
+     * Write DOAP wiki.
+     *
+     * @param writer
+     * @see <a href="http://usefulinc.com/ns/doap#wiki">http://usefulinc.com/ns/doap#wiki</a>
+     */
+    private void writeWiki( XMLWriter writer )
+    {
+        if ( StringUtils.isEmpty( doapOptions.getWiki() ) )
+        {
+            return;
+        }
+
+        XmlWriterUtil.writeLineBreak( writer );
+        XmlWriterUtil.writeCommentText( writer, "URL of Wiki for collaborative discussion
of project.", 2 );
+        // http://usefulinc.com/ns/doap#wiki
+        DoapUtil.writeRdfResourceElement( writer, "wiki", doapOptions.getWiki() );
+    }
+
+    /**
      * Write DOAP licenses.
      *
      * @param writer



Mime
View raw message