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 Ant script pathelement tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant script pathelement tag" Watch "Ant script pathelement tag" New topic
Author

Ant script pathelement tag

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi all,

I just started learning Ant script. I read tutorials and also some sample scripts on apache website. I almost understood every elements in it except <pathelement> and its location attribute. In the code snippet, what is the use of <pathelement location="classes" /> ? what is the use of path attribute ?



Also, please explain what these script lines do ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

what is the use of <pathelement location="classes" />

The script assume that there is a "classes" directory in the current directory, and adds that directory to the classpath.

The <dirset> type creates a collection of directories. The <include> and <exclude> entries let you refine which directories are actually included in the set.

By the way, you should bookmark the Ant manual in your browser, the documentation is very good. Start at ant_home/docs/manual/index.html


JBoss In Action
jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi,

waht is the diff between <pathelement> path attribute and location attribute ?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant script pathelement tag