You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2005/07/11 16:23:55 UTC
svn commit: r210140 - in
/maven/components/trunk/maven-reports/maven-javadoc-plugin: ./
src/main/java/org/apache/maven/plugin/javadoc/ src/main/resources/org/
src/main/resources/org/apache/ src/main/resources/org/apache/maven/
src/main/resources/org/ap...
Author: evenisse
Date: Mon Jul 11 07:23:53 2005
New Revision: 210140
URL: http://svn.apache.org/viewcvs?rev=210140&view=rev
Log:
[MNG-561]. Adding more options for the javadoc plugin.
Added:
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java (with props)
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java (with props)
Modified:
maven/components/trunk/maven-reports/maven-javadoc-plugin/ (props changed)
maven/components/trunk/maven-reports/maven-javadoc-plugin/pom.xml
maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Jul 11 07:23:53 2005
@@ -2,3 +2,5 @@
*.iml
*.ipr
*.iws
+.project
+.classpath
Modified: maven/components/trunk/maven-reports/maven-javadoc-plugin/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/pom.xml?rev=210140&r1=210139&r2=210140&view=diff
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/pom.xml (original)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/pom.xml Mon Jul 11 07:23:53 2005
@@ -1,23 +1,39 @@
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-report-parent</artifactId>
- <version>2.0-beta-1-SNAPSHOT</version>
- </parent>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.0-alpha-2-SNAPSHOT</version>
- <packaging>maven-plugin</packaging>
- <name>Maven Javadoc Plugin</name>
- <developers>
- <developer>
- <id>evenisse</id>
- <name>Emmanuel Venisse</name>
- <email>evenisse@apache.org</email>
- <organization>Apache Software Foundation</organization>
- <roles>
- <role>Creator</role>
- </roles>
- </developer>
- </developers>
-</project>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-report-parent</artifactId>
+ <version>2.0-beta-1-SNAPSHOT</version>
+ </parent>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.0-alpha-2-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+ <name>Maven Javadoc Plugin</name>
+ <dependencies>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.1</version>
+ </dependency>
+ </dependencies>
+ <developers>
+ <developer>
+ <id>evenisse</id>
+ <name>Emmanuel Venisse</name>
+ <email>evenisse@apache.org</email>
+ <organization>Apache Software Foundation</organization>
+ <roles>
+ <role>Creator</role>
+ </roles>
+ </developer>
+ <developer>
+ <id>vsiveton</id>
+ <name>Vincent Siveton</name>
+ <email>vsiveton@apache.org</email>
+ <organization>Apache Software Foundation</organization>
+ <roles>
+ <role>Java Developer</role>
+ </roles>
+ </developer>
+ </developers>
+</project>
Modified: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java?rev=210140&r1=210139&r2=210140&view=diff
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java (original)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java Mon Jul 11 07:23:53 2005
@@ -1,230 +1,925 @@
-package org.apache.maven.plugin.javadoc;
-
-/*
- * Copyright 2004-2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import java.io.File;
-import java.util.Calendar;
-import java.util.Iterator;
-import java.util.Locale;
-
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.reporting.AbstractMavenReport;
-import org.apache.maven.reporting.MavenReportException;
-import org.apache.maven.model.Model;
-import org.codehaus.doxia.sink.Sink;
-import org.codehaus.doxia.site.renderer.SiteRenderer;
-import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.cli.CommandLineUtils;
-import org.codehaus.plexus.util.cli.Commandline;
-import org.codehaus.plexus.util.cli.DefaultConsumer;
-
-/**
- * @goal javadoc
- *
- * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
- * @version $Id: DependenciesReport.java,v 1.2 2005/02/23 00:08:02 brett Exp $
- */
-public class JavadocReport
- extends AbstractMavenReport
-{
- /**
- * @parameter expression="${project.build.directory}/site"
- * @required
- */
- private String outputDirectory;
-
- /**
- * @parameter expression="${component.org.codehaus.doxia.site.renderer.SiteRenderer}"
- * @required
- * @readonly
- */
- private SiteRenderer siteRenderer;
-
- /**
- * @parameter expression="${project}"
- * @required
- * @readonly
- */
- private MavenProject project;
-
- /**
- * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale)
- */
- public String getName( Locale locale )
- {
- return "JavaDocs";
- }
-
- /**
- * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale)
- */
- public String getDescription( Locale locale )
- {
- return "JavaDoc API documentation.";
- }
-
- /**
- * @see org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory()
- */
- protected String getOutputDirectory()
- {
- return outputDirectory;
- }
-
- /**
- * @see org.apache.maven.reporting.AbstractMavenReport#getProject()
- */
- protected MavenProject getProject()
- {
- return project;
- }
-
- /**
- * @see org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
- */
- protected SiteRenderer getSiteRenderer()
- {
- return siteRenderer;
- }
-
- /**
- * @see org.apache.maven.reporting.MavenReport#generate(org.codehaus.doxia.sink.Sink, java.util.Locale)
- */
- public void generate( Sink sink, Locale locale )
- throws MavenReportException
- {
- executeReport( locale);
- }
-
- /**
- * @see org.apache.maven.reporting.AbstractMavenReport#executeReport(java.util.Locale)
- */
- protected void executeReport( Locale locale )
- throws MavenReportException
- {
- try
- {
- File outputDir = new File( getReportOutputDirectory().getAbsolutePath() + "/apidocs" );
- outputDir.mkdirs();
-
- int actualYear = Calendar.getInstance().get( Calendar.YEAR );
- String year;
- Model model = getProject().getModel();
- if ( model.getInceptionYear() != null
- && Integer.valueOf( model.getInceptionYear() ).intValue() == actualYear )
- {
- year = model.getInceptionYear();
- }
- else
- {
- year = model.getInceptionYear() + "-" + String.valueOf( actualYear );
- }
-
- StringBuffer classpath = new StringBuffer();
- for ( Iterator i = getProject().getCompileClasspathElements().iterator(); i.hasNext(); )
- {
- classpath.append( (String) i.next() );
- if ( i.hasNext() )
- {
- classpath.append( ";" );
- }
- }
-
- StringBuffer sourcePath = new StringBuffer();
- String[] fileList = new String[1];
- for ( Iterator i = getProject().getCompileSourceRoots().iterator(); i.hasNext(); )
- {
- String sourceDirectory = (String) i.next();
- fileList = FileUtils.getFilesFromExtension( sourceDirectory, new String[] { "java" } );
- sourcePath.append( sourceDirectory );
- }
-
- File javadocDirectory = new File( getProject().getBuild().getDirectory() + "/javadoc" );
- if ( fileList != null && fileList.length != 0 )
- {
- StringBuffer files = new StringBuffer();
- for ( int i = 0; i < fileList.length; i++ )
- {
- files.append( fileList[i] );
- files.append( "\n" );
- }
- javadocDirectory.mkdirs();
- FileUtils.fileWrite( new File( javadocDirectory, "files" ).getAbsolutePath(), files.toString() );
- }
- else
- {
- return;
- }
-
- Commandline cl = new Commandline();
- cl.setWorkingDirectory( javadocDirectory.getAbsolutePath() );
- cl.setExecutable( getJavadocPath() );
- cl.createArgument().setValue( "-use" );
- cl.createArgument().setValue( "-version" );
- cl.createArgument().setValue( "-author" );
- cl.createArgument().setValue( "-windowtitle" );
- cl.createArgument().setValue(
- model.getName() + " "
- + model.getVersion() );
- cl.createArgument().setValue( "-bottom" );
- cl.createArgument().setValue( "Copyright © " + year + " "
- + model.getOrganization().getName()
- + ". All Rights Reserved." );
- cl.createArgument().setValue( "-sourcePath" );
- cl.createArgument().setValue( sourcePath.toString() );
- cl.createArgument().setValue( "-d" );
- cl.createArgument().setValue( outputDir.getAbsolutePath() );
- cl.createArgument().setValue( "-classpath" );
- cl.createArgument().setValue( classpath.toString() );
- cl.createArgument().setValue( "@files" );
- System.out.println( getJavadocPath() );
- System.out.println( Commandline.toString( cl.getCommandline() ) );
- System.out.println( cl.getWorkingDirectory() );
- int exitCode = CommandLineUtils.executeCommandLine( cl, new DefaultConsumer(), new DefaultConsumer() );
- if ( exitCode != 0 )
- {
- throw new MavenReportException( "exit code: " + exitCode );
- }
- }
- catch ( Exception e )
- {
- throw new MavenReportException( "An error is occurred in javadoc report generation.", e );
- }
- }
-
- /**
- * @see org.apache.maven.reporting.MavenReport#getOutputName()
- */
- public String getOutputName()
- {
- return "apidocs/index";
- }
-
- /**
- * Return path of javadoc tool.
- *
- * @return path of javadoc tool
- */
- private String getJavadocPath()
- {
- // TODO: this could probably be improved/configured
- // TODO: doesn't work with spaces in java.home
- String fileSeparator = System.getProperty( "file.separator" );
- File f = new File( System.getProperty( "java.home" ), "../bin/javadoc" );
- return f.getAbsolutePath();
- }
-}
+package org.apache.maven.plugin.javadoc;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Calendar;
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.StringTokenizer;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.commons.lang.SystemUtils;
+import org.apache.commons.lang.math.NumberUtils;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.reporting.AbstractMavenReport;
+import org.apache.maven.reporting.MavenReportException;
+import org.apache.maven.model.Model;
+import org.codehaus.doxia.sink.Sink;
+import org.codehaus.doxia.site.renderer.SiteRenderer;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.cli.CommandLineUtils;
+import org.codehaus.plexus.util.cli.Commandline;
+import org.codehaus.plexus.util.cli.DefaultConsumer;
+
+/**
+ * This class provides the Javadoc report support.
+ *
+ * @goal javadoc
+ *
+ * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ *
+ * @version $Id: DependenciesReport.java,v 1.2 2005/02/23 00:08:02 brett Exp $
+ *
+ * @see <a href="http://java.sun.com/j2se/javadoc/">Javadoc Tool</a>
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#options">Javadoc Options </a>
+ */
+public class JavadocReport
+ extends AbstractMavenReport
+{
+ /** Default organization name */
+ private static final String DEFAULT_ORGANIZATION_NAME = "The Apache Software Foundation";
+
+ /** Default location for css */
+ private static final String DEFAULT_STYLESHEET_LOCATION = "org/apache/maven/plugin/javadoc/css/stylesheet.css";
+
+ /**
+ * @parameter expression="${project.build.directory}/site"
+ * @required
+ */
+ private String outputDirectory;
+
+ /**
+ * @parameter expression="${component.org.codehaus.doxia.site.renderer.SiteRenderer}"
+ * @required
+ * @readonly
+ */
+ private SiteRenderer siteRenderer;
+
+ /**
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ private MavenProject project;
+
+ // JavaDoc Options
+ // @see http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#options
+ /**
+ * Set an additional parameter on the command line
+ *
+ * @parameter expression="${additionalparam}"
+ */
+ private String additionalparam;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#breakiterator">breakiterator</a>
+ *
+ * @parameter expression="${breakiterator}"
+ */
+ private boolean breakiterator = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#doclet">doclet</a>
+ *
+ * @parameter expression="${doclet}"
+ */
+ private String doclet;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docletpath">docletpath</a>
+ *
+ * @parameter expression="${docletPath}"
+ */
+ private String docletPath;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#encoding">encoding</a>
+ *
+ * @parameter expression="${encoding}"
+ */
+ private String encoding;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#exclude">exclude</a>
+ *
+ * @parameter expression="${excludePackageNames}"
+ */
+ private String excludePackageNames;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#extdirs">extdirs</a>
+ *
+ * @parameter expression="${extdirs}"
+ */
+ private String extdirs;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#locale">locale</a>
+ *
+ * @parameter expression="${locale}"
+ */
+ private String locale;
+
+ /**
+ * Set the maximum memory to be used by the javadoc process
+ *
+ * @parameter expression="${maxmemory}"
+ */
+ private String maxmemory;
+
+ /**
+ * Set the minimum memory to be used by the javadoc process
+ *
+ * @parameter expression="${minmemory}"
+ */
+ private String minmemory;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#1.1">1.1</a>
+ *
+ * @parameter expression="${old}"
+ */
+ private boolean old = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#overview">overview</a>
+ *
+ * @parameter expression="${overview}"
+ */
+ private String overview;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#package">package</a>
+ *
+ * @parameter expression="${package}"
+ */
+ private boolean package_ = true;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#private">private</a>
+ *
+ * @parameter expression="${private}"
+ */
+ private boolean private_ = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#protected">protected</a>
+ *
+ * @parameter expression="${protected}"
+ */
+ private boolean protected_ = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#public">public</a>
+ *
+ * @parameter expression="${public}"
+ */
+ private boolean public_ = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#quiet">quiet</a>
+ *
+ * @parameter expression="${quiet}"
+ */
+ private boolean quiet = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#source">source</a>
+ *
+ * @parameter expression="${source}"
+ */
+ private String source;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#verbose">verbose</a>
+ *
+ * @parameter expression="${verbose}"
+ */
+ private boolean verbose = false;
+
+ // Options Provided by the Standard Doclet
+ // @see http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#standard
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#author">author</a>
+ *
+ * @parameter expression="${author}"
+ */
+ private boolean author = true;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#bottom">bottom</a>
+ *
+ * @parameter expression="${bottom}"
+ */
+ private String bottom;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#charset">charset</a>
+ *
+ * @parameter expression="${charset}"
+ */
+ private String charset = "ISO-8859-1";
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#d">d</a>
+ *
+ * @parameter expression="${destDir}"
+ */
+ private String destDir;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docfilessubdirs">docfilessubdirs</a>
+ *
+ * @parameter expression="${docfilessubdirs}"
+ */
+ private boolean docfilessubdirs = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docencoding">docencoding</a>
+ *
+ * @parameter expression="${docencoding}"
+ */
+ private String docencoding;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#doctitle">doctitle</a>
+ *
+ * @parameter expression="${doctitle}"
+ */
+ private String doctitle;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#excludedocfilessubdir">excludedocfilessubdir</a>
+ *
+ * @parameter expression="${excludedocfilessubdir}"
+ */
+ private String excludedocfilessubdir;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#footer">footer</a>
+ *
+ * @parameter expression="${footer}"
+ */
+ private String footer;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#group">group</a>
+ *
+ * @parameter expression="${group}"
+ */
+ private String group;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#header">header</a>
+ *
+ * @parameter expression="${header}"
+ */
+ private String header;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#helpfile">helpfile</a>
+ *
+ * @parameter expression="${helpfile}"
+ */
+ private String helpfile;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#link">link</a>
+ *
+ * @parameter expression="${link}"
+ */
+ private String link;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#linkoffline">linkoffline</a>
+ *
+ * @parameter expression="${linkoffline}"
+ */
+ private String linkoffline;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#linksource">linksource</a>
+ *
+ * @parameter expression="${linksource}"
+ */
+ private boolean linksource = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#linksource">nodeprecated</a>
+ *
+ * @parameter expression="${nodeprecated}"
+ */
+ private boolean nodeprecated = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nocomment">nocomment</a>
+ *
+ * @parameter expression="${nocomment}"
+ */
+ private boolean nocomment = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nodeprecatedlist">nodeprecatedlist</a>
+ *
+ * @parameter expression="${nodeprecatedlist}"
+ */
+ private boolean nodeprecatedlist = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nohelp">nohelp</a>
+ *
+ * @parameter expression="${nohelp}"
+ */
+ private boolean nohelp = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#noindex">noindex</a>
+ *
+ * @parameter expression="${noindex}"
+ */
+ private boolean noindex = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nonavbar">nonavbar</a>
+ *
+ * @parameter expression="${nonavbar}"
+ */
+ private boolean nonavbar = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#noqualifier">noqualifier</a>
+ *
+ * @parameter expression="${noqualifier}"
+ */
+ private String noqualifier;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nosince">nosince</a>
+ *
+ * @parameter expression="${nosince}"
+ */
+ private boolean nosince = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#notree">notree</a>
+ *
+ * @parameter expression="${notree}"
+ */
+ private boolean notree = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#serialwarn">serialwarn</a>
+ *
+ * @parameter expression="${serialwarn}"
+ */
+ private boolean serialwarn = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#splitindex">splitindex</a>
+ *
+ * @parameter expression="${splitindex}"
+ */
+ private boolean splitindex = false;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#stylesheetfile">stylesheetfile</a>
+ *
+ * @parameter expression="${stylesheetfile}"
+ */
+ private String stylesheetfile;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#tag">tag</a>
+ *
+ * @parameter expression="${tag}"
+ */
+ private String tag;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#taglet">taglet</a>
+ *
+ * @parameter expression="${taglet}"
+ */
+ private String taglet;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#tagletpath">tagletpath</a>
+ *
+ * @parameter expression="${tagletpath}"
+ */
+ private String tagletpath;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#use">use</a>
+ *
+ * @parameter expression="${use}"
+ */
+ private boolean use = true;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#version">version</a>
+ *
+ * @parameter expression="${version}"
+ */
+ private boolean version = true;
+
+ /**
+ * @see <a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#windowtitle">windowtitle</a>
+ *
+ * @parameter expression="${windowtitle}"
+ */
+ private String windowtitle;
+ // End JavaDoc parameters
+
+ /** The command line built to execute Javadoc. */
+ private Commandline cmd = new Commandline();
+
+ /**
+ * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale)
+ */
+ public String getName( Locale locale )
+ {
+ return "JavaDocs";
+ }
+
+ /**
+ * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale)
+ */
+ public String getDescription( Locale locale )
+ {
+ // TODO i18n
+ return "JavaDoc API documentation.";
+ }
+
+ /**
+ * @see org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory()
+ */
+ protected String getOutputDirectory()
+ {
+ return outputDirectory;
+ }
+
+ /**
+ * @see org.apache.maven.reporting.AbstractMavenReport#getProject()
+ */
+ protected MavenProject getProject()
+ {
+ return project;
+ }
+
+ /**
+ * @see org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()
+ */
+ protected SiteRenderer getSiteRenderer()
+ {
+ return siteRenderer;
+ }
+
+ /**
+ * @see org.apache.maven.reporting.MavenReport#generate(org.codehaus.doxia.sink.Sink, java.util.Locale)
+ */
+ public void generate( Sink sink, Locale locale )
+ throws MavenReportException
+ {
+ executeReport( locale );
+ }
+
+ /**
+ * @see org.apache.maven.reporting.AbstractMavenReport#executeReport(java.util.Locale)
+ */
+ protected void executeReport( Locale locale )
+ throws MavenReportException
+ {
+ try
+ {
+ File outputDir = new File( getReportOutputDirectory().getAbsolutePath() + "/apidocs" );
+ outputDir.mkdirs();
+
+ int actualYear = Calendar.getInstance().get( Calendar.YEAR );
+ String year = String.valueOf( actualYear );
+
+ Model model = getProject().getModel();
+ if ( model.getInceptionYear() != null )
+ {
+ if ( StringUtils.isNumeric( model.getInceptionYear() ) )
+ {
+ if ( Integer.valueOf( model.getInceptionYear() ).intValue() != actualYear )
+ {
+ year = model.getInceptionYear() + "-" + String.valueOf( actualYear );
+ }
+ }
+ else
+ {
+ getLog().warn( "The inception year is not a valid year." );
+ }
+ }
+
+ StringBuffer classpath = new StringBuffer();
+ for ( Iterator i = getProject().getCompileClasspathElements().iterator(); i.hasNext(); )
+ {
+ classpath.append( (String) i.next() );
+ if ( i.hasNext() )
+ {
+ classpath.append( ";" );
+ }
+ }
+
+ StringBuffer sourcePath = new StringBuffer();
+ String[] fileList = new String[1];
+ for ( Iterator i = getProject().getCompileSourceRoots().iterator(); i.hasNext(); )
+ {
+ String sourceDirectory = (String) i.next();
+ fileList = FileUtils.getFilesFromExtension( sourceDirectory, new String[] { "java" } );
+ sourcePath.append( sourceDirectory );
+ }
+
+ File javadocDirectory = new File( getProject().getBuild().getDirectory() + "/javadoc" );
+ if ( fileList != null && fileList.length != 0 )
+ {
+ StringBuffer files = new StringBuffer();
+ for ( int i = 0; i < fileList.length; i++ )
+ {
+ files.append( fileList[i] );
+ files.append( "\n" );
+ }
+ javadocDirectory.mkdirs();
+ FileUtils.fileWrite( new File( javadocDirectory, "files" ).getAbsolutePath(), files.toString() );
+ }
+ else
+ {
+ return;
+ }
+
+ // Copy default style sheet
+ copyDefaultStylesheet( javadocDirectory );
+
+ this.cmd.setWorkingDirectory( javadocDirectory.getAbsolutePath() );
+ this.cmd.setExecutable( getJavadocPath() );
+
+ // General javadoc arguments
+ addArgIf( this.breakiterator, "-breakiterator", 1.4f );
+ if ( !StringUtils.isEmpty( this.doclet ) )
+ {
+ addArgIfNotEmpty( "-doclet", this.doclet );
+ addArgIfNotEmpty( "-docletPath", this.docletPath );
+ }
+ addArgIfNotEmpty( "-encoding", this.encoding );
+ addArgIfNotEmpty( "-extdirs", this.extdirs );
+ addArgIfNotEmpty( "-exclude", this.excludePackageNames, 1.4f );
+ addArgIfNotEmpty( "-locale", this.locale );
+ if ( !StringUtils.isEmpty( this.maxmemory ) )
+ {
+ // Allow '128' or '128m'
+ if ( NumberUtils.isDigits( this.maxmemory ) )
+ {
+ addArgIf( true, "-J-Xmx" + this.maxmemory + "m" );
+ }
+ else
+ {
+ if ( ( NumberUtils.isDigits( this.maxmemory.substring( 0, this.maxmemory.length() - 1) ) )
+ && ( this.maxmemory.toLowerCase().endsWith( "m" ) ) )
+ {
+
+ addArgIf( true, "-J-Xmx" + this.maxmemory );
+ }
+ else
+ {
+ getLog().error( "The maxmemory '" + this.maxmemory + "' is not a valid number. Ignore this option." );
+ }
+ }
+ }
+ if ( !StringUtils.isEmpty( this.minmemory ) )
+ {
+ // Allow '128' or '128m'
+ if ( NumberUtils.isDigits( this.minmemory ) )
+ {
+ addArgIf( true, "-J-Xms" + this.minmemory + "m" );
+ }
+ else
+ {
+ if ( ( NumberUtils.isDigits( this.minmemory.substring( 0, this.minmemory.length() - 1) ) )
+ && ( this.minmemory.toLowerCase().endsWith( "m" ) ) )
+ {
+
+ addArgIf( true, "-J-Xms" + this.minmemory );
+ }
+ else
+ {
+ getLog().error( "The minmemory '" + this.minmemory + "' is not a valid number. Ignore this option." );
+ }
+ }
+ }
+ if ( this.old && SystemUtils.isJavaVersionAtLeast( 1.4f ) )
+ {
+ getLog().warn( "Javadoc 1.4 doesn't support the -1.1 switch anymore. Ignore this option." );
+ }
+ else
+ {
+ addArgIf( this.old, "-1.1" );
+ }
+ addArgIfNotEmpty( "-overview", this.overview );
+ addArgIf( this.package_, "-package" );
+ addArgIf( this.private_, "-private" );
+ addArgIf( this.protected_, "-protected" );
+ addArgIf( this.public_, "-public" );
+ addArgIf( this.quiet, "-quiet", 1.4f );
+ addArgIfNotEmpty( "-source", this.source, 1.4f );
+ addArgIf( this.verbose, "-verbose" );
+ addArgIfNotEmpty( "-additionalparam", this.additionalparam );
+
+ addArgIfNotEmpty( "-sourcePath", sourcePath.toString() );
+ addArgIfNotEmpty( "-classpath", classpath.toString() );
+
+ // javadoc arguments for default doclet
+ if ( StringUtils.isEmpty( this.doclet ) )
+ {
+ // Specify default values
+ if ( StringUtils.isEmpty( this.bottom ) )
+ {
+ this.bottom = "Copyright © " + year + " ";
+
+ if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) )
+ {
+ this.bottom += model.getOrganization().getName();
+ }
+ else
+ {
+ this.bottom += DEFAULT_ORGANIZATION_NAME;
+ }
+ this.bottom += ". All Rights Reserved.";
+ }
+ if ( StringUtils.isEmpty( this.destDir ) )
+ {
+ this.destDir = outputDir.getAbsolutePath();
+ }
+ if ( StringUtils.isEmpty( this.stylesheetfile ) )
+ {
+ this.stylesheetfile = javadocDirectory + File.separator + DEFAULT_STYLESHEET_LOCATION;
+ }
+ if ( StringUtils.isEmpty( this.windowtitle ) )
+ {
+ this.windowtitle = ( model.getName() == null ? model.getArtifactId() : model.getName() ) + " "
+ + model.getVersion() + " API";
+ }
+ if ( StringUtils.isEmpty( this.doctitle ) )
+ {
+ this.doctitle = this.windowtitle;
+ }
+ // End Specify default values
+
+ addArgIf( this.author, "-author" );
+ addArgIfNotEmpty( "-bottom", this.bottom );
+ addArgIf( this.breakiterator, "-breakiterator", 1.4f );
+ addArgIfNotEmpty( "-charset", this.charset );
+ addArgIfNotEmpty( "-d", this.destDir );
+ addArgIf( this.docfilessubdirs, "-docfilessubdirs", 1.4f );
+ addArgIfNotEmpty( "-docencoding", this.docencoding );
+ addArgIfNotEmpty( "-doctitle", this.doctitle );
+ addArgIfNotEmpty( "-excludePackageNames", this.excludePackageNames );
+ addArgIfNotEmpty( "-excludedocfilessubdir", this.excludedocfilessubdir, 1.4f );
+ addArgIfNotEmpty( "-footer", this.footer );
+ addArgIfNotEmpty( "-group", this.group );
+ addArgIfNotEmpty( "-header", this.header );
+ addArgIfNotEmpty( "-helpfile", this.helpfile );
+ addArgIfNotEmpty( "-link", this.link );
+ addArgIfNotEmpty( "-linkoffline", this.linkoffline );
+ addArgIf( this.linksource, "-linksource", 1.4f );
+ addArgIf( this.nodeprecated, "-nodeprecated" );
+ addArgIf( this.nodeprecatedlist, "-nodeprecatedlist" );
+ addArgIf( this.nocomment, "-nocomment", 1.4f );
+ addArgIf( this.nohelp, "-nohelp" );
+ addArgIf( this.noindex, "-noindex" );
+ addArgIf( this.nonavbar, "-nonavbar" );
+ addArgIfNotEmpty( "-noqualifier", this.noqualifier, 1.4f );
+ addArgIf( this.nosince, "-nosince" );
+ addArgIf( this.notree, "-notree" );
+ addArgIf( this.serialwarn, "-serialwarn" );
+ addArgIf( this.splitindex, "-splitindex" );
+ addArgIfNotEmpty( "-stylesheetfile", this.stylesheetfile );
+ addArgIfNotEmpty( "-tag", this.tag, 1.4f );
+ addArgIfNotEmpty( "-taglet", this.taglet, 1.4f );
+ addArgIfNotEmpty( "-tagletpath", this.tagletpath, 1.4f );
+ addArgIf( this.use, "-use" );
+ addArgIf( this.version, "-version" );
+ addArgIfNotEmpty( "-windowtitle", this.windowtitle );
+ }
+
+ cmd.createArgument().setValue( "@files" );
+
+ getLog().info( Commandline.toString( cmd.getCommandline() ) );
+
+ final int exitCode = CommandLineUtils.executeCommandLine( cmd, new DefaultConsumer(), new DefaultConsumer() );
+ if ( exitCode != 0 )
+ {
+ throw new MavenReportException( "Exit code: " + exitCode );
+ }
+ }
+ catch ( Exception e )
+ {
+ getLog().debug( e );
+ throw new MavenReportException( "An error is occurred in javadoc report generation.", e );
+ }
+ }
+
+ /**
+ * @see org.apache.maven.reporting.MavenReport#getOutputName()
+ */
+ public String getOutputName()
+ {
+ return "apidocs/index";
+ }
+
+ /**
+ * Get the path of Javadoc tool depending the OS.
+ *
+ * @return the path of the Javadoc tool
+ */
+ private String getJavadocPath()
+ {
+ final String javadocCommand = "javadoc" + ( SystemUtils.IS_OS_WINDOWS ? ".exe" : "" );
+ // For IBM's JDK 1.2
+ final File javadocExe = ( SystemUtils.IS_OS_AIX ? new File( SystemUtils.getJavaHome() + "/../sh", javadocCommand )
+ : new File( SystemUtils.getJavaHome() + "/../bin", javadocCommand ) );
+
+ getLog().debug( "Javadoc executable=[" + javadocExe.getAbsolutePath() + "]" );
+
+ return javadocExe.getAbsolutePath();
+ }
+
+ /**
+ * Convenience method to add an argument to the <code>command line</code>
+ * conditionally based on the given flag.
+ *
+ * @param b
+ * the flag which controls if the argument is added or not.
+ * @param value
+ * the argument value to be added.
+ */
+ private void addArgIf( final boolean b, final String value )
+ {
+ if ( b )
+ {
+ this.cmd.createArgument().setValue( value );
+ }
+ }
+
+ /**
+ * Convenience method to add an argument to the <code>command line</code>
+ * regarding the requested Java version.
+ *
+ * @see #addArgIf(boolean, String)
+ * @see <a href="http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/SystemUtils.html#isJavaVersionAtLeast(float)">SystemUtils.html#isJavaVersionAtLeast(float)</a>
+ *
+ * @param b
+ * the flag which controls if the argument is added or not.
+ * @param value
+ * the argument value to be added.
+ * @param requiredJavaVersion
+ * the required Java version, for example 1.31f or 1.4f
+ */
+ private void addArgIf( final boolean b, final String value, final float requiredJavaVersion )
+ {
+ if ( SystemUtils.isJavaVersionAtLeast( requiredJavaVersion ) )
+ {
+ addArgIf( b, value );
+ }
+ else
+ {
+ getLog().warn( value + " option is not supported on Java version < " + requiredJavaVersion );
+ }
+ }
+
+ /**
+ * Convenience method to add an argument to the <code>command line</code>
+ * if the the value is not null or empty.
+ * <p>
+ * Moreover, the value could be comma separated.
+ *
+ * @param key
+ * the argument name.
+ * @param value
+ * the argument value to be added.
+ */
+ private void addArgIfNotEmpty( final String key, final String value )
+ {
+ if ( !StringUtils.isEmpty( value ) )
+ {
+ this.cmd.createArgument().setValue( key );
+
+ StringTokenizer token = new StringTokenizer( value, ",", false );
+ while ( token.hasMoreTokens() )
+ {
+ String current = token.nextToken().trim();
+ this.cmd.createArgument().setValue( current );
+ }
+ }
+ }
+
+ /**
+ * Convenience method to add an argument to the <code>command line</code>
+ * regarding the requested Java version.
+ *
+ * @see #addArgIfNotEmpty(String, String)
+ * @see <a href="http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/SystemUtils.html#isJavaVersionAtLeast(float)">SystemUtils.html#isJavaVersionAtLeast(float)</a>
+ *
+ * @param key
+ * the argument name.
+ * @param value
+ * the argument value to be added.
+ * @param requiredJavaVersion
+ * the required Java version, for example 1.31f or 1.4f
+ */
+ private void addArgIfNotEmpty( final String key, final String value, final float requiredJavaVersion )
+ {
+ if ( SystemUtils.isJavaVersionAtLeast( requiredJavaVersion ) )
+ {
+ addArgIfNotEmpty( key, value );
+ }
+ else
+ {
+ getLog().warn( key + " option is not supported on Java version < " + requiredJavaVersion );
+ }
+ }
+
+ /**
+ * Returns an input stream for reading the specified resource from the
+ * current class loader.
+ *
+ * @param resource
+ * the resource
+ * @return InputStream
+ * An input stream for reading the resource, or <tt>null</tt>
+ * if the resource could not be found
+ * @throws Exception
+ * if any
+ */
+ private static InputStream getStream( final String resource )
+ throws Exception
+ {
+ return JavadocReport.class.getClassLoader().getResourceAsStream( resource );
+ }
+
+ /**
+ * Convenience method that copy the <code>STYLESHEET_NAME</code> from the
+ * <code>RESOURCE_DIR</code> to a given outputDirectory.
+ *
+ * @see #DEFAULT_STYLESHEET_LOCATION
+ * @see #RESOURCE_DIR
+ *
+ * @param outputDirectory
+ * the output directory
+ * @throws Exception
+ * if any
+ */
+ private void copyDefaultStylesheet( final File outputDirectory )
+ throws Exception
+ {
+
+ if ( ( outputDirectory == null ) || ( !outputDirectory.exists() ) )
+ {
+ throw new IOException( "The outputDirectory " + outputDirectory + " doesn't exists." );
+ }
+
+ InputStream is = getStream( DEFAULT_STYLESHEET_LOCATION );
+
+ if ( is == null )
+ {
+ throw new IOException( "The resource " + DEFAULT_STYLESHEET_LOCATION + " doesn't exists." );
+ }
+
+ File outputFile = new File( outputDirectory, DEFAULT_STYLESHEET_LOCATION );
+
+ if ( !outputFile.getParentFile().exists() )
+ {
+ outputFile.getParentFile().mkdirs();
+ }
+
+ FileOutputStream w = new FileOutputStream( outputFile );
+
+ IOUtil.copy( is, w );
+
+ IOUtil.close( is );
+
+ IOUtil.close( w );
+ }
+}
\ No newline at end of file
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css Mon Jul 11 07:23:53 2005
@@ -0,0 +1,45 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+a:link, a:visited {
+ color: blue;
+ }
+
+a:active, a:hover, #leftcol a:active, #leftcol a:hover {
+ color: #f30 !important;
+ }
+
+a:link.selfref, a:visited.selfref {
+ color: #555 !important;
+ }
+
+.a td {
+ background: #ddd;
+ color: #000;
+ }
+
+/* Table colors */
+.TableHeadingColor { background: #036; color:#FFFFFF } /* Dark blue */
+.TableSubHeadingColor { background: #bbb; color:#fff } /* Dark grey */
+.TableRowColor { background: #efefef } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: normal; font-family: normal; color:#000000 }
+.FrameHeadingFont { font-size: normal; font-family: normal; color:#000000 }
+.FrameItemFont { font-size: normal; font-family: normal; color:#000000 }
+
+/* Example of smaller, sans-serif font in frames */
+/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#ddd;}/* Light mauve */
+.NavBarCell1Rev { background-color:#888;}/* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/main/resources/org/apache/maven/plugin/javadoc/css/stylesheet.css
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt Mon Jul 11 07:23:53 2005
@@ -0,0 +1,145 @@
+ ------
+ Configuring Javadoc Report
+ ------
+ Vincent Siveton
+ ------
+ 10 July 2005
+ ------
+
+
+Javadoc Plugin Configuration
+
+ Add configuration similar to the following to your POM:
+
+-------------------
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512</maxmemory>
+ ...
+ </configuration>
+ </plugin>
+ </plugins>
+ ...
+ </build>
+ ...
+</project>
+-------------------
+
+Javadoc Plugin Settings
+
+ Refer to {{{http://java.sun.com/j2se/javadoc/}Javadoc Tool}} for more information.
+
+*-----------------------+-----------+----------------+-----------+
+| Setting | Optional? | Description | Reference |
+*-----------------------+-----------+----------------+-----------+
+| additionalparam | Yes | Specifies additional parameters added to the javadoc command line. | |
+*-----------------------+-----------+----------------+-----------+
+| author | Yes | Boolean value. Specifies whether or not the @author text is included in the generated Javadocs. The default value is 'true'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#author}author}} |
+*-----------------------+-----------+----------------+-----------+
+| bottom | Yes | Specifies the text to be placed at the bottom of each output file. The default value is 'Copyright $pom.inceptionY-currentYear $pom.organization.name. All Rights Reserved.'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#bottom}bottom}} |
+*-----------------------+-----------+----------------+-----------+
+| breakiterator | Yes | Boolean value. Uses the sentence break iterator to determine the end of the first sentence. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#breakiterator}breakiterator}} |
+*-----------------------+-----------+----------------+-----------+
+| charset | Yes | Specifies the HTML character set for this document. The default value is 'ISO-8859-1'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#charset}charset}} |
+*-----------------------+-----------+----------------+-----------+
+| destDir | Yes | Specifies the destination directory where javadoc saves the generated HTML files. The default value is '$target/apidocs'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#d}d}} |
+*-----------------------+-----------+----------------+-----------+
+| docencoding | Yes | Specifies the encoding of the generated HTML files. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docencoding}docencoding}} |
+*-----------------------+-----------+----------------+-----------+
+| docfilessubdirs | Yes | Boolean value. Enables deep copying of "doc-files" directories. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docfilessubdirs}docfilessubdirs}} |
+*-----------------------+-----------+----------------+-----------+
+| doclet | Yes | Specifies the class file that starts the doclet used in generating the documentation. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#doclet}doclet}} |
+*-----------------------+-----------+----------------+-----------+
+| docletPath | Yes | Specifies the path to the doclet starting class file (specified with the -doclet option) and any jar files it depends on. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docletPath}docletPath}} |
+*-----------------------+-----------+----------------+-----------+
+| doctitle | Yes | Specifies the title to be placed near the top of the overview summary file. The default value is the value of windowtitle option. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#doctitle}doctitle}} |
+*-----------------------+-----------+----------------+-----------+
+| encoding | Yes | Specifies the encoding name of the source files. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#encoding}encoding}} |
+*-----------------------+-----------+----------------+-----------+
+| excludedocfilessubdir | Yes | Excludes any "doc-files" subdirectories with the given names. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#excludedocfilessubdir}excludedocfilessubdir}} |
+*-----------------------+-----------+----------------+-----------+
+| excludePackageNames | Yes | Unconditionally excludes the specified packages and their subpackages from the list formed by -subpackages. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#exclude}exclude}} |
+*-----------------------+-----------+----------------+-----------+
+| extdirs | Yes | Specifies the directories where extension classes reside. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#extdirs}extdirs}} |
+*-----------------------+-----------+----------------+-----------+
+| footer | Yes | Specifies the footer text to be placed at the bottom of each output file. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#footer}footer}} |
+*-----------------------+-----------+----------------+-----------+
+| group | Yes | Separates packages on the overview page into whatever groups you specify, one group per table. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#d}d}} |
+*-----------------------+-----------+----------------+-----------+
+| header | Yes | Specifies the header text to be placed at the top of each output file. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#header}header}} |
+*-----------------------+-----------+----------------+-----------+
+| helpfile | Yes | Specifies the path of an alternate help file path\filename that the HELP link in the top and bottom navigation bars link to. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#helpfile}helpfile}} |
+*-----------------------+-----------+----------------+-----------+
+| link | Yes | Creates links to existing javadoc-generated documentation of external referenced classes. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#link}link}} |
+*-----------------------+-----------+----------------+-----------+
+| linkoffline | Yes | This option is a variation of -link; they both create links to javadoc-generated documentation for external referenced classes. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#linkoffline}linkoffline}} |
+*-----------------------+-----------+----------------+-----------+
+| linksource | Yes | Boolean value. Creates an HTML version of each source file (with line numbers) and adds links to them from the standard HTML documentation. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#linksource}linksource}} |
+*-----------------------+-----------+----------------+-----------+
+| locale | Yes | Specifies the locale that javadoc uses when generating documentation.| {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#locale}locale}} |
+*-----------------------+-----------+----------------+-----------+
+| maxmemory | Yes | Specifies the maximum Java heap size to be used when launching the javadoc executable. Some JVMs refer to this property as the -Xmx parameter. Example: '512' or '512m' | |
+*-----------------------+-----------+----------------+-----------+
+| minmemory | Yes | Specifies the minimum Java heap size to be used when launching the javadoc executable. Some JVMs refer to this property as the -Xms parameter. Example: '128' or '128m' | |
+*-----------------------+-----------+----------------+-----------+
+| nocomment | Yes | Boolean value. Suppress the entire comment body, including the main description and all tags, generating only declarations. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nocomment}nocomment}} |
+*-----------------------+-----------+----------------+-----------+
+| nodeprecated | Yes | Boolean value. Prevents the generation of any deprecated API at all in the documentation. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nodeprecated}nodeprecated}} |
+*-----------------------+-----------+----------------+-----------+
+| nodeprecatedlist | Yes | Boolean value. Prevents the generation of the file containing the list of deprecated APIs (deprecated-list.html) and the link in the navigation bar to that page. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nodeprecatedlist}nodeprecatedlist}} |
+*-----------------------+-----------+----------------+-----------+
+| nohelp | Yes | Boolean value. Omits the HELP link in the navigation bars at the top and bottom of each page of output. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nohelp}nohelp}} |
+*-----------------------+-----------+----------------+-----------+
+| noindex | Yes | Boolean value. Omits the index from the generated docs. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#noindex}noindex}} |
+*-----------------------+-----------+----------------+-----------+
+| nonavbar | Yes | Boolean value. Omits the index from the generated docs. The default value is 'false'. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nonavbar}nonavbar}} |
+*-----------------------+-----------+----------------+-----------+
+| noqualifier | Yes | Boolean value. Omits qualifying package name from ahead of class names in output. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#noqualifier}noqualifier}} |
+*-----------------------+-----------+----------------+-----------+
+| nosince | Yes | Boolean value. Omits from the generated docs the "Since" sections associated with the @since tags. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#nosince}nosince}} |
+*-----------------------+-----------+----------------+-----------+
+| notree | Yes | Boolean value. Omits the class/interface hierarchy pages from the generated docs. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#notree}notree}} |
+*-----------------------+-----------+----------------+-----------+
+| old | Yes | Boolean value. This option created documentation with the appearance and functionality of documentation generated by Javadoc 1.1. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#1.1}1.1}} |
+*-----------------------+-----------+----------------+-----------+
+| overview | Yes | Specifies that javadoc should retrieve the text for the overview documentation from the "source" file specified by path/filename and place it on the Overview page (overview-summary.html). | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#overview}overview}} |
+*-----------------------+-----------+----------------+-----------+
+| package_ | Yes | Boolean value. Shows only protected and public classes and members. The default value is 'true'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#package}package}} |
+*-----------------------+-----------+----------------+-----------+
+| private_ | Yes | Boolean value. Shows all classes and members. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#private}private}} |
+*-----------------------+-----------+----------------+-----------+
+| protected_ | Yes | Boolean value. Shows only protected and public classes and members. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#protected}protected}} |
+*-----------------------+-----------+----------------+-----------+
+| public_ | Yes | Boolean value. Shows only public classes and members. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#public}public}} |
+*-----------------------+-----------+----------------+-----------+
+| quiet | Yes | Boolean value. Shuts off non-error and non-warning messages, leaving only the warnings and errors appear, making them easier to view. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#quiet}quiet}} |
+*-----------------------+-----------+----------------+-----------+
+| serialwarn | Yes | Boolean value. Generates compile-time warnings for missing @serial tags. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#serialwarn}serialwarn}} |
+*-----------------------+-----------+----------------+-----------+
+| source | Yes | Boolean value. Necessary to enable javadoc to handle assertions present in J2SE v 1.4 source code. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#source}source}} |
+*-----------------------+-----------+----------------+-----------+
+| splitindex | Yes | Boolean value. Splits the index file into multiple files, alphabetically, one file per letter, plus a file for any index entries that start with non-alphabetical characters. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#splitindex}splitindex}} |
+*-----------------------+-----------+----------------+-----------+
+| stylesheetfile | Yes | Specifies the path of an alternate HTML stylesheet file. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#stylesheetfile}stylesheetfile}} |
+*-----------------------+-----------+----------------+-----------+
+| tag | Yes | Enables the Javadoc tool to interpret a simple, one-argument custom block tag @tagname in doc comments. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#tag}tag}} |
+*-----------------------+-----------+----------------+-----------+
+| taglet | Yes | Specifies the class file that starts the taglet used in generating the documentation for that tag. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#taglet}taglet}} |
+*-----------------------+-----------+----------------+-----------+
+| tagletpath | Yes | Specifies the search paths for finding taglet class files (.class). | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#tagletpath}tagletpath}} |
+*-----------------------+-----------+----------------+-----------+
+| use | Yes | Boolean value. Includes one "Use" page for each documented class and package. The default value is 'true'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#use}use}} |
+*-----------------------+-----------+----------------+-----------+
+| verbose | Yes | Boolean value. Provides more detailed messages while javadoc is running. The default value is 'false'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#verbose}verbose}} |
+*-----------------------+-----------+----------------+-----------+
+| version | Yes | Boolean value. Includes the @version text in the generated docs. The default value is 'true'. | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#version}version}} |
+*-----------------------+-----------+----------------+-----------+
+| windowtitle | Yes | Specifies the title to be placed in the HTML <title> tag. The default is '$pom.name $pom.version API' | {{{http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#windowtitle}windowtitle}} |
+*-----------------------+-----------+----------------+-----------+
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/apt/configuration.apt
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml Mon Jul 11 07:23:53 2005
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project name="Maven Javadoc Report">
+ <bannerLeft>
+ <name>Maven Javadoc Report</name>
+ <src>http://maven.apache.org/images/apache-maven-project.png</src>
+ <href>http://maven.apache.org/</href>
+ </bannerLeft>
+ <bannerRight>
+ <src>http://maven.apache.org/images/maven-small.gif</src>
+ </bannerRight>
+ <body>
+ <links>
+ <item name="Apache" href="http://www.apache.org/"/>
+ <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
+ </links>
+
+ <menu name="Overview">
+ <item name="Configuration" href="/configuration.html"/>
+ </menu>
+ ${reports}
+ </body>
+</project>
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml Mon Jul 11 07:23:53 2005
@@ -0,0 +1,30 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.plugin.javadoc.test1</groupId>
+ <artifactId>javadoc-plugin-test1</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <inceptionYear>2003</inceptionYear>
+ <name>Maven Quick Start Archetype</name>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512</maxmemory>
+ <bottom>Copyright me\"s\"</bottom>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java Mon Jul 11 07:23:53 2005
@@ -0,0 +1,13 @@
+package org.apache.maven.plugin.javadoc.test1;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test1/App.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java Mon Jul 11 07:23:53 2005
@@ -0,0 +1,13 @@
+package org.apache.maven.plugin.javadoc.test2;
+
+/**
+ * Hello world!
+ *
+ */
+public class App2
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/main/java/org/apache/maven/plugin/javadoc/test2/App2.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java?rev=210140&view=auto
==============================================================================
--- maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java (added)
+++ maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java Mon Jul 11 07:23:53 2005
@@ -0,0 +1,38 @@
+package org.apache.maven.plugin.javadoc.test1;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-reports/maven-javadoc-plugin/src/test/projects/javadoc-plugin-test1/src/test/java/org/apache/maven/plugin/javadoc/test1/AppTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org