File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes what are <path..>, <fileset ..> ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "what are <path..>, <fileset ..> ?" Watch "what are <path..>, <fileset ..> ?" New topic
Author

what are <path..>, <fileset ..> ?

Brendon Woodford
Ranch Hand

Joined: Jan 22, 2010
Posts: 53
Hi everybody ,

I am learning ANT and quite naturally I have some doubts. The one that is bothering me is-- What are <path id=""> and <fileset .. > are?
Are they ant Core Tasks? Or Optional tasks? But I have seen the list of ANT core as well as optional tasks but there is no such tasks.

I have understood there use. But to which category of ANT elements they belong, I 'm not too sure about.

Could anyone elaborate please.

Thank You.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15639
    
  15

They're not tasks at all. They're modifiers for tasks. Only the outermost elements in an Ant build.xml file are tasks (except when they're property definitions and the like). The nested stuff supplies the properties that the task processor will use to do its work.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

I highly recommend that you bookmark the Ant manual.

<fileset ...> : http://ant.apache.org/manual/CoreTypes/fileset.html

<path ...>: http://ant.apache.org/manual/using.html#path

I also highly recommend Ant in Action. I have a prior edition of that book and found it invaluable.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what are <path..>, <fileset ..> ?
 
Similar Threads
ant optional task and core give the problem in version mismatch
ant -version gives me error
Invalid Implementation Version core :1.6.2 optional 1.6.5
Problem with Ant using JUnit
ant path problem