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 2017/12/20 09:36:28 UTC

[maven-invoker-plugin] 21/22: [MINVOKER-20] Adding properties parameter to replace testProperties, and use the more standard value syntax for properties.

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-invoker-plugin-1.1
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit ce1582671332113d9c7da9d90c6ace79afa55a87
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Sat Dec 15 22:53:33 2007 +0000

    [MINVOKER-20] Adding properties parameter to replace testProperties, and use the more standard <key>value</key> syntax for properties.
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-invoker-plugin@604524 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/maven/plugin/invoker/InvokerMojo.java  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
index f5e5fc5..7646b9a 100644
--- a/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
@@ -183,9 +183,18 @@ public class InvokerMojo
      * Common set of test properties to pass in on each IT's command line, via -D parameters.
      *
      * @parameter
+     * @deprecated Use properties parameter instead.
      */
     private Properties testProperties;
 
+	/**
+	 * Common set of properties to pass in on each project's command line, via -D parameters.
+	 *
+	 * @parameter
+	 * @since 1.1
+	 */
+	private Map properties;
+
     /**
      * Whether to show errors in the build output.
      *
@@ -503,6 +512,11 @@ public class InvokerMojo
                     collectedTestProperties.putAll( testProperties );
                 }
 
+                if ( properties != null )
+                {
+                    collectedTestProperties.putAll( properties );
+                }
+
                 final Properties loadedProperties = loadTestProperties( basedir );
 
                 if ( loadedProperties != null )

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.