It's not a secret anymore!*
The moose likes Other Open Source Projects and the fly likes Tool to build any open source library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Tool to build any open source library" Watch "Tool to build any open source library" New topic
Author

Tool to build any open source library

ckt bowel
Greenhorn

Joined: Oct 04, 2013
Posts: 9
Dear Friends,

We use lot of open source libraries in our project and we download built libraries from net and it use it.

recently there is a requirement to build all these open source liberties from source as part of the product build process (we use Ant).

Now the problem is: I see we need different environment setup for each of the libs to build and complicatation varies from library to library.

So, it there a free tool that can be used or integrate with Ant which takes care of building any open source lib where I need not worry about it's build requirements except specifying the name of the libraries I would like to build.

Any inputs in this regard is very much appreciated.

Thanks in advance.
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 860
    
  42

That seems like a very silly requirement. Did the requirement come with any reason or justification?

I really can't see the benefit of building third party libraries from source when pre built libraries are already provided by the project owners. Sounds like a whole lot of pain for no gain.


Tim Driven Development
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
What you describe exists exactly ... for binary builds; it's called Maven.

I agree that the requirement sounds strange. To my knowledge, there is no such tool (which is not surprising, as it doesn't seem to fill a widely perceived need).


Ping & DNS - my free Android networking tools app
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 860
    
  42

Ulf Dittmer wrote:What you describe exists exactly ... for binary builds; it's called Maven.

Oh yea, that probably is what the OP is getting at.
So if the question actually is "How do I manage my project's third party dependencies without having to download and copy them in manually myself?" then as Ulf says, Maven will do that for you.
ckt bowel
Greenhorn

Joined: Oct 04, 2013
Posts: 9
Thanks guys for your valuable reply.
To be more precise, in last release of our product we had to download source of one of the open source library and did some changes and build it locally where we had to setup build environment and it took lot if effort to finally get the build done.

So, now this kind of requirement may come up with any of the open source libraries we use and hence I was looking for a "easy" way to get this done..via tool or some other way.

Hope I am clear.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

ckt bowel wrote:To be more precise, in last release of our product we had to download source of one of the open source library and did some changes and build it locally where we had to setup build environment and it took lot if effort to finally get the build done.

Which library? It'd be easier to discuss a specific case than generalities.


[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
ckt bowel
Greenhorn

Joined: Oct 04, 2013
Posts: 9
One of the cases: I had to build RabbitMQ Server plugin with the help of details mentioned in link: http://www.rabbitmq.com/build-server.html.

Ans, steps required are

1. Setup build environment - SUSE Linux (V 11, Patch 2)- This can be created in VMWare Workstation.
2. Have the following tools available/installed:
(A) Latest version of Python
(B) simplejson.py
(C) Erlang Development & Runtime tools
(D) GNUMake
(E) Latest version of xsltproc
3. Change to the rabbitmq-server directory (which has the modified code), and type make

Now the requirement is , above steps has to be integrated with current Ant build which involves have virtually create above environment during build and have the plugin-in built.

My idea was to keep this kind of specific builds out of current standard build steps and was thinking of a tool which can do it for me all this "specific" job externally.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30146
    
150

Yeah. I don't see anything generic. The best you could do is have Ant run the command lines for the tools if not there. But that's a lot more work than just installing them.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tool to build any open source library
 
Similar Threads
Can I debug in IDEA using ant to build?
Ant scp task giving Error
ANT-FTP-Help
ANT failed Optional XMLValidate task
Ant ftp task creating problem