You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2010/02/19 23:58:20 UTC
svn commit: r912023 - in /maven/plugins/trunk/maven-checkstyle-plugin/src:
main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java
Author: olamy
Date: Fri Feb 19 22:58:19 2010
New Revision: 912023
URL: http://svn.apache.org/viewvc?rev=912023&view=rev
Log:
remove non necessary code.
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java?rev=912023&r1=912022&r2=912023&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java Fri Feb 19 22:58:19 2010
@@ -271,14 +271,6 @@
/**
* @since 2.5
- * @component role="org.codehaus.plexus.resource.ResourceManager" role-hint="default"
- * @required
- * @readonly
- */
- protected ResourceManager locator;
-
- /**
- * @since 2.5
* @component role="org.apache.maven.plugin.checkstyle.CheckstyleExecutor" role-hint="default"
* @required
* @readonly
@@ -370,10 +362,6 @@
if ( !skipExec )
{
- locator.addSearchPath( FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath() );
- locator.addSearchPath( "url", "" );
-
- locator.setOutputDirectory( new File( project.getBuild().getDirectory() ) );
ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java?rev=912023&r1=912022&r2=912023&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/test/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojoTest.java Fri Feb 19 22:58:19 2010
@@ -51,8 +51,6 @@
assertNotNull( "project null.", mojo.project );
- assertNotNull( "locator null.", mojo.locator );
-
try
{
mojo.execute();