geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r372333 - in /geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console: databasemanager/wizard/DatabasePoolPortlet.java jmsmanager/wizard/AbstractHandler.java
Date Wed, 25 Jan 2006 22:07:30 GMT
Author: ammulder
Date: Wed Jan 25 14:07:28 2006
New Revision: 372333

URL: http://svn.apache.org/viewcvs?rev=372333&view=rev
Log:
Put %20 in URLs for URLClassLoader instead of spaces to attempt to avoid
problems deploying in Windows if Geronimo is installed to Program Files,
etc.  GERONIMO-1426

Modified:
    geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
    geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/wizard/AbstractHandler.java

Modified: geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java?rev=372333&r1=372332&r2=372333&view=diff
==============================================================================
--- geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
(original)
+++ geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/wizard/DatabasePoolPortlet.java
Wed Jan 25 14:07:28 2006
@@ -828,6 +828,10 @@
             DeploymentManager mgr = PortletManager.getDeploymentManager(request);
             try {
                 URL url = getRAR(request, data.getRarPath());
+                String str = url.toString();
+                if(str.indexOf(' ') > -1) {
+                    url = new URL(str.replaceAll(" ", "%20")); // try to avoid problems with
spaces in path on Windows
+                }
                 ConnectorDeployable deployable = new ConnectorDeployable(url);
                 DeploymentConfiguration config = mgr.createConfiguration(deployable);
                 final DDBeanRoot ddBeanRoot = deployable.getDDBeanRoot();

Modified: geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/wizard/AbstractHandler.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/wizard/AbstractHandler.java?rev=372333&r1=372332&r2=372333&view=diff
==============================================================================
--- geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/wizard/AbstractHandler.java
(original)
+++ geronimo/branches/1.0/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/wizard/AbstractHandler.java
Wed Jan 25 14:07:28 2006
@@ -514,6 +514,10 @@
             DeploymentManager mgr = PortletManager.getDeploymentManager(request);
             try {
                 URL url = PortletManager.getRepositoryEntry(request, data.getRarURI());
+                String str = url.toString();
+                if(str.indexOf(' ') > -1) {
+                    url = new URL(str.replaceAll(" ", "%20")); // try to avoid problems with
spaces in path on Windows
+                }
                 ConnectorDeployable deployable = new ConnectorDeployable(url);
                 DeploymentConfiguration config = mgr.createConfiguration(deployable);
                 final DDBeanRoot ddBeanRoot = deployable.getDDBeanRoot();



Mime
View raw message