aspose file tools*
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
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: 217
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: 5845
    
    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: 217
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