Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes using ant-contrib under *NIX Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "using ant-contrib under *NIX" Watch "using ant-contrib under *NIX" New topic
Author

using ant-contrib under *NIX

Dennis Putnam
Ranch Hand

Joined: Feb 03, 2012
Posts: 208
ANT is still a bit of black magic to me and I am having trouble running a build under Linux. I am using the PropertyFile task which I think is in ant-contrib, which I have. However, since it is not in $ANT_HOME, I don't understand how to make ANT find it. Can I use a symbolic link in $ANT_HOME/lib to the contrib directory or must I add a link for every jar file instead? Or is there a better way? TIA.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

I always copy the ant-contrib jar file to ant_home/lib.


JBoss In Action
Dennis Putnam
Ranch Hand

Joined: Feb 03, 2012
Posts: 208
Thanks. I decided to do a symbolic link so I don't have to remember to copy each time it is updated. However, it turned out that ProperyFile is not in ant-contrib but rather ant-nodeps instead which I had to install.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: using ant-contrib under *NIX
 
Similar Threads
Eclipse Ganymede - Ant
Problem with ANT using a different JDK version
Problems with Ant
Compilation error while building the project using Ant
ant pkg won't work for installing I2P