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 using ant-contrib under *NIX 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 "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: 210
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: 5812
    
    7

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


JBoss In Action
Dennis Putnam
Ranch Hand

Joined: Feb 03, 2012
Posts: 210
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://aspose.com/file-tools
 
subject: using ant-contrib under *NIX
 
Similar Threads
ant pkg won't work for installing I2P
Problem with ANT using a different JDK version
Eclipse Ganymede - Ant
Problems with Ant
Compilation error while building the project using Ant