]> source.dussan.org Git - jquery-ui.git/commitdiff
Ant Build: Fixed references to source files.
authorScott González <scott.gonzalez@gmail.com>
Fri, 13 Nov 2009 03:59:03 +0000 (03:59 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 13 Nov 2009 03:59:03 +0000 (03:59 +0000)
Fixes #4896 - Build fails on non-Windows OS.

build/build.xml

index f77e4046ac6d10e5e5b1e8dccf39cb8d1ac0218a..4b88877422598c93ad7297d7fb8d576d00bf3e4a 100644 (file)
@@ -59,7 +59,8 @@
                <for param="file">
                        <path><fileset dir="${dist.dir}/ui/minified/" includes="*.js" /></path>
                        <sequential>
-                               <propertyregex override="yes" property="target" input="@{file}" regexp=".+\\(.+)\.min\.js$" replace="\1"/>
+                               <basename file="@{file}" property="target" />
+                               <propertyregex override="yes" property="target" input="${target}" regexp="(.+)\.min\.js$" replace="\1"/>
                                <concat destfile="${dist.dir}/ui-headered/${target}.min.js">
                                        <header file="${dist.dir}/headers/${target}.js" />
                                        <fileset file="@{file}" />
@@ -86,7 +87,7 @@
 
                <concat destfile="${dist.dir}/ui/${concatenated}.js">
                        <filelist dir="${src.dir}/" files="${core.files}" />
-                       <fileset dir="${src.dir}/" includes="ui.*.js, effects.*.js" excludes="${core.files}" />
+                       <fileset dir="${src.dir}/" includes="jquery.ui.*.js, effects.*.js" excludes="${core.files}" />
                </concat>
                <echo message="Concatenated built." />
 
 
                <apply executable="java" parallel="false">
                        <filelist dir="${dist.dir}/ui/" files="${concatenated}.js" />
-                       <fileset dir="${src.dir}/" includes="ui.*.js, effects.*.js" />
+                       <fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
                        <arg line="-jar" />
                        <arg path="${yui-jar}" />
                        <arg value="--charset" />  
 
                <apply executable="java" parallel="false">
                        <filelist dir="${dist.dir}/ui/i18n/" files="${concatenated.i18n}.js" />
-                       <fileset dir="${src.dir}/i18n/" includes="ui.*.js" />
+                       <fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" />
                        <arg line="-jar" />
                        <arg path="${yui-jar}" />
                        <arg value="--charset" />  
                </copy>
 
                <copy overwrite="true" todir="${dist.dir}/ui/">
-                       <fileset dir="${src.dir}/" includes="ui.*.js, effects.*.js" />
+                       <fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
                </copy>
 
                <copy overwrite="true" todir="${dist.dir}/ui/i18n/" >