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 2007/10/05 09:51:43 UTC

svn commit: r582109 - /geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java

Author: jdillon
Date: Fri Oct  5 00:51:42 2007
New Revision: 582109

URL: http://svn.apache.org/viewvc?rev=582109&view=rev
Log:
Drop unused bits from previous refactor

Modified:
    geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java

Modified: geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java?rev=582109&r1=582108&r2=582109&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java (original)
+++ geronimo/sandbox/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/DefaultCommandExecutor.java Fri Oct  5 00:51:42 2007
@@ -19,20 +19,16 @@
 
 package org.apache.geronimo.gshell;
 
-import java.util.UUID;
-
 import org.apache.geronimo.gshell.command.Command;
 import org.apache.geronimo.gshell.command.CommandContext;
 import org.apache.geronimo.gshell.command.CommandExecutor;
 import org.apache.geronimo.gshell.command.CommandNotFoundException;
 import org.apache.geronimo.gshell.command.IO;
 import org.apache.geronimo.gshell.command.Variables;
-import org.apache.geronimo.gshell.command.descriptor.CommandDescriptor;
 import org.apache.geronimo.gshell.common.Arguments;
 import org.apache.geronimo.gshell.common.StopWatch;
 import org.apache.geronimo.gshell.layout.LayoutManager;
 import org.apache.geronimo.gshell.shell.Environment;
-import org.codehaus.plexus.PlexusContainer;
 import org.codehaus.plexus.component.annotations.Component;
 import org.codehaus.plexus.component.annotations.Requirement;
 import org.slf4j.Logger;
@@ -50,9 +46,6 @@
     private Logger log = LoggerFactory.getLogger(getClass());
 
     @Requirement
-    private PlexusContainer container;
-
-    @Requirement
     private LayoutManager layoutManager;
 
     @Requirement
@@ -108,11 +101,6 @@
         if (command == null) {
             throw new CommandNotFoundException(path);
         }
-
-        // Create a new child container for the invocation and lookup the command instance
-        String realmId = "gshell:" + UUID.randomUUID();
-
-        log.debug("Child container realm: {}", realmId);
 
         // Setup the command context and pass it to the command instance
         CommandContext context = new CommandContext() {