Author: brett
Date: Tue Jul  4 20:50:11 2006
New Revision: 419153

URL: http://svn.apache.org/viewvc?rev=419153&view=rev
Log:
remove index.xml generation as that is in the plugin-plugin now

Modified:
    
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java

Modified: 
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
URL: 
http://svn.apache.org/viewvc/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java?rev=419153&r1=419152&r2=419153&view=diff
==============================================================================
--- 
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
 (original)
+++ 
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
 Tue Jul  4 20:50:11 2006
@@ -40,8 +40,6 @@
     public void execute( File destinationDirectory, PluginDescriptor 
pluginDescriptor )
         throws IOException
     {
-        writeOverview( destinationDirectory, pluginDescriptor );
-
         for ( Iterator it = pluginDescriptor.getMojos().iterator(); 
it.hasNext(); )
         {
             MojoDescriptor descriptor = (MojoDescriptor) it.next();
@@ -70,162 +68,6 @@
     private String getMojoFilename( MojoDescriptor mojo, String ext )
     {
         return mojo.getGoal() + "-mojo." + ext;
-    }
-
-    private void writeOverview( File destinationDirectory, PluginDescriptor 
pluginDescriptor )
-        throws IOException
-    {
-        FileWriter writer = null;
-        try
-        {
-            writer = new FileWriter( new File( destinationDirectory, 
"index.xml" ) );
-
-            writeOverview( writer, pluginDescriptor );
-
-            writer.flush();
-        }
-        finally
-        {
-            IOUtil.close( writer );
-        }
-    }
-
-    private void writeOverview( FileWriter writer, PluginDescriptor 
pluginDescriptor )
-    {
-        XMLWriter w = new PrettyPrintXMLWriter( writer );
-
-        w.startElement( "document" );
-
-        // 
----------------------------------------------------------------------
-        //
-        // 
----------------------------------------------------------------------
-
-        w.startElement( "properties" );
-
-        w.startElement( "title" );
-
-        // TODO: need a friendly name for a plugin
-        w.writeText( pluginDescriptor.getArtifactId() + " - Overview" );
-
-        w.endElement();
-
-        w.endElement();
-
-        // 
----------------------------------------------------------------------
-        //
-        // 
----------------------------------------------------------------------
-
-        w.startElement( "body" );
-
-        w.startElement( "section" );
-
-        // TODO: need a friendly name for a plugin
-        w.addAttribute( "name", pluginDescriptor.getArtifactId() );
-
-        // TODO: description of plugin, examples?
-
-        w.startElement( "p" );
-
-        w.writeText( "Goals available: " );
-
-        w.endElement();
-
-        writeGoalTable( pluginDescriptor, w );
-
-        w.endElement();
-
-        w.endElement();
-    }
-
-    private void writeGoalTable( PluginDescriptor pluginDescriptor, XMLWriter 
w )
-    {
-        w.startElement( "table" );
-
-        w.startElement( "tr" );
-
-        w.startElement( "th" );
-
-        w.writeText( "Goal" );
-
-        w.endElement();
-
-        w.startElement( "th" );
-
-        w.writeText( "Description" );
-
-        w.endElement();
-
-        w.endElement();
-
-        List mojos = pluginDescriptor.getMojos();
-
-        if ( mojos != null )
-        {
-            for ( Iterator i = mojos.iterator(); i.hasNext(); )
-            {
-                MojoDescriptor mojo = (MojoDescriptor) i.next();
-
-                w.startElement( "tr" );
-
-                // 
----------------------------------------------------------------------
-                //
-                // 
----------------------------------------------------------------------
-
-                w.startElement( "td" );
-
-                String paramName = mojo.getFullGoalName();
-
-                w.startElement( "a" );
-
-                w.addAttribute( "href", getMojoFilename( mojo, "html" ) );
-
-                w.startElement( "code" );
-
-                w.writeText( paramName );
-
-                w.endElement();
-
-                w.endElement();
-
-                w.endElement();
-
-                // 
----------------------------------------------------------------------
-                //
-                // 
----------------------------------------------------------------------
-
-                w.startElement( "td" );
-
-                if ( StringUtils.isNotEmpty( mojo.getDescription() ) )
-                {
-                    w.writeMarkup( mojo.getDescription() );
-                }
-                else
-                {
-                    w.writeText( "No description." );
-                }
-
-                String deprecationWarning = mojo.getDeprecated();
-                if ( deprecationWarning != null )
-                {
-                    w.writeMarkup( "<br/><b>Deprecated:</b> " );
-                    w.writeMarkup( deprecationWarning );
-                    if ( deprecationWarning.length() == 0 )
-                    {
-                        w.writeText( "No reason given." );
-                    }
-
-                    w.endElement();
-                }
-
-                w.endElement();
-
-                w.endElement();
-            }
-        }
-
-        w.endElement();
-
-        w.endElement();
     }
 
     private void writeBody( FileWriter writer, MojoDescriptor mojoDescriptor )


Reply via email to