Fixed bug 4088: ant tasks do not work with spaces in the path
authorCarlos Romero <carlos.romero@openbravo.com>
Mon, 23 Jun 2008 21:22:01 +0000
changeset 1337 13017300f790
parent 1336 4a2d10dd3fbd
child 1338 f5f18adc3117
Fixed bug 4088: ant tasks do not work with spaces in the path
Now it is possible to specify a path with spaces
src-trl/build.xml
src-wad/build.xml
src/build.xml
src/buildAD.xml
--- a/src-trl/build.xml	Mon Jun 23 20:09:56 2008 +0000
+++ b/src-trl/build.xml	Mon Jun 23 21:22:01 2008 +0000
@@ -12,7 +12,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SL 
- * All portions are Copyright (C) 2001-2006 Openbravo SL 
+ * All portions are Copyright (C) 2001-2008 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -57,7 +57,7 @@
 
   <target name="sqlc" depends="init">
     <java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
-      <arg line="${base.config}/Openbravo.properties .xsql ./src ${build.trl.sqlc}"/>
+      <arg line="'${base.config}'/Openbravo.properties .xsql ./src '${build.trl.sqlc}'"/>
       <classpath refid="trl.class.path"/>
     </java>
   </target>
--- a/src-wad/build.xml	Mon Jun 23 20:09:56 2008 +0000
+++ b/src-wad/build.xml	Mon Jun 23 21:22:01 2008 +0000
@@ -13,7 +13,7 @@
  * and  limitations under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is [Autores] and Openbravo SL 
- * All portions are Copyright (C) 2005-2006 Openbravo SL 
+ * All portions are Copyright (C) 2005-2008 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s): Openbravo S.L.
  ************************************************************************
@@ -58,7 +58,7 @@
 
   <target name="sqlc" depends="init">
     <java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
-      <arg line="${base.config}/Openbravo.properties .xsql ./src/org ${build.wad.sqlc}"/>
+      <arg line="'${base.config}'/Openbravo.properties .xsql ./src/org '${build.wad.sqlc}'"/>
       <classpath refid="wad.class.path"/>
     </java>
   </target>
--- a/src/build.xml	Mon Jun 23 20:09:56 2008 +0000
+++ b/src/build.xml	Mon Jun 23 21:22:01 2008 +0000
@@ -13,7 +13,7 @@
  * and  limitations under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is [Autores] and Openbravo SL 
- * All portions are Copyright (C) 2005-2006 Openbravo SL 
+ * All portions are Copyright (C) 2005-2008 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s): Openbravo S.L.
  ************************************************************************
@@ -113,7 +113,7 @@
 
   <target name="sqlc" depends="copy.srcClient">
     <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}">
-      <arg line="${base.config}/Openbravo.properties .xsql . ${build.sqlc}/src"/>
+      <arg line="'${base.config}'/Openbravo.properties .xsql . '${build.sqlc}'/src"/>
       <classpath refid="project.class.path"/>
     </java>
     <copy file="${base.src}/buildAD.xml" tofile="${build.AD}/build.xml"/>
@@ -252,7 +252,7 @@
 
   <target name="compile.translate">
     <java classname="org.openbravo.translate.Translate" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
-      <arg line="${base.config}/Openbravo.properties ${extension} ${basedir} ${base.design} ${package}"/>
+      <arg line="'${base.config}'/Openbravo.properties ${extension} ${basedir} '${base.design}' ${package}"/>
       <classpath refid="project.class.path"/>
     </java>
   </target>
--- a/src/buildAD.xml	Mon Jun 23 20:09:56 2008 +0000
+++ b/src/buildAD.xml	Mon Jun 23 21:22:01 2008 +0000
@@ -12,7 +12,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SL 
- * All portions are Copyright (C) 2001-2007 Openbravo SL 
+ * All portions are Copyright (C) 2001-2008 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -24,7 +24,7 @@
   
   <target name="buildAD">
 	<java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}">
-      <arg line="${base.config}/Openbravo.properties .xsql ../srcAD ${build.sqlc}/src"/>
+      <arg line="'${base.config}'/Openbravo.properties .xsql ../srcAD '${build.sqlc}'/src"/>
       <classpath refid="project.class.path"/>
     </java>