ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1170540 - /incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java
Date Wed, 14 Sep 2011 11:23:29 GMT
Author: marrs
Date: Wed Sep 14 11:23:29 2011
New Revision: 1170540

URL: http://svn.apache.org/viewvc?rev=1170540&view=rev
Log:
Added support for the 'agents' parameter.

Modified:
    incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java

Modified: incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java?rev=1170540&r1=1170539&r2=1170540&view=diff
==============================================================================
--- incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java (original)
+++ incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java Wed Sep
14 11:23:29 2011
@@ -56,6 +56,18 @@ public class Main {
         }
     };
 
+    private Argument m_agents = new KeyValueArgument() {
+        public void handle(String key, String value) {
+            if (key.equals("agents")) {
+                System.setProperty("agents", value);
+            }
+        }
+
+        public String getDescription() {
+            return "agents: configures multiple management agents: agent-id,identification,discovery[;agent-id,identification,discovery]*";
+        }
+    };
+
     private Argument m_help = new Argument() {
         public void handle(String argument) {
             if (argument.equals("help")) {
@@ -71,10 +83,12 @@ public class Main {
 
     private FrameworkOption m_fwOptionHandler = new FrameworkOption();
 
-    private final List<Argument> m_arguments = Arrays.asList(m_identification,
-            m_discovery,
-            m_fwOptionHandler,
-            m_help);
+    private final List<Argument> m_arguments = Arrays.asList(
+        m_identification,
+        m_discovery,
+        m_agents,
+        m_fwOptionHandler,
+        m_help);
 
     public static void main(String[] args) throws Exception {
         new Main(args).run();



Mime
View raw message