]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Fix regex for relative path replacement on cdn target
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 28 Oct 2010 08:09:30 +0000 (10:09 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 28 Oct 2010 08:09:30 +0000 (10:09 +0200)
build/build.xml

index 96a828a110968146d2412b75ca56c14d6e378fb8..4cc7c62b6ed5ef84c1b2b1bd0ade61be15c9b9e6 100644 (file)
                <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>