ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cherkassky <>
Subject How to combining patternset
Date Sat, 05 Mar 2011 05:21:14 GMT
Dear ANT community:

I have one patternset like this:
   <patternset id='yui.compression.dirs'>
     <include name="jade/content/**"/>

And a second patterset like this:
   <property name='yui.compression.js.source.suffix' value='-debug.js' />
   <patternset id='yui.compression.files'>
     <include name="**/*${yui.compression.js.source.suffix}"/>

And I have the following directory tree:

I want to combine the two patternsets to return files that match both patterns: yui.compression.dirs
and yui.compression.files.

In other words, I'd like to write the following:
   <patternset id='to.compress'>
That will match:
but won't match:

Note:  I *don't* want to write:
   <patternset id='yui.compression.dirs'>
     <include name="jade/content/**/*${yui.compression.js.source.suffix}"/>
I want the '...' to somehow refer to the two patternsets at the top of this email.

Is there a way to do this?

Dave Cherkassky
   VP of Software Development
   DJiNN Software Inc.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message