changeset 1167:94e5078418e5

Update for XML file example in javadoc Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-July/007469.html
author Giovanni Astarita <gastarit@redhat.com>
date Mon, 15 Jul 2013 14:14:34 +0200
parents ee5858fb6618
children b6722888e6b3
files launcher/src/main/java/com/redhat/thermostat/launcher/internal/PluginConfigurationParser.java
diffstat 1 files changed, 72 insertions(+), 59 deletions(-) [+]
line wrap: on
line diff
--- a/launcher/src/main/java/com/redhat/thermostat/launcher/internal/PluginConfigurationParser.java	Thu Jul 11 18:16:31 2013 +0200
+++ b/launcher/src/main/java/com/redhat/thermostat/launcher/internal/PluginConfigurationParser.java	Mon Jul 15 14:14:34 2013 +0200
@@ -87,25 +87,28 @@
     &lt;command&gt;
       &lt;name&gt;platform&lt;/name&gt;
       &lt;description&gt;launches a bare bone Platform Client&lt;/description&gt;
+      &lt;arguments&gt;
+        &lt;argument&gt;argument1&lt;/argument&gt;
+      &lt;/arguments&gt;
       &lt;options&gt; 
-    &lt;group&gt;
-      &lt;required&gt;true&lt;/required&gt;
-      &lt;option&gt;
-        &lt;long&gt;optA&lt;/long&gt;
-        &lt;short&gt;a&lt;/short&gt;
-        &lt;required&gt;true&lt;/required&gt;
-      &lt;/option&gt;
-      &lt;option&gt;
-        &lt;long&gt;optB&lt;/long&gt;
-        &lt;short&gt;b&lt;/short&gt;
-        &lt;required&gt;true&lt;/required&gt;
+        &lt;group&gt;
+          &lt;required&gt;true&lt;/required&gt;
+          &lt;option&gt;
+            &lt;long&gt;optA&lt;/long&gt;
+            &lt;short&gt;a&lt;/short&gt;
+            &lt;required&gt;true&lt;/required&gt;
           &lt;/option&gt;
-      &lt;option&gt;
-        &lt;long&gt;optC&lt;/long&gt;
-        &lt;short&gt;b&lt;/short&gt;        
-        &lt;required&gt;false&lt;/required&gt;
-      &lt;/option&gt;
-      &lt;option common="true"&gt;
+          &lt;option&gt;
+            &lt;long&gt;optB&lt;/long&gt;
+            &lt;short&gt;b&lt;/short&gt;
+            &lt;required&gt;true&lt;/required&gt;
+          &lt;/option&gt;
+          &lt;option&gt;
+            &lt;long&gt;optC&lt;/long&gt;
+            &lt;short&gt;b&lt;/short&gt;        
+            &lt;required&gt;false&lt;/required&gt;
+          &lt;/option&gt;
+          &lt;option common="true"&gt;
             &lt;long&gt;dbUrl&lt;/long&gt;
           &lt;/option&gt;
           &lt;option common="true"&gt;
@@ -117,55 +120,65 @@
           &lt;option common="true"&gt;
             &lt;long&gt;logLevel&lt;/long&gt;
           &lt;/option&gt;
-    &lt;/group&gt;   
-    &lt;option&gt;
-      &lt;long&gt;heapId&lt;/long&gt;
-      &lt;short&gt;h&lt;/short&gt;
-      &lt;argument&gt;heapArgument&lt;/argument&gt;
-      &lt;required&gt;true&lt;/required&gt;
-      &lt;description&gt;the ID of the heapdump to analyze&lt;/description&gt;
-    &lt;/option&gt;
-    &lt;option&gt;
-      &lt;long&gt;limit&lt;/long&gt;
-      &lt;short&gt;L&lt;/short&gt;
-      &lt;argument&gt;limitArgument&lt;/argument&gt;
-      &lt;required&gt;false&lt;/required&gt;
-      &lt;description&gt;limit search to top N results, defaults to 10&lt;/description&gt;
-    &lt;/option&gt;
+        &lt;/group&gt;   
+        &lt;option&gt;
+          &lt;long&gt;heapId&lt;/long&gt;
+          &lt;short&gt;h&lt;/short&gt;
+          &lt;argument&gt;heapArgument&lt;/argument&gt;
+          &lt;required&gt;true&lt;/required&gt;
+          &lt;description&gt;the ID of the heapdump to analyze&lt;/description&gt;
+        &lt;/option&gt;
+        &lt;option&gt;
+          &lt;long&gt;limit&lt;/long&gt;
+          &lt;short&gt;L&lt;/short&gt;
+          &lt;argument&gt;limitArgument&lt;/argument&gt;
+          &lt;required&gt;false&lt;/required&gt;
+          &lt;description&gt;limit search to top N results, defaults to 10&lt;/description&gt;
+        &lt;/option&gt;
       &lt;/options&gt;
+      &lt;environments&gt;
+        &lt;environment&gt;cli&lt;/environment&gt;
+        &lt;environment&gt;shell&lt;/environment&gt;
+      &lt;/environments&gt;
       &lt;bundles&gt;
-    &lt;bundle&gt;thermostat-platform-common-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-swing-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-common-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-swing-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
       &lt;/bundles&gt;
       &lt;dependencies&gt;
-    &lt;dependency&gt;thermostat-client-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
+        &lt;dependency&gt;thermostat-client-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
       &lt;/dependencies&gt;
     &lt;/command&gt;
     &lt;command&gt;
       &lt;name&gt;platform2&lt;/name&gt;
       &lt;description&gt;launches a bare bone Platform Client&lt;/description&gt;
-       &lt;options&gt; 
-    &lt;option&gt;
-      &lt;long&gt;heapId2&lt;/long&gt;
-      &lt;short&gt;h&lt;/short&gt;
-      &lt;argument&gt;heapId2Argument&lt;/argument&gt;
-      &lt;required&gt;true&lt;/required&gt;
-      &lt;description&gt;the ID of the heapdump to analyze&lt;/description&gt;
-    &lt;/option&gt;
-    &lt;option&gt;
-      &lt;long&gt;limit2&lt;/long&gt;
-      &lt;short&gt;L&lt;/short&gt;
-      &lt;argument&gt;limit2Argument&lt;/argument&gt;
-      &lt;required&gt;false&lt;/required&gt;
-      &lt;description&gt;limit search to top N results, defaults to 10&lt;/description&gt;
-    &lt;/option&gt;
+      &lt;arguments&gt;
+        &lt;argument&gt;argument2&lt;/argument&gt;
+      &lt;/arguments&gt;
+      &lt;options&gt; 
+        &lt;option&gt;
+          &lt;long&gt;heapId2&lt;/long&gt;
+          &lt;short&gt;h&lt;/short&gt;
+          &lt;argument&gt;heapId2Argument&lt;/argument&gt;
+          &lt;required&gt;true&lt;/required&gt;
+          &lt;description&gt;the ID of the heapdump to analyze&lt;/description&gt;
+        &lt;/option&gt;
+        &lt;option&gt;
+          &lt;long&gt;limit2&lt;/long&gt;
+          &lt;short&gt;L&lt;/short&gt;
+          &lt;argument&gt;limit2Argument&lt;/argument&gt;
+          &lt;required&gt;false&lt;/required&gt;
+          &lt;description&gt;limit search to top N results, defaults to 10&lt;/description&gt;
+        &lt;/option&gt;
       &lt;/options&gt;
+      &lt;environments&gt;
+        &lt;environment&gt;shell&lt;/environment&gt;
+      &lt;/environments&gt;
       &lt;bundles&gt;
-    &lt;bundle&gt;thermostat-platform-common-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-controllers-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-common-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-controllers-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
       &lt;/bundles&gt;
       &lt;dependencies&gt;
-    &lt;dependency&gt;thermostat-common-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
+        &lt;dependency&gt;thermostat-common-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
       &lt;/dependencies&gt;
     &lt;/command&gt;
   &lt;/commands&gt;
@@ -174,14 +187,14 @@
       &lt;name&gt;platform3&lt;/name&gt;
       &lt;bundles&gt;
         &lt;bundle&gt;thermostat-platform-common-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-controllers-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-command-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-common-export-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
-    &lt;bundle&gt;thermostat-platform-swing-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-controllers-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-command-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-common-export-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
+        &lt;bundle&gt;thermostat-platform-swing-0.6.0-SNAPSHOT.jar&lt;/bundle&gt;
       &lt;/bundles&gt;
       &lt;dependencies&gt;
-    &lt;dependency&gt;thermostat-common-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
-    &lt;dependency&gt;thermostat-client-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
+        &lt;dependency&gt;thermostat-common-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
+        &lt;dependency&gt;thermostat-client-core-0.6.0-SNAPSHOT.jar&lt;/dependency&gt;
       &lt;/dependencies&gt;
     &lt;/extension&gt;
   &lt;/extensions&gt;