• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant copy with fileset

 
Ranch Hand
Posts: 30
IntelliJ IDE Hibernate
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I want to copy files using fileset like following,


(This code don't work.)

In the copy task I want to include/exclude previously defined fileset. How to do this ?

Thanks !
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't - a fileset is evaluated at the time it is encountered ans a collection of files is built at that time.

What you want, on the other hand, is to create a list of file names and apply that name in multiple locations. Something like this should work:



Note that "exclude" allows a comma-separated list of file name patterns, so you specific multiple JARs.
 
Micale Raj
Ranch Hand
Posts: 30
IntelliJ IDE Hibernate
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Peter. Your post helped me resolve the problem. Thanks again !
reply
    Bookmark Topic Watch Topic
  • New Topic