|
|
Re: Makefile for a java project [message #632470 is a reply to message #632201] |
Wed, 13 October 2010 05:46 |
Walter Harley Messages: 847 Registered: July 2009 |
Senior Member |
|
|
Daniel Megert wrote:
> Marko wrote:
>> Hello!
>>
>> I have a java project that I sometimes need to build from a cmdline
>> (for example when logging into the box from ssh).
>>
>> However, I am used to build my project through eclipse in GUI mode. I
>> am wondering if there is a way to create a C-like Makefile to be able
>> to build the project from within the command line?
> Take a look at Ecipse b3, Maven or Ant.
In particular, note that from Eclipse you can File -> Export an ant build file.
Ant is a tool much like make, that reads an .xml file containing a set of
dependencies and associated actions. For whatever reasons, Ant is much more
common in Java-based projects, even though in principle you could write a
makefile to do the same thing.
Maven is a more extensive tool, that supports a broader swath of the development
process and that has a lot of built-in assumptions about how you do development.
If your development process matches the Maven assumptions, it can be a very
efficient and powerful tool. If not, it can be very painful and troublesome.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02994 seconds