]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Fix regeex for checksum-file-path
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 30 Mar 2010 11:37:12 +0000 (13:37 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 30 Mar 2010 11:37:12 +0000 (13:37 +0200)
build/build.xml

index 780de4157fcca48e77cfadb77743cb5bd5781d82..cdd5aff1118c7b82376dc403411ba65392898453 100644 (file)
                <for param="file">
                <path><fileset dir="${cdndist.dir}" includes="**/" excludes="**/*.MD5" /></path>
                        <sequential>
-                               <propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?${cdndist.dir}[\\/](.+)$" replace="\1"/>
+                               <!-- @{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="${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>