Fixes issue 20361: Files with 'web' in its name are copied propertly to Webfolder
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 03 May 2012 10:43:29 +0200
changeset 16403 9a7580f8f358
parent 16402 4a98ad8c57f0
child 16404 080a243f3f16
Fixes issue 20361: Files with 'web' in its name are copied propertly to Webfolder

A regular expression has been fixed in the build.web.folder.base task, and now the files that contain the substring 'web' are copier to the proper folder in webfolder.

Before the fix:
modules/org.openbravo.test.issue 20361/web/org.openbravo.test.issue 20361/webpos.js -> WebContent/web/pos.js

After the fix:
modules/org.openbravo.test.issue 20361/web/org.openbravo.test.issue 20361/webpos.js -> WebContent/web/org.openbravo.test.issue 20361/webpos.js
src/build.xml
--- a/src/build.xml	Wed May 02 23:40:04 2012 +0200
+++ b/src/build.xml	Thu May 03 10:43:29 2012 +0200
@@ -616,7 +616,7 @@
         <include name="*/web/*/**" />
         <exclude name="*/web/*/skins/**" />
       </fileset>
-      <mapper type="regexp" from="(.*)(\${file.separator}web)(.*)" to="\3" />
+      <mapper type="regexp" from="(.*)(\${file.separator}web)(\${file.separator}.*)" to="\3" />
     </copy>
   </target>