Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2012-12-11 06:40:43 -0500
committerGlyn Normington2012-12-11 06:40:43 -0500
commitd5746e252b01acbe77b57ec3247d0a97c0713ba6 (patch)
treee72ecb76c7cee1f2750332144fe93945792673c0
parent3b742b7b7e6f63938d693e423ba54aa561fd3f01 (diff)
downloadorg.eclipse.virgo.kernel-d5746e252b01acbe77b57ec3247d0a97c0713ba6.tar.gz
org.eclipse.virgo.kernel-d5746e252b01acbe77b57ec3247d0a97c0713ba6.tar.xz
org.eclipse.virgo.kernel-d5746e252b01acbe77b57ec3247d0a97c0713ba6.zip
393858: offer config operations which take a version parameter, even though that version can only currently be zero
-rw-r--r--org.eclipse.virgo.shell.command/.classpath2
-rw-r--r--org.eclipse.virgo.shell.command/src/main/java/org/eclipse/virgo/shell/internal/commands/ConfigCommands.java26
2 files changed, 27 insertions, 1 deletions
diff --git a/org.eclipse.virgo.shell.command/.classpath b/org.eclipse.virgo.shell.command/.classpath
index 5cb261ae..5db25723 100644
--- a/org.eclipse.virgo.shell.command/.classpath
+++ b/org.eclipse.virgo.shell.command/.classpath
@@ -53,6 +53,6 @@
<classpathentry kind="var" path="IVY_CACHE/org.eclipse.virgo.mirrored/org.slf4j.jcl/1.7.2.v20121108-1250/org.slf4j.jcl-1.7.2.v20121108-1250.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/org.eclipse.virgo.kernel.services"/>
<classpathentry kind="var" path="IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi/3.6.0.D-20121206235702/org.eclipse.virgo.util.osgi-3.6.0.D-20121206235702.jar" sourcepath="/IVY_CACHE/org.eclipse.virgo.util/org.eclipse.virgo.util.osgi/3.1.0.M01/org.eclipse.virgo.util.osgi-sources-3.1.0.M01.jar"/>
- <classpathentry kind="var" path="IVY_CACHE/org.eclipse.virgo.mirrored/org.apache.felix.gogo.runtime/0.8.0.v201108120515/org.apache.felix.gogo.runtime-0.8.0.v201108120515.jar" sourcepath="/IVY_CACHE/org.apache.felix/org.apache.felix.gogo.runtime/0.8.0.v201107131313/org.apache.felix.gogo.runtime-sources-0.8.0.v201107131313.jar"/>
+ <classpathentry kind="var" path="IVY_CACHE/org.eclipse.virgo.mirrored/org.apache.felix.gogo.runtime/0.10.0.v201209301036/org.apache.felix.gogo.runtime-0.10.0.v201209301036.jar" sourcepath="/IVY_CACHE/org.apache.felix/org.apache.felix.gogo.runtime/0.8.0.v201107131313/org.apache.felix.gogo.runtime-sources-0.8.0.v201107131313.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
diff --git a/org.eclipse.virgo.shell.command/src/main/java/org/eclipse/virgo/shell/internal/commands/ConfigCommands.java b/org.eclipse.virgo.shell.command/src/main/java/org/eclipse/virgo/shell/internal/commands/ConfigCommands.java
index 076ba891..36dbe4b3 100644
--- a/org.eclipse.virgo.shell.command/src/main/java/org/eclipse/virgo/shell/internal/commands/ConfigCommands.java
+++ b/org.eclipse.virgo.shell.command/src/main/java/org/eclipse/virgo/shell/internal/commands/ConfigCommands.java
@@ -57,6 +57,11 @@ final class ConfigCommands extends AbstractInstallArtifactBasedCommands<Manageab
return examine(name, EMPTY_VERSION_STRING, GLOBAL_REGION_NAME);
}
+ @Command("examine")
+ public List<String> examine(String name, String version) {
+ return examine(name, version, GLOBAL_REGION_NAME);
+ }
+
@Override
public List<String> examine(String name, String versionString, String regionName) {
ManageableArtifact artifact;
@@ -80,18 +85,39 @@ final class ConfigCommands extends AbstractInstallArtifactBasedCommands<Manageab
return start(name, EMPTY_VERSION_STRING, GLOBAL_REGION_NAME);
}
+ @Command("start")
+ public List<String> start(String name, String version) {
+ return start(name, version, GLOBAL_REGION_NAME);
+ }
+
@Command("stop")
public List<String> stop(String name) {
return stop(name, EMPTY_VERSION_STRING, GLOBAL_REGION_NAME);
}
+ @Command("stop")
+ public List<String> stop(String name, String version) {
+ return stop(name, version, GLOBAL_REGION_NAME);
+ }
+
@Command("refresh")
public List<String> refresh(String name) {
return refresh(name, EMPTY_VERSION_STRING, GLOBAL_REGION_NAME);
}
+ @Command("refresh")
+ public List<String> refresh(String name, String version) {
+ return refresh(name, version, GLOBAL_REGION_NAME);
+ }
+
@Command("uninstall")
public List<String> uninstall(String name) {
return uninstall(name, EMPTY_VERSION_STRING, GLOBAL_REGION_NAME);
}
+
+ @Command("uninstall")
+ public List<String> uninstall(String name, String version) {
+ return uninstall(name, version, GLOBAL_REGION_NAME);
+ }
+
}

Back to the top