geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r726063 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Date Fri, 12 Dec 2008 16:02:26 GMT
Author: jdillon
Date: Fri Dec 12 08:02:26 2008
New Revision: 726063

URL: http://svn.apache.org/viewvc?rev=726063&view=rev
Log:
Slight opt

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java?rev=726063&r1=726062&r2=726063&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Fri Dec 12 08:02:26 2008
@@ -119,18 +119,18 @@
             }
         };
 
+        branding = application.getModel().getBranding();
+
         // HACK: Add ourself to variables so commands can get to us.  Maybe need to add to
^^^ and expose in CommandContent
         vars.set("SHELL", this, true);
 
         // HACK: Add history for the 'history' command, since its not part of the Shell interf
it can't really access it easy, resolve with ^^^
         vars.set("SHELL.HISTORY", getHistory(), true);
 
-        vars.set("gshell.prompt", application.getModel().getBranding().getPrompt());
+        vars.set("gshell.prompt", branding.getPrompt());
 
         vars.set(CommandResolver.GROUP, "/");
 
-        branding = application.getModel().getBranding();
-
         vars.set("USERNAME", application.getUserName());
         vars.set("HOSTNAME", application.getLocalHost());
         



Mime
View raw message