You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/09/25 10:31:38 UTC

svn commit: r698864 - in /geronimo/gshell/trunk/gshell-commands: gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/ gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/ gshell-repository/src/main/jav...

Author: jdillon
Date: Thu Sep 25 01:31:38 2008
New Revision: 698864

URL: http://svn.apache.org/viewvc?rev=698864&view=rev
Log:
Externalize token for i18n

Modified:
    geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/JavaAction.java
    geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/JavaAction.properties
    geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/SleepAction.properties
    geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
    geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/resources/org/apache/geronimo/gshell/commands/repository/ResolveAction.properties
    geronimo/gshell/trunk/gshell-commands/gshell-vfs/src/main/resources/org/apache/geronimo/gshell/commands/vfs/CopyAction.properties

Modified: geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/JavaAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/JavaAction.java?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/JavaAction.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/java/org/apache/geronimo/gshell/commands/optional/JavaAction.java Thu Sep 25 01:31:38 2008
@@ -44,13 +44,13 @@
 {
     private final Logger log = LoggerFactory.getLogger(getClass());
 
-    @Option(name="-m", aliases={"--method"}, token="METHOD")
+    @Option(name="-m", aliases={"--method"})
     private String methodName = "main";
 
-    @Argument(index=0, token="CLASSNAME", required=true)
+    @Argument(index=0, required=true)
     private String className;
 
-    @Argument(index=1, token="ARG")
+    @Argument(index=1)
     private List<String> args;
 
     public Object execute(final CommandContext context) throws Exception {

Modified: geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/JavaAction.properties
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/JavaAction.properties?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/JavaAction.properties (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/JavaAction.properties Thu Sep 25 01:31:38 2008
@@ -26,10 +26,13 @@
 command.description=Execute a Java standard application.
 
 command.option.methodName=Invoke a named method
+command.option.methodName.token=METHOD
 
 command.argument.className=The name of the class to invoke
+command.argument.className.token=CLASSNAME
 
 command.argument.args=Arguments to pass to the METHOD of CLASSNAME
+command.argument.args.token=ARGS
 
 command.manual=\
   TODO: java manual
\ No newline at end of file

Modified: geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/SleepAction.properties
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/SleepAction.properties?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/SleepAction.properties (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-optional/src/main/resources/org/apache/geronimo/gshell/commands/optional/SleepAction.properties Thu Sep 25 01:31:38 2008
@@ -26,6 +26,7 @@
 command.description=Sleep for a bit then wake up.
 
 command.argument.time=Time in milliseconds
+command.argument.time.token=MS
 
 command.manual=\
   TODO: sleep manual
\ No newline at end of file

Modified: geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/java/org/apache/geronimo/gshell/commands/repository/ResolveAction.java Thu Sep 25 01:31:38 2008
@@ -53,23 +53,23 @@
     // TODO: Consider using <g>:<a>:<v>:<s>:<t> notation instead of, or in addtion this?
     //
     
-    @Option(name="-g", aliases={"--groupId"}, argumentRequired=true, token="GROUP-ID", required=true)
+    @Option(name="-g", aliases={"--groupId"}, argumentRequired=true, required=true)
     private String groupId;
 
-    @Option(name="-a", aliases={"--artifactId"}, argumentRequired=true, token="ARTIFACT-ID", required=true)
+    @Option(name="-a", aliases={"--artifactId"}, argumentRequired=true, required=true)
     private String artifactId;
 
-    @Option(name="-v", aliases={"--version"}, argumentRequired=true, token="VERSION", required=true)
+    @Option(name="-v", aliases={"--version"}, argumentRequired=true, required=true)
     private String version;
 
-    @Option(name="-t", aliases={"--type"}, argumentRequired=true, token="TYPE")
+    @Option(name="-t", aliases={"--type"}, argumentRequired=true)
     private String type = "jar";
 
     //
     // TODO: Add classifier
     //
 
-    @Option(name="-s", aliases={"--scope"}, argumentRequired=true, token="SCOPE")
+    @Option(name="-s", aliases={"--scope"}, argumentRequired=true)
     private String scope;
 
     @Option(name="-T", aliases={"--transitive"})

Modified: geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/resources/org/apache/geronimo/gshell/commands/repository/ResolveAction.properties
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/resources/org/apache/geronimo/gshell/commands/repository/ResolveAction.properties?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/resources/org/apache/geronimo/gshell/commands/repository/ResolveAction.properties (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-repository/src/main/resources/org/apache/geronimo/gshell/commands/repository/ResolveAction.properties Thu Sep 25 01:31:38 2008
@@ -26,14 +26,19 @@
 command.description=Resolve repository artifacts.
 
 command.option.groupId=Specify the groupId
+command.option.groupId.token=GROUP-ID
 
 command.option.artifactId=Specify the artifactId
+command.option.artifactId.token=ARTIFACT-ID
 
 command.option.version=Specify the version
+command.option.version.token=VERSION
 
 command.option.type=Specify the type
+command.option.type.token=TYPE
 
 command.option.scope=Specify the resolution scope
+command.option.scope.token=SCOPE
 
 command.option.transitive=Resolve transitive dependencies
 

Modified: geronimo/gshell/trunk/gshell-commands/gshell-vfs/src/main/resources/org/apache/geronimo/gshell/commands/vfs/CopyAction.properties
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-vfs/src/main/resources/org/apache/geronimo/gshell/commands/vfs/CopyAction.properties?rev=698864&r1=698863&r2=698864&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-vfs/src/main/resources/org/apache/geronimo/gshell/commands/vfs/CopyAction.properties (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-vfs/src/main/resources/org/apache/geronimo/gshell/commands/vfs/CopyAction.properties Thu Sep 25 01:31:38 2008
@@ -26,8 +26,10 @@
 command.description=Copy files between VFS sources.
 
 command.argument.sourceName=Source file name
+command.argument.sourceName.token=SOURCE
 
 command.argument.targetName=Target file name
+command.argument.targetName.token=TARGET
 
 command.manual=\
   TODO: copy manual
\ No newline at end of file