From a108dd47a5745ed58e46f29c5e4825996ba9a176 Mon Sep 17 00:00:00 2001 From: Vincent Siveton Date: Wed, 13 Jul 2005 12:20:40 +0000 Subject: [PATCH] Take care about generatedSiteDirectory var git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@216145 13f79535-47bb-0310-9956-ffa450edef68 --- maven-plugins/maven-site-plugin/pom.xml | 32 +++++++++++++++++++ .../org/apache/maven/doxia/DoxiaMojo.java | 11 ++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/maven-plugins/maven-site-plugin/pom.xml b/maven-plugins/maven-site-plugin/pom.xml index c5a3e40250..43ab2a4b6f 100644 --- a/maven-plugins/maven-site-plugin/pom.xml +++ b/maven-plugins/maven-site-plugin/pom.xml @@ -1,3 +1,23 @@ + + + + 4.0.0 @@ -41,4 +61,16 @@ 1.0-alpha-4 + + + vsiveton + Vincent Siveton + vsiveton@apache.org + Apache Software Foundation + + Java Developer + + -5 + + diff --git a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java index 6eb35cd1b1..7f5dc8bd84 100644 --- a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java +++ b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/doxia/DoxiaMojo.java @@ -60,9 +60,10 @@ import java.util.Map; import java.util.StringTokenizer; /** - * Generate the project site. + * Generates the project site. * * @author Emmanuel Venisse + * @author Vincent Siveton * @version $Id$ * @goal site * @requiresDependencyResolution test @@ -282,6 +283,14 @@ public class DoxiaMojo } } + // Generated Site Directory + File generatedSiteFile = new File( generatedSiteDirectory ); + if ( generatedSiteFile.exists() ) + { + siteRenderer.render( generatedSiteFile, localeOutputDirectory, + getSiteDescriptor( reports, locale ), template, attributes, locale ); + } + // Generate static site File siteDirectoryFile;