Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting PATH inside ANT

 
Jithesh Kozhipurath
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Amber Vaidya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic