geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r393934 - /geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java
Date Thu, 13 Apr 2006 20:55:41 GMT
Author: djencks
Date: Thu Apr 13 13:55:39 2006
New Revision: 393934

URL: http://svn.apache.org/viewcvs?rev=393934&view=rev
Log:
fix class cast exception

Modified:
    geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java

Modified: geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java?rev=393934&r1=393933&r2=393934&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java
(original)
+++ geronimo/branches/1.1/modules/system/src/java/org/apache/geronimo/system/main/ClientCommandLine.java
Thu Apr 13 13:55:39 2006
@@ -20,6 +20,8 @@
 import java.util.Collections;
 import javax.management.ObjectName;
 
+import org.apache.geronimo.kernel.repository.Artifact;
+
 /**
  * @version $Revision$ $Date$
  */
@@ -40,7 +42,7 @@
             System.exit(0);
         }
         try {
-            URI configuration = new URI(args[0]);
+            Artifact configuration = Artifact.create(args[0]);
             String[] clientArgs = new String[args.length -1];
             System.arraycopy(args, 1, clientArgs, 0, clientArgs.length);
             new ClientCommandLine(configuration, clientArgs);
@@ -67,7 +69,7 @@
     }
 
 
-    public ClientCommandLine(URI configuration, String[] args) throws Exception {
+    public ClientCommandLine(Artifact configuration, String[] args) throws Exception {
         invokeMainGBean(Collections.singletonList(configuration), new ObjectName("geronimo.client:type=ClientContainer"),
"main", args);
     }
 }



Mime
View raw message