Is there any way to put multiple filters in an excludes block in a FileSet?
I have a situation where I want to parse a list of files in a directory, but
miss out for example *.build and *.vbproj.  I can do this with two separate
excludes lines, but it dosn't seem to work with one.  i.e.

<fileset basedir="${source.dir}" >
  <excludes = "*.build" />
  <excludes = "*.vbproj" />
</fileset>
Works OK, but

<fileset basedir="${source.dir}" >
  <excludes = "*.build, *.vbproj" />
</fileset>
Doesn't work (no files are rejected)

The problem is I want to define the excludes filter in a property elsewhere
that gets passed through so I can do <excludes="${exclude.filter}" />.
There may be a variable number of filters depending on the project so it
would be difficult to use multiple excludes lines.  I guess I can iterate
the the list of extensions with a for loop and build up a multiple entry
excludes list, but I was wondering if there was an easier way.

Any pointers appreciated,

Cheers,

Bill




______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the person or 
organisation to 
whom it is addressed.  Its contents are confidential and may be protected in law.  
Unauthorised use,
 copying or disclosure of any of it may be unlawful.  If you are not the intended 
recipient, please 
contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, which 
could damage your 
own computer system.  While Marlborough Stirling has taken every reasonable precaution 
to minimise 
this risk, we cannot accept liability for any damage, which you sustain as a result of 
software 
viruses.  You should carry out your own virus checking procedure before opening any 
attachment.


Marlborough Stirling plc, Registered in England and Wales 
Registered No. 3008820,
Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.com



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to