geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r411474 - in /geronimo/sandbox/gshell/trunk: ./ gshell-api/src/main/java/org/apache/geronimo/gshell/command/ gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/ gshell-commands/gshell-st...
Date Sat, 03 Jun 2006 22:09:33 GMT
Author: jdillon
Date: Sat Jun  3 15:09:32 2006
New Revision: 411474

URL: http://svn.apache.org/viewvc?rev=411474&view=rev
Log:
Added enable/disable flags to command def

Modified:
    geronimo/sandbox/gshell/trunk/NOTES.txt
    geronimo/sandbox/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDefinition.java
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/script.properties
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/cat.properties
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/echo.properties
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/java.properties
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/sleep.properties
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/exit.properties
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/help.properties
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/set.properties
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/unset.properties
    geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/server.properties

Modified: geronimo/sandbox/gshell/trunk/NOTES.txt
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/NOTES.txt?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/NOTES.txt (original)
+++ geronimo/sandbox/gshell/trunk/NOTES.txt Sat Jun  3 15:09:32 2006
@@ -89,6 +89,4 @@
     /vfs/browser ftp://whatever
     ...
 
-Hook up message bundles to externalized strings for commands,
-    Maybe provide that as a standard hook for commands
-    Try to extern all messages (including --help bits), so we can i18n
+Convert all commands to use MessageSource
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDefinition.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDefinition.java?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDefinition.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-api/src/main/java/org/apache/geronimo/gshell/command/CommandDefinition.java
Sat Jun  3 15:09:32 2006
@@ -33,6 +33,8 @@
 
     private final String[] aliases;
 
+    private final boolean enabled;
+
     public CommandDefinition(final Properties props) throws InvalidDefinitionException {
         if (props == null) {
             throw new IllegalArgumentException("Properties is null");
@@ -49,6 +51,8 @@
         }
 
         this.aliases = loadAliasesFrom(props);
+
+        this.enabled = Boolean.getBoolean(props.getProperty("enable"));
     }
 
     //
@@ -81,6 +85,10 @@
 
     public String[] getAliases() {
         return aliases;
+    }
+
+    public boolean isEnabled() {
+        return enabled;
     }
 
     public String toString() {

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/script.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/script.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/script.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/script.properties
Sat Jun  3 15:09:32 2006
@@ -10,3 +10,4 @@
 
 category=scripting
 
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/cat.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/cat.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/cat.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/cat.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 aliases=concat,print
 
 category=standard
+
+enable=true

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/echo.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/echo.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/echo.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/echo.properties
Sat Jun  3 15:09:32 2006
@@ -6,6 +6,8 @@
 
 name=echo
 
-#aliases=
+aliases=print
 
 category=standard
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/java.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/java.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/java.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/java.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 #aliases=
 
 category=standard
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/sleep.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/sleep.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/sleep.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-standard-commands/src/main/resources/META-INF/org.apache.geronimo.gshell.command/sleep.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 # aliases=
 
 category=standard
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/exit.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/exit.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/exit.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/exit.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 aliases=quit,bye
 
 category=builtins
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/help.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/help.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/help.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/help.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 #aliases=
 
 category=builtins
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/set.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/set.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/set.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/set.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 #aliases=
 
 category=builtins
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/unset.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/unset.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/unset.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/unset.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 #aliases=
 
 category=builtins
+
+enable=true
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/server.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/server.properties?rev=411474&r1=411473&r2=411474&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/server.properties
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-server/gshell-server-core/src/main/resources/META-INF/org.apache.geronimo.gshell.command/server.properties
Sat Jun  3 15:09:32 2006
@@ -9,3 +9,5 @@
 # aliases=
 
 category=/gshell/server
+
+enable=true
\ No newline at end of file



Mime
View raw message