r3479 committed - ant build: Fixed file name parsing....

r3479 committed - ant build: Fixed file name parsing....

Revision: 3479
Author: scott.gonzalez
Date: Wed Nov 25 18:17:16 2009
Log: ant build: Fixed file name parsing.
Fixes #4973 - Build fails on non-Windows OS.
http://code.google.com/p/jquery-ui/source/detail?r=3479
Modified:
/trunk/build/build.xml
=======================================
--- /trunk/build/build.xml    Thu Nov 12 19:59:03 2009
+++ /trunk/build/build.xml    Wed Nov 25 18:17:16 2009
@@ -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}" />
--