You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/06/01 18:21:48 UTC

[3/3] git commit: restored mojo with setter IT

restored mojo with setter IT

Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/967a3af9
Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/967a3af9
Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/967a3af9

Branch: refs/heads/master
Commit: 967a3af9ade277ac2978b0b04b706b480f9f1f82
Parents: a60e033
Author: Hervé Boutemy <hb...@apache.org>
Authored: Sun Jun 1 18:21:43 2014 +0200
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Sun Jun 1 18:21:43 2014 +0200

----------------------------------------------------------------------
 .../maven/plugin/coreit/CoreItMojoWithSetters.java  | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/967a3af9/core-it-support/core-it-plugins/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
----------------------------------------------------------------------
diff --git a/core-it-support/core-it-plugins/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java b/core-it-support/core-it-plugins/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
index 86040b3..5c6c9dd 100644
--- a/core-it-support/core-it-plugins/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
+++ b/core-it-support/core-it-plugins/maven-it-plugin-setter/src/main/java/org/apache/maven/plugin/coreit/CoreItMojoWithSetters.java
@@ -40,15 +40,9 @@ public class CoreItMojoWithSetters
     private String outputDirectoryValue;
 
     /**
-     * @parameter
-     */
-    private String foo;
-    /*
-     * was previously
-     * @parameter property="foo"
-     * private String fooValue;
-     * with plugin-tools 2.9, but this feature was removed from plugin-tools 3.0: see MPLUGIN-199
+     * @parameter name="foo"
      */
+    private String fooValue;
 
     /**
      * @parameter
@@ -71,7 +65,7 @@ public class CoreItMojoWithSetters
 
         getLog().info( "setFoo: " + fooValue );
 
-        this.foo = fooValue;
+        this.fooValue = fooValue;
 
         setFooSetterExecuted = true;
     }
@@ -101,12 +95,12 @@ public class CoreItMojoWithSetters
         File outDir = new File( outputDirectoryValue );
 
         // Test parameter setting
-        if ( foo != null && setFooSetterExecuted )
+        if ( fooValue != null && setFooSetterExecuted )
         {
 
             getLog().info( "fooValue != null && setFooSetterExecuted" );
 
-            touch( outDir, foo );
+            touch( outDir, fooValue );
         }
 
         if ( bar != null && setBarSetterExecuted )