Mojo's GWT Maven Plugin
  1. Mojo's GWT Maven Plugin
  2. MGWT-264

RunMojo and TestMojo should support <environmentVariables> configuration like surefire

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      Description

          1. 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 );

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            kevin aloisi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: