aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Easy way to get up to date 3rd party libs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Easy way to get up to date 3rd party libs" Watch "Easy way to get up to date 3rd party libs" New topic
Author

Easy way to get up to date 3rd party libs

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

When developing apps, I find myself visiting several sites to make sure I have the latest 3rd party libs. Most specifically the jakarta-commons and Spring libs.

Is there a way via ANT or some other tool (not Maven) to run a task that maybe runs wget or something and grabs all the latest and greatest? It seems like I've downloaded libs that would do this via ANT for themselves but for the life of me can't find one on my PC to go by nor remember which ones.

Thanks.


GenRocket - Experts at Building Test Data
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Gregg,
Maybe there were going to CVS/SVN and getting the latest copy from there?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Yes, I was going to suggest Maven. Why not Maven?

As Jeanne suggests you may be able to plug in the anonymous CVS details, but are you talking about latest stable, latest nightly or bleeding edge? The manual maintenance of each repository would also be painful.
manuel aldana
Ranch Hand

Joined: Dec 29, 2005
Posts: 308
you should be careful to update your libs all time, just because a new release is ready for download.

it could well be that some libraries are not down compatible (e.g. introducing new/other bug through bug fixing), and then you end up with searching for bugs in your code base, though the error is somewhere else. i know it is not very likely (if you use stable libraries like commons), but still it is sometimes unsure.

i would only update 3rd party libraries, when it is neccessary, i.e. a bug, which breaks your program was fixed, a new release with new functionality was developed or similar and i would do it manually (including looking at release notes, if it is worth to upgrade).

or what is the reason why you want to update libraries so regulary, that you want to include it in your automatic build process? AFAIK stable libraries anyway don't get updated very often.


aldana software engineering blog & .more
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
To manuel aldana
I agree with you 100%.

===============
To Greg
I used to work in a company, I was kind of in Charge of update the 3rd party tools.

I needed to test them in my sandbox first, make sure they do not break our head build. And make sure to document advantages and any adjustment we need to do when we update the third party tool. Then I will get approved by our chief architect, push it to developer's head build. The labeled build for our individual products will depends on each development manager of each group to use the newer version or not. They usually updated it when they update our internal apis.

Stable product is very important to the development as well as your clients!!

I don't think auto-update is even an option!!!

Thanks!
[ July 17, 2006: Message edited by: Roseanne Zhang ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

I agree that using the latest and greatest isn't always the best idea in prod. What I want to do however, is limit the ammount of time I spend before each project begins to ensure I have what I need and have any possible updates. Or maybe even just be notified that there is a new version available of a specific library.

Something that saves me from going to each individual web page every single time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Easy way to get up to date 3rd party libs
 
Similar Threads
Resin and Struts.
Error
Copy dependent jars
Eclipse debugging & 3rd party src code
How to invoke an ant task? project.createTask?