From 0c1b0aca6c76b5c50432cf9433bd54e840c06a16 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sun, 23 Oct 2005 23:28:42 +0000 Subject: [PATCH] cleanup some unused fields git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@327882 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/plugin/antrun/AntRunMojo.java | 7 ++----- .../checkstyle/CheckstyleReportGenerator.java | 15 --------------- .../apache/maven/plugin/deploy/DeployMojo.java | 13 ------------- .../apache/maven/plugin/install/InstallMojo.java | 13 ------------- .../plugins/repository/BundleCreateMojo.java | 5 ----- 5 files changed, 2 insertions(+), 51 deletions(-) diff --git a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java b/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java index 07c70fda38..56a829c69e 100644 --- a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java +++ b/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AntRunMojo.java @@ -16,15 +16,12 @@ package org.apache.maven.plugin.antrun; * limitations under the License. */ -import org.apache.maven.plugin.AbstractMojo; +import java.io.File; + import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.project.MavenProject; -import org.apache.tools.ant.DefaultLogger; -import org.apache.tools.ant.PropertyHelper; import org.apache.tools.ant.Target; -import java.io.File; - /** * Maven AntRun Mojo. * diff --git a/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java b/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java index c1c01cecdc..0db83afaae 100644 --- a/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java +++ b/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java @@ -20,7 +20,6 @@ import com.puppycrawl.tools.checkstyle.api.AuditEvent; import com.puppycrawl.tools.checkstyle.api.SeverityLevel; import java.util.Collections; import java.util.Iterator; -import java.util.LinkedList; import java.util.List; import java.util.ResourceBundle; import java.util.Map; @@ -287,20 +286,6 @@ public class CheckstyleReportGenerator } } - private Iterator getCheckstyleEvents( Iterator events, SeverityLevel level ) - { - LinkedList filtered = new LinkedList(); - - while( events.hasNext() ) - { - AuditEvent event = (AuditEvent) events.next(); - - if ( event.getSeverityLevel().equals( level ) ) filtered.add( event ); - } - - return filtered.iterator(); - } - public SeverityLevel getSeverityLevel() { return severityLevel; diff --git a/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java b/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java index 1953e7fbef..c05e820a97 100644 --- a/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java +++ b/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java @@ -63,19 +63,6 @@ public class DeployMojo */ private File pomFile; - /** - * @parameter expression="${project.build.directory}" - * @required - * @readonly - */ - private String buildDirectory; - - /** - * @parameter alias="archiveName" expression="${project.build.finalName}" - * @required - */ - private String finalName; - /** * @parameter expression="${component.org.apache.maven.artifact.deployer.ArtifactDeployer}" * @required diff --git a/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java b/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java index ef280e8b7b..5a5a33c221 100644 --- a/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java +++ b/maven-plugins/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java @@ -51,19 +51,6 @@ public class InstallMojo */ private File pomFile; - /** - * @parameter expression="${project.build.directory}" - * @required - * @readonly - */ - private String buildDirectory; - - /** - * @parameter alias="archiveName" expression="${project.build.finalName}" - * @required - */ - private String finalName; - /** * @parameter expression="${updateReleaseInfo}" */ diff --git a/maven-plugins/maven-repository-plugin/src/main/java/org/apache/maven/plugins/repository/BundleCreateMojo.java b/maven-plugins/maven-repository-plugin/src/main/java/org/apache/maven/plugins/repository/BundleCreateMojo.java index e6260992f6..3a2f271278 100644 --- a/maven-plugins/maven-repository-plugin/src/main/java/org/apache/maven/plugins/repository/BundleCreateMojo.java +++ b/maven-plugins/maven-repository-plugin/src/main/java/org/apache/maven/plugins/repository/BundleCreateMojo.java @@ -39,11 +39,6 @@ public class BundleCreateMojo public static final String LICENSE = "LICENSE.txt"; - /** - * @parameter expression="${project.build.directory}" - */ - private File outputDirectory; - /** * @parameter expression="${basedir}" */