This change downgraded log4j to version 1.2.13. I think you want it to be 1.2.14.
On 2012-03-29 02:01, [email protected] wrote: > Revision > 16218 <http://fisheye.codehaus.org/changelog/mojo/?cs=16218> > Author > gleclaire > Date > 2012-03-28 19:01:46 -0500 (Wed, 28 Mar 2012) > > > Log Message > > MOJO-1822 - Update to CodeNarc 0.17 > MOJO-1823 - Update version to a format following CodeNarc versions > > > Modified Paths > > * trunk/mojo/codenarc-maven-plugin/pom.xml > <#trunkmojocodenarcmavenpluginpomxml> > * > trunk/mojo/codenarc-maven-plugin/src/main/groovy/org/codehaus/mojo/codenarc/CodeNarcMojo.groovy > > <#trunkmojocodenarcmavenpluginsrcmaingroovyorgcodehausmojocodenarcCodeNarcMojogroovy> > > > Diff > > > Modified: trunk/mojo/codenarc-maven-plugin/pom.xml (16217 => 16218) > > > --- trunk/mojo/codenarc-maven-plugin/pom.xml 2012-03-28 21:40:43 UTC (rev > 16217) > +++ trunk/mojo/codenarc-maven-plugin/pom.xml 2012-03-29 00:01:46 UTC (rev > 16218) > @@ -9,7 +9,7 @@ > </parent> > > <artifactId>codenarc-maven-plugin</artifactId> > - <version>0.16.1-beta-2-SNAPSHOT</version> > + <version>0.17-1.0.0-SNAPSHOT</version> > <packaging>maven-plugin</packaging> > > <name>CodeNarc Maven Plugin</name> > @@ -77,9 +77,9 @@ > <project.build.java.target>1.5</project.build.java.target> > <projectVersion>${project.version}</projectVersion> > <jxrPluginVersion>2.3</jxrPluginVersion> > - <codenarcPlugin.codeNarcVersion>0.16-1</codenarcPlugin.codeNarcVersion> > - <codenarcPlugin.groovyVersion>1.7.4</codenarcPlugin.groovyVersion> > - <codenarcPlugin.log4jVersion>1.7.4</codenarcPlugin.log4jVersion> > + <codenarcPlugin.codeNarcVersion>0.17</codenarcPlugin.codeNarcVersion> > + <codenarcPlugin.groovyVersion>1.7.5</codenarcPlugin.groovyVersion> > + <codenarcPlugin.log4jVersion>1.2.13</codenarcPlugin.log4jVersion> > </properties> > > <dependencyManagement> > @@ -87,7 +87,7 @@ > <dependency> > <groupId>org.codehaus.groovy</groupId> > <artifactId>groovy-all</artifactId> > - <version>1.7.4</version> > + <version>${codenarcPlugin.groovyVersion}</version> > </dependency> > </dependencies> > </dependencyManagement> > @@ -175,7 +175,7 @@ > <dependency> > <groupId>org.codenarc</groupId> > <artifactId>CodeNarc</artifactId> > - <version>0.16.1</version> > + <version>${codenarcPlugin.codeNarcVersion}</version> > <exclusions> > <exclusion> > <groupId>ant</groupId> > @@ -191,7 +191,7 @@ > <dependency> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > - <version>1.2.14</version> > + <version>${codenarcPlugin.log4jVersion}</version> > </dependency> > </dependencies> > > > > Modified: > > trunk/mojo/codenarc-maven-plugin/src/main/groovy/org/codehaus/mojo/codenarc/CodeNarcMojo.groovy > (16217 => 16218) > > > --- > trunk/mojo/codenarc-maven-plugin/src/main/groovy/org/codehaus/mojo/codenarc/CodeNarcMojo.groovy > 2012-03-28 21:40:43 UTC (rev 16217) > +++ > trunk/mojo/codenarc-maven-plugin/src/main/groovy/org/codehaus/mojo/codenarc/CodeNarcMojo.groovy > 2012-03-29 00:01:46 UTC (rev 16218) > @@ -46,185 +46,185 @@ > * @version $Id: CodeNarcMojo.groovy gleclaire $ > */ > class CodeNarcMojo extends AbstractMavenReport { > - /** > - * The name of the Plug-In. > - * > - */ > - static final String PLUGIN_NAME = "codenarc" > + /** > + * The name of the Plug-In. > + * > + */ > + static final String PLUGIN_NAME = "codenarc" > > - /** > - * The name of the property resource bundle (Filesystem). > - * > - */ > - static final String BUNDLE_NAME = "codenarc" > + /** > + * The name of the property resource bundle (Filesystem). > + * > + */ > + static final String BUNDLE_NAME = "codenarc" > > - /** > - * The key to get the name of the Plug-In from the bundle. > - * > - */ > - static final String NAME_KEY = "report.codenarc.name" > + /** > + * The key to get the name of the Plug-In from the bundle. > + * > + */ > + static final String NAME_KEY = "report.codenarc.name" > > - /** > - * The key to get the description of the Plug-In from the bundle. > - * > - */ > - static final String DESCRIPTION_KEY = "report.codenarc.description" > + /** > + * The key to get the description of the Plug-In from the bundle. > + * > + */ > + static final String DESCRIPTION_KEY = "report.codenarc.description" > > - /** > - * The handle for the resource bundle. > - * > - */ > - ResourceBundle bundle > + /** > + * The handle for the resource bundle. > + * > + */ > + ResourceBundle bundle > > - /** > - * Maven Project > - * > - * @parameter expression="${project}" > - * @required > - * @readonly > - */ > - MavenProject project > + /** > + * Maven Project > + * > + * @parameter expression="${project}" > + * @required > + * @readonly > + */ > + MavenProject project > > - /** > - * Location where generated html will be created. > - * > - * @parameter default-value="${project.reporting.outputDirectory}" > - * @required > - */ > + /** > + * Location where generated html will be created. > + * > + * @parameter default-value="${project.reporting.outputDirectory}" > + * @required > + */ > > - File outputDirectory > + File outputDirectory > > - /** > - * Specifies the directory where the xml output will be generated. > - * > - * @parameter default-value="${project.build.directory}" > - * @required > - */ > - File xmlOutputDirectory > + /** > + * Specifies the directory where the xml output will be generated. > + * > + * @parameter default-value="${project.build.directory}" > + * @required > + */ > + File xmlOutputDirectory > > - /** > - * Doxia Site Renderer. > - * > - * @component > - * @required > - * @readonly > - */ > - Renderer siteRenderer > + /** > + * Doxia Site Renderer. > + * > + * @component > + * @required > + * @readonly > + */ > + Renderer siteRenderer > > - /** > - * SiteTool. > - * > - * @component role="org.apache.maven.doxia.tools.SiteTool" > - * @required > - * @readonly > - */ > - protected SiteTool siteTool > + /** > + * SiteTool. > + * > + * @component role="org.apache.maven.doxia.tools.SiteTool" > + * @required > + * @readonly > + */ > + protected SiteTool siteTool > > - /** > - * @component > - * @required > - * @readonly > - */ > - ResourceManager resourceManager > + /** > + * @component > + * @required > + * @readonly > + */ > + ResourceManager resourceManager > > - /** > - * Skip entire check. > - * > - * @parameter expression="${codenarc.skip}" default-value="false" > - */ > - boolean skip > + /** > + * Skip entire check. > + * > + * @parameter expression="${codenarc.skip}" default-value="false" > + */ > + boolean skip > > - /** > - * Maximum Java heap size in megabytes (default=512). > - * > - * @parameter default-value="512" > - */ > - int maxHeap > + /** > + * Maximum Java heap size in megabytes (default=512). > + * > + * @parameter default-value="512" > + */ > + int maxHeap > > - /** > - * The CodeNarc rulesets to use. See the <a > href="http://codenarc.sourceforge.net/codenarc-rule-index.html">CodeNarc Rule > Index</a> > - * for a list of some included. Defaults to the > "rulesets/basic.xml,rulesets/exceptions.xml,rulesets/imports.xml" > - * > - * @parameter expression="${codenarc.rulesetfiles}" > - */ > - String rulesetfiles = > "rulesets/basic.xml,rulesets/exceptions.xml,rulesets/imports.xml" > + /** > + * The CodeNarc rulesets to use. See the <a > href="http://codenarc.sourceforge.net/codenarc-rule-index.html">CodeNarc Rule > Index</a> > + * for a list of some included. Defaults to the > "rulesets/basic.xml,rulesets/exceptions.xml,rulesets/imports.xml" > + * > + * @parameter expression="${codenarc.rulesetfiles}" > + */ > + String rulesetfiles = > "rulesets/basic.xml,rulesets/exceptions.xml,rulesets/imports.xml" > > - /** > - * TThe comma-separated list of Ant-style file patterns specifying > files that must be included. > - * See the <a > href="http://codenarc.sourceforge.net/codenarc-command-line.html">CodeNarc > Command-Line Parameters</a> > - * for the default behavior. > - * > - * @parameter expression="${codenarc.includes}" > - */ > - String includes > + /** > + * TThe comma-separated list of Ant-style file patterns specifying files > that must be included. > + * See the <a > href="http://codenarc.sourceforge.net/codenarc-command-line.html">CodeNarc > Command-Line Parameters</a> > + * for the default behavior. > + * > + * @parameter expression="${codenarc.includes}" > + */ > + String includes > > - /** > - * TThe comma-separated list of Ant-style file patterns specifying > files that must be excluded. > - * See the <a > href="http://codenarc.sourceforge.net/codenarc-command-line.html">CodeNarc > Command-Line Parameters</a> > - * for the default behavior. > - * > - * @parameter expression="${codenarc.excludes}" > - */ > - String excludes > + /** > + * TThe comma-separated list of Ant-style file patterns specifying files > that must be excluded. > + * See the <a > href="http://codenarc.sourceforge.net/codenarc-command-line.html">CodeNarc > Command-Line Parameters</a> > + * for the default behavior. > + * > + * @parameter expression="${codenarc.excludes}" > + */ > + String excludes > > - /** > - * The CodeNarc log4j config file. > - * Each path may be optionally prefixed by any of the valid > java.net.URL prefixes, such as "file:" > - * (to load from a relative or absolute filesystem path), or "http:". > - * > - * @parameter expression="${codenarc.log4jConfigFile}" > - */ > - String log4jConfigFile > + /** > + * The CodeNarc log4j config file. > + * Each path may be optionally prefixed by any of the valid java.net.URL > prefixes, such as "file:" > + * (to load from a relative or absolute filesystem path), or "http:". > + * > + * @parameter expression="${codenarc.log4jConfigFile}" > + */ > + String log4jConfigFile > > - /** > - * Specifies the location of the source directory to be used for > CodeNarc. > - * > - * @parameter default-value="${project.build.sourceDirectory}" > - * @required > - */ > - File sourceDirectory > + /** > + * Specifies the location of the source directory to be used for > CodeNarc. > + * > + * @parameter default-value="${project.build.sourceDirectory}" > + * @required > + */ > + File sourceDirectory > > - /** > - * Used to look up Artifacts in the remote repository. > - * > - * @parameter > expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}" > - * @required > - * @readonly > - */ > - protected ArtifactFactory factory > + /** > + * Used to look up Artifacts in the remote repository. > + * > + * @parameter > expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}" > + * @required > + * @readonly > + */ > + protected ArtifactFactory factory > > - /** > - * Used to look up Artifacts in the remote repository. > - * > - * @parameter > expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}" > - * @required > - * @readonly > - */ > - protected ArtifactResolver artifactResolver > + /** > + * Used to look up Artifacts in the remote repository. > + * > + * @parameter > expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}" > + * @required > + * @readonly > + */ > + protected ArtifactResolver artifactResolver > > - /** > - * List of Remote Repositories used by the resolver > - * > - * @parameter expression="${project.remoteArtifactRepositories}" > - * @readonly > - * @required > - */ > - protected List remoteRepositories > + /** > + * List of Remote Repositories used by the resolver > + * > + * @parameter expression="${project.remoteArtifactRepositories}" > + * @readonly > + * @required > + */ > + protected List remoteRepositories > > - /** > - * Location of the local repository. > - * > - * @parameter expression="${localRepository}" > - * @readonly > - * @required > - */ > - protected ArtifactRepository localRepository > + /** > + * Location of the local repository. > + * > + * @parameter expression="${localRepository}" > + * @readonly > + * @required > + */ > + protected ArtifactRepository localRepository > > - /** > - * Default log4j file content if one dosn't exist. > - * > - */ > - def log4jContents = """# Set root logger level to DEBUG and only append > to the CONSOLE. > + /** > + * Default log4j file content if one dosn't exist. > + * > + */ > + def log4jContents = """# Set root logger level to DEBUG and only append > to the CONSOLE. > log4j.rootLogger=DEBUG, CONSOLE > > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender > @@ -234,220 +234,225 @@ > log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %c{1} [%t] %p - > %m%n > """ > > - /** > - * The CodeNarc version to use for the plugin > - * > - * @parameter expression="${codenarc.codenarc.verion}" > - */ > - String codeNarcVersion = '0.16.1' > + /** > + * The CodeNarc version to use for the plugin > + * > + * @parameter expression="${codenarc.codenarc.verion}" > default-value="0.17" > + */ > + String codeNarcVersion > > - /** > - * The log4j version to use for the plugin > - * > - * @parameter expression="${codenarc.log4j.verion}" > - */ > - String log4jVersion = '1.2.13' > + /** > + * The log4j version to use for the plugin > + * > + * @parameter expression="${codenarc.log4j.verion}" > default-value="1.2.13" > + */ > + String log4jVersion > > - /** > - * The Groovy version to use for the plugin > - * > - * @parameter expression="${codenarc.groovy.verion}" > - */ > - String groovyVersion = '1.7.4' > + /** > + * The Groovy version to use for the plugin > + * > + * @parameter expression="${codenarc.groovy.verion}" > default-value="1.7.5" > + */ > + String groovyVersion > > > + > + /** > + * Executes the generation of the report. > + * > + * Callback from Maven Site Plugin or from AbstractMavenReport.execute() > => generate(). > + * > + * @param locale > + * the locale the report should be generated for > + * @see org.apache.maven.reporting.AbstractMavenReport > #executeReport(java.util.Locale) > + * > + */ > + protected void executeReport( Locale locale ) { > + log.debug("codeNarcVersion ==> ${codeNarcVersion}") > + log.debug("log4jVersion ==> ${log4jVersion}") > + log.debug("groovyVersion ==> ${groovyVersion}") > + > def items = [ > - [groupId:'org.codenarc', artifactId:'CodeNarc', > version:'0.16.1'], > - [groupId:'log4j', artifactId:'log4j', version:'1.2.13'], > - [groupId:'org.codehaus.groovy', artifactId:'groovy-all', > version:'1.7.4'] > + [groupId:'org.codenarc', artifactId:'CodeNarc', version: > codeNarcVersion ], > + [groupId:'log4j', artifactId:'log4j', version: log4jVersion ], > + [groupId:'org.codehaus.groovy', artifactId:'groovy-all', > version: groovyVersion ] > ] > > > - /** > - * Executes the generation of the report. > - * > - * Callback from Maven Site Plugin or from > AbstractMavenReport.execute() => generate(). > - * > - * @param locale > - * the locale the report should be generated for > - * @see org.apache.maven.reporting.AbstractMavenReport > #executeReport(java.util.Locale) > - * > - */ > - protected void executeReport( Locale locale ) { > - resourceManager.addSearchPath( FileResourceLoader.ID, > project.getFile().getParentFile().getAbsolutePath() ) > - resourceManager.addSearchPath( "url", "" ) > + resourceManager.addSearchPath( FileResourceLoader.ID, > project.getFile().getParentFile().getAbsolutePath() ) > + resourceManager.addSearchPath( "url", "" ) > > - resourceManager.setOutputDirectory( new File( > project.getBuild().getDirectory() ) ) > + resourceManager.setOutputDirectory( new File( > project.getBuild().getDirectory() ) ) > > - log.debug("resourceManager outputDirectory is " + > resourceManager.outputDirectory ) > + log.debug("resourceManager outputDirectory is " + > resourceManager.outputDirectory ) > > - def xmlReportFileName = "${xmlOutputDirectory}/CodeNarc.xml" > - File outputFile = new File(xmlReportFileName) > + def xmlReportFileName = "${xmlOutputDirectory}/CodeNarc.xml" > + File outputFile = new File(xmlReportFileName) > > - def ant = new AntBuilder() > - Artifact pomArtifact > + def ant = new AntBuilder() > + Artifact pomArtifact > > - def codenarcPath = ant.path(id: "codenarc.classpath") { > + def codenarcPath = ant.path(id: "codenarc.classpath") { > > - items.each() { item -> > + items.each() { item -> > > - pomArtifact = this.factory.createArtifact( > item['groupId'], item['artifactId'], item['version'],"", "jar") > + pomArtifact = this.factory.createArtifact( item['groupId'], > item['artifactId'], item['version'],"", "jar") > > - artifactResolver.resolve(pomArtifact, > this.remoteRepositories, this.localRepository) > + artifactResolver.resolve(pomArtifact, > this.remoteRepositories, this.localRepository) > > - pathelement(location: pomArtifact.file) > - } > - } > + pathelement(location: pomArtifact.file) > + } > + } > > - log.debug( "codenarcPath => ${codenarcPath}" ) > + log.debug( "codenarcPath => ${codenarcPath}" ) > > - if (!log4jConfigFile) { > - def tempLogFile = new File( > "${project.getBuild().getDirectory()}/log4j.properties" ) > - tempLogFile.text = log4jContents > - log4jConfigFile = tempLogFile.toURL() > - } > + if (!log4jConfigFile) { > + def tempLogFile = new File( > "${project.getBuild().getDirectory()}/log4j.properties" ) > + tempLogFile.text = log4jContents > + log4jConfigFile = tempLogFile.toURL() > + } > > - ant.java(classname: "org.codenarc.CodeNarc", classpathref: > "codenarc.classpath",fork: "true", failonerror: "false", clonevm: "false", > maxmemory: "${maxHeap}m") { > + ant.java(classname: "org.codenarc.CodeNarc", classpathref: > "codenarc.classpath",fork: "true", failonerror: "false", clonevm: "false", > maxmemory: "${maxHeap}m") { > > - log.debug( "log4jConfigFile => ${log4jConfigFile}" ) > - sysproperty(key: "log4j.configuration", value: > "${log4jConfigFile}") > + log.debug( "log4jConfigFile => ${log4jConfigFile}" ) > + sysproperty(key: "log4j.configuration", value: > "${log4jConfigFile}") > > - def antBasedir="-basedir=${sourceDirectory}" > - log.debug( "antBasedir => ${antBasedir}") > - arg(value: antBasedir) > + def antBasedir="-basedir=${sourceDirectory}" > + log.debug( "antBasedir => ${antBasedir}") > + arg(value: antBasedir) > > - def antTitle='-title="' + this.project.name + '"' > - log.debug( "antTitle => ${antTitle}" ) > - arg(value: antTitle) > + def antTitle='-title="' + this.project.name + '"' > + log.debug( "antTitle => ${antTitle}" ) > + arg(value: antTitle) > > - def antReport="-report=xml:" + xmlReportFileName > - log.debug( "antReport => ${antReport}" ) > - arg(value: antReport) > + def antReport="-report=xml:" + xmlReportFileName > + log.debug( "antReport => ${antReport}" ) > + arg(value: antReport) > > - def antRuleSets="-rulesetfiles=" + rulesetfiles > - log.debug( "antRuleSets => ${antRuleSets}" ) > - arg(value: antRuleSets) > + def antRuleSets="-rulesetfiles=" + rulesetfiles > + log.debug( "antRuleSets => ${antRuleSets}" ) > + arg(value: antRuleSets) > > - if (includes) { > - def antIncludes="-includes=" + includes > - log.debug( "antIncludes => ${antIncludes}" ) > - arg(value: antIncludes) > - } > + if (includes) { > + def antIncludes="-includes=" + includes > + log.debug( "antIncludes => ${antIncludes}" ) > + arg(value: antIncludes) > + } > > - if (excludes) { > - def antExcludes="-includes=" + excludes > - log.debug( "antExcludes => ${antExcludes}" ) > - arg(value: antExcludes) > - } > - } > + if (excludes) { > + def antExcludes="-includes=" + excludes > + log.debug( "antExcludes => ${antExcludes}" ) > + arg(value: antExcludes) > + } > + } > > > - if (!outputDirectory.exists()) { > - if ( !outputDirectory.mkdirs() ) { > - fail("Cannot create HTML output directory") > - } > - } > + if (!outputDirectory.exists()) { > + if ( !outputDirectory.mkdirs() ) { > + fail("Cannot create HTML output directory") > + } > + } > > - if (outputFile.exists()) { > - log.info("Generating CodeNarc HTML") > + if (outputFile.exists()) { > + log.info("Generating CodeNarc HTML") > > - CodeNarcReportGenerator generator = new > CodeNarcReportGenerator( getSink(), getBundle(locale), > this.project.getBasedir(), siteTool) > + CodeNarcReportGenerator generator = new CodeNarcReportGenerator( > getSink(), getBundle(locale), this.project.getBasedir(), siteTool) > > - generator.setLog(log) > + generator.setLog(log) > > - generator.setCodeNarcResults(new > XmlSlurper().parse(outputFile)) > + generator.setCodeNarcResults(new XmlSlurper().parse(outputFile)) > > - generator.setOutputDirectory(new > File(outputDirectory.getAbsolutePath())) > + generator.setOutputDirectory(new > File(outputDirectory.getAbsolutePath())) > > - generator.generateReport() > - } > - } > + generator.generateReport() > + } > + } > > - /** > - * Checks whether prerequisites for generating this report are given. > - * > - * @return true if report can be generated, otherwise false > - * @see org.apache.maven.reporting.MavenReport#canGenerateReport() > - */ > - boolean canGenerateReport() { > + /** > + * Checks whether prerequisites for generating this report are given. > + * > + * @return true if report can be generated, otherwise false > + * @see org.apache.maven.reporting.MavenReport#canGenerateReport() > + */ > + boolean canGenerateReport() { > > - def canGenerate = false > + def canGenerate = false > > - log.info("sourceDirectory is ${sourceDirectory}" ) > + log.info("sourceDirectory is ${sourceDirectory}" ) > > - if ( !skip && sourceDirectory.exists()) { > - canGenerate = true > - } > + if ( !skip && sourceDirectory.exists()) { > + canGenerate = true > + } > > - log.debug("canGenerate is ${canGenerate}") > + log.debug("canGenerate is ${canGenerate}") > > - return canGenerate > - } > + return canGenerate > + } > > - /** > - * Returns the plugins description for the "generated reports" overview > page. > - * > - * @param locale > - * the locale the report should be generated for > - * > - * @return description of the report > - * @see > org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) > - */ > - String getDescription( Locale locale ) { > - return getBundle(locale).getString(DESCRIPTION_KEY) > - } > + /** > + * Returns the plugins description for the "generated reports" overview > page. > + * > + * @param locale > + * the locale the report should be generated for > + * > + * @return description of the report > + * @see > org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) > + */ > + String getDescription( Locale locale ) { > + return getBundle(locale).getString(DESCRIPTION_KEY) > + } > > - /** > - * Returns the plugins name for the "generated reports" overview page > and the menu. > - * > - * @param locale > - * the locale the report should be generated for > - * > - * @return name of the report > - * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) > - */ > - String getName( Locale locale ) { > - return getBundle(locale).getString(NAME_KEY) > - } > + /** > + * Returns the plugins name for the "generated reports" overview page > and the menu. > + * > + * @param locale > + * the locale the report should be generated for > + * > + * @return name of the report > + * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) > + */ > + String getName( Locale locale ) { > + return getBundle(locale).getString(NAME_KEY) > + } > > - /** > - * Returns report output file name, without the extension. > - * > - * Called by AbstractMavenReport.execute() for creating the sink. > - * > - * @return name of the generated page > - * @see org.apache.maven.reporting.MavenReport#getOutputName() > - */ > - String getOutputName() { > - return PLUGIN_NAME > - } > + /** > + * Returns report output file name, without the extension. > + * > + * Called by AbstractMavenReport.execute() for creating the sink. > + * > + * @return name of the generated page > + * @see org.apache.maven.reporting.MavenReport#getOutputName() > + */ > + String getOutputName() { > + return PLUGIN_NAME > + } > > - protected MavenProject getProject() { > - return this.project > - } > + protected MavenProject getProject() { > + return this.project > + } > > - /** > - * Returns the report output directory. > - * > - * Called by AbstractMavenReport.execute() for creating the sink. > - * > - * @return full path to the directory where the files in the site get > copied to > - * @see > org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory() > - */ > - protected String getOutputDirectory() { > - return outputDirectory.getAbsolutePath() > - } > + /** > + * Returns the report output directory. > + * > + * Called by AbstractMavenReport.execute() for creating the sink. > + * > + * @return full path to the directory where the files in the site get > copied to > + * @see > org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory() > + */ > + protected String getOutputDirectory() { > + return outputDirectory.getAbsolutePath() > + } > > - protected Renderer getSiteRenderer() { > - return this.siteRenderer > - } > + protected Renderer getSiteRenderer() { > + return this.siteRenderer > + } > > - ResourceBundle getBundle(locale) { > + ResourceBundle getBundle(locale) { > > - this.bundle = ResourceBundle.getBundle(BUNDLE_NAME, locale, > CodeNarcMojo.class.getClassLoader()) > + this.bundle = ResourceBundle.getBundle(BUNDLE_NAME, locale, > CodeNarcMojo.class.getClassLoader()) > > - log.debug("Mojo Locale is " + > this.bundle.getLocale().getLanguage()) > + log.debug("Mojo Locale is " + this.bundle.getLocale().getLanguage()) > > - return bundle > - } > + return bundle > + } > } > > ------------------------------------------------------------------------ > > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
