]> source.dussan.org Git - jquery-ui.git/commitdiff
ant build: Fixed file name parsing.
authorScott González <scott.gonzalez@gmail.com>
Thu, 26 Nov 2009 02:17:16 +0000 (02:17 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 26 Nov 2009 02:17:16 +0000 (02:17 +0000)
Fixes #4973 - Build fails on non-Windows OS.

build/build.xml

index 4b88877422598c93ad7297d7fb8d576d00bf3e4a..da475d6de6c2e215bdd06b7b9ceddb8199ce8acf 100644 (file)
@@ -59,8 +59,7 @@
                <for param="file">
                        <path><fileset dir="${dist.dir}/ui/minified/" includes="*.js" /></path>
                        <sequential>
-                               <basename file="@{file}" property="target" />
-                               <propertyregex override="yes" property="target" input="${target}" regexp="(.+)\.min\.js$" replace="\1"/>
+                               <propertyregex override="yes" property="target" input="@{file}" regexp=".*[\\/](.+)\.min\.js$" replace="\1"/>
                                <concat destfile="${dist.dir}/ui-headered/${target}.min.js">
                                        <header file="${dist.dir}/headers/${target}.js" />
                                        <fileset file="@{file}" />