jashaw
asked on
Running yuicompressor with Ant
I use Ant in Netbeans to run yuicompressor over a set of javascript files as part of my PHP project build process.
I already have it running beautifully on all the .js files in a single directory, but I want to also run it over this sort of structure:
/A/B/C/a.js
/A/B/D/b.js
/A/B/E/c.js
/A/B/F/d.js
/A/B/G/e.js
and end up with minified files like this:
/A/B/C/a-min.js
/A/B/D/b-min.js
/A/B/E/c-min.js
/A/B/F/d-min.js
/A/B/G/e-min.js
I can't get my head around the Ant build file stuff needed to select the input files and map the output files to do this.
I already have it running beautifully on all the .js files in a single directory, but I want to also run it over this sort of structure:
/A/B/C/a.js
/A/B/D/b.js
/A/B/E/c.js
/A/B/F/d.js
/A/B/G/e.js
and end up with minified files like this:
/A/B/C/a-min.js
/A/B/D/b-min.js
/A/B/E/c-min.js
/A/B/F/d-min.js
/A/B/G/e-min.js
I can't get my head around the Ant build file stuff needed to select the input files and map the output files to do this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)
ASKER
Thanks