aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Setting PATH inside ANT 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 "Setting PATH inside ANT" Watch "Setting PATH inside ANT" New topic
Author

Setting PATH inside ANT

Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
Hi,
I have some java tasks inside ant, which access some property files from the application root folder. But my build file is not in the application root. How can I set the path to application root inside the build file. Is it possible to access those files by setting the path, because the path is relative.
Thanks in advance,
Jithesh


Jithesh K
Amber Vaidya
Ranch Hand

Joined: Oct 14, 2003
Posts: 42
You can set path using something like
<path id="classpath">
<fileset dir="${application.path}>
<include name="**/*.properties" />
</fileset>
</path>
And then use it as
<classpath>
<path refid="classpath" />
</classpath>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Setting PATH inside ANT