related to issue 39229: make it work in Windows
authorAsier Lostalé <asier.lostale@openbravo.com>
Mon, 10 Sep 2018 12:40:04 +0200
changeset 34765 3e0f540c5540
parent 34764 9a51de54cd96
child 34766 e5566da8d2a0
related to issue 39229: make it work in Windows

Using file.separator in Windows was interpreted as regexp escape character.

Using common slash works fine also in Windows.
src/build.xml
--- a/src/build.xml	Fri Sep 07 11:51:03 2018 +0200
+++ b/src/build.xml	Mon Sep 10 12:40:04 2018 +0200
@@ -425,7 +425,7 @@
         <include name="*/referencedata/standard/*.xml" />
         <include name="*/referencedata/accounts/COA.csv" />
       </fileset>
-      <mapper type="regexp" from="(.*\${file.separator})referencedata\${file.separator}(standard|accounts)\${file.separator}(.*)" to="\2${file.separator}\1\3" />
+      <mapper type="regexp" from="(.*\${file.separator})referencedata\${file.separator}(standard|accounts)\${file.separator}(.*)" to="\2/\1\3" />
     </copy>
 
     <antcall target="build.web.folder" inheritAll="true" inheritrefs="true" />