Author: solomax
Date: Sun Mar 16 08:53:33 2014
New Revision: 1577998

URL: http://svn.apache.org/r1577998
Log:
[OPENMEETINGS-951] command line installer works as expected if path contains 
spaces

Modified:
    
openmeetings/branches/3.0.x/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
    
openmeetings/trunk/singlewebapp/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java

Modified: 
openmeetings/branches/3.0.x/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
URL: 
http://svn.apache.org/viewvc/openmeetings/branches/3.0.x/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java?rev=1577998&r1=1577997&r2=1577998&view=diff
==============================================================================
--- 
openmeetings/branches/3.0.x/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
 (original)
+++ 
openmeetings/branches/3.0.x/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
 Sun Mar 16 08:53:33 2014
@@ -101,7 +101,7 @@ public abstract class ConnectionProperti
                TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
                Transformer transformer = transformerFactory.newTransformer();
                DOMSource source = new DOMSource(doc);
-               transformer.transform(source, new StreamResult(destXml));
+               transformer.transform(source, new 
StreamResult(destXml.getCanonicalPath())); //this constructor is used to avoid 
transforming path to URI
        }
        
        protected Attr patchAttribute(Attr attr, String host, String port, 
String db, String user, String pass) {

Modified: 
openmeetings/trunk/singlewebapp/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
URL: 
http://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java?rev=1577998&r1=1577997&r2=1577998&view=diff
==============================================================================
--- 
openmeetings/trunk/singlewebapp/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
 (original)
+++ 
openmeetings/trunk/singlewebapp/src/install/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
 Sun Mar 16 08:53:33 2014
@@ -101,7 +101,7 @@ public abstract class ConnectionProperti
                TransformerFactory transformerFactory = 
TransformerFactory.newInstance();
                Transformer transformer = transformerFactory.newTransformer();
                DOMSource source = new DOMSource(doc);
-               transformer.transform(source, new StreamResult(destXml));
+               transformer.transform(source, new 
StreamResult(destXml.getCanonicalPath())); //this constructor is used to avoid 
transforming path to URI
        }
        
        protected Attr patchAttribute(Attr attr, String host, String port, 
String db, String user, String pass) {


Reply via email to