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/05/29 06:18:39 UTC

svn commit: r661203 - /geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java

Author: jdillon
Date: Wed May 28 21:18:39 2008
New Revision: 661203

URL: http://svn.apache.org/viewvc?rev=661203&view=rev
Log:
use File.toURI().toURL()

Modified:
    geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java

Modified: geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java?rev=661203&r1=661202&r2=661203&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java (original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-bsf/src/main/java/org/apache/geronimo/gshell/commands/bsf/ScriptCommand.java Wed May 28 21:18:39 2008
@@ -105,7 +105,7 @@
         	File pathFile = new File(path);
         	URL pathURL;
         	if (pathFile.isFile()) {
-        		pathURL = pathFile.toURL();
+        		pathURL = pathFile.toURI().toURL();
         	} else {
         		URI pathURI = new URI(path);
         		pathURL = pathURI.toURL();