File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes XML basedir 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 "XML basedir" Watch "XML basedir" New topic

XML basedir

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
Does "basedir" in XML mean the main directory that my XML file will be located in?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63533

Please take the time to choose the correct forum for your posts. This forum is for questions on XML, not Ant scripts. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Paul Clapham

Joined: Oct 14, 2005
Posts: 19848

Abder-Rahman Ali wrote:Does "basedir" in XML mean the main directory that my XML file will be located in?

No, probably not. (I say "Probably" because what you said isn't very clear.)
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I will make a wild guess and assume that you mean the ${basedir} property in an Ant build.xml file. In that case, the answer is yes - ${basedir} yields the directory containing the build.xml file.

JBoss In Action
I agree. Here's the link:
subject: XML basedir
It's not a secret anymore!