Skip to content
Permalink
Browse files

Build: Fix regex for relative path replacement on cdn target

  • Loading branch information...
jzaefferer committed Oct 28, 2010
1 parent 226aa35 commit ba28d11391c64f5e2edd15c5bbc0b11757bdbcda
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/build.xml
@@ -359,7 +359,7 @@
<path><fileset dir="${cdndist.dir}" includes="**/" excludes="**/*.MD5" /></path>
<sequential>
<!-- @{file} is an absolute path, use that ugly regexes to make it relative -->
<propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?googlecdn[\\/](.+)$" replace="\1"/>
<propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?cdn[\\/](.+)$" replace="\1"/>
<propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" />
<concat destfile="${cdndist.dir}/MANIFEST" append="yes">${relativepath} </concat>
<concat destfile="${cdndist.dir}/MANIFEST" append="yes"><file file="@{file}.MD5" /></concat>

0 comments on commit ba28d11

Please sign in to comment.
You can’t perform that action at this time.