Re: how to build a JAR
Chris Burdess <[email protected]> Mon, 18 Mar 2013 08:42:16 +0000
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
Thufir wrote: > I don't understand how or why GNU is building JAR's the way it does. = Perhaps there's an historical or political reason? >=20 > Generally, ant is used to build Java projects and package them as = JAR's, but GNU seems to be using make(?). Why is this so? Because GNU make and automake/autoconf is the standard for GNU packages. = Every GNU package no matter what language it's written in can be = installed with ./configure make install > The INSTALL file states: >=20 > Ant build >=20 > A simple Ant buildfile is included for platforms where GNU Make is not > installed. This buildfile is not officially supported and may not = provide > options available during the standard autotools-based installation. >=20 >=20 >=20 > I'm just curious because this seems at odds with other Java projects = I'm familiar with. Specifically I'm interested in checking out a = module, the mail module, forking the code a bit, and building the = corresponding JAR. However, I'm really clear on what code *to* = check-out and which JAR it should build to. The dependencies are documented. You should check out the mail module, = and this will build 2 jars, one containing the API classes and the other = containing the GNU implementation. If you want, you can change the build = scripts to build only one jar if that suits your purposes better.=