This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 5812
    
    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
 
Similar Threads
Ant Junit integration .
JNDI properties for JBoss 4.2.2
Problem getting log4j.properties picked up when I use security.manager ?
Ant with JUnit
Ant+JUnit