RunMojo and TestMojo should support <environmentVariables> configuration like 
surefire
--------------------------------------------------------------------------------------

                 Key: MGWT-264
                 URL: http://jira.codehaus.org/browse/MGWT-264
             Project: Maven 2.x GWT Plugin
          Issue Type: Improvement
            Reporter: kevin aloisi


### Eclipse Workspace Patch 1.0
#P gwt-maven-plugin
Index: src/main/java/org/codehaus/mojo/gwt/shell/RunMojo.java
===================================================================
--- src/main/java/org/codehaus/mojo/gwt/shell/RunMojo.java      (revision 37066)
+++ src/main/java/org/codehaus/mojo/gwt/shell/RunMojo.java      (working copy)
@@ -23,6 +23,7 @@
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -231,8 +232,11 @@
      */
     protected ArchiverManager archiverManager;
     
+    /**
+     * @parameter
+     */
+    private Map environmentVariables = new HashMap();
     
-    
      /**
      * Set GWT shell bindAddress.
      * <p>
@@ -374,6 +378,14 @@
                 }
             }
 
+            // set env
+            if ( environmentVariables != null ) {
+              for( Object o : environmentVariables.entrySet() ) {
+                Map.Entry e = (Map.Entry)o;
+                
cmd.systemProperty(e.getKey().toString(),e.getValue().toString());
+              }
+            }
+            
             if ( bindAddress != null && bindAddress.length() > 0 )
             {
                 cmd.arg( "-bindAddress" ).arg( bindAddress );


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to