From owner-freebsd-java Mon Aug 26 15: 9:47 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEFD537B400 for ; Mon, 26 Aug 2002 15:09:44 -0700 (PDT) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A2943E7B for ; Mon, 26 Aug 2002 15:09:44 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from there by smtp.hccnet.nl via uds17-45.dial.hccnet.nl [62.251.45.17] with SMTP id AAA07190 (8.8.8/1.13); Tue, 27 Aug 2002 00:09:32 +0200 (MET DST) Message-Id: <200208262209.AAA07190@smtp.hccnet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: FreeBSD Project To: absinthe@pobox.com, Calvin Varney Subject: Re: Port/package guidelines (WAS: Please review: new Java Project docs) Date: Tue, 27 Aug 2002 00:09:29 +0200 X-Mailer: KMail [version 1.3.2] Cc: freebsd-java@FreeBSD.ORG References: <200208170958.14422.absinthe@pobox.com> <86it25uka2.fsf@ubana.varney2.org> <200208220443.18447.absinthe@pobox.com> In-Reply-To: <200208220443.18447.absinthe@pobox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > As a prelude to continuing this conversation, I believe we probably should > start figuring out how to use Ant in all the Java ports to resolve > dependencies, build jars, do versioning and so on. I would like Ernst to > comment on this, since he does the majority of the Java-related ports > (including Ant). > > It's definitely a more sane way of building and packaging Java > (particularly generating javadocs from code that has it) ... but I also > think it would be an improved way of doing version checking and upgrades. > Take a lot of the work out of the Makefile and into the build.xml's. Dylan, you are right. We should move to Ant. This has been proposed and discussed before, but never actually taken to the next level, i.e. a working example. Currently a very small number of ports seems to use Ant: databases/postgresql-jdbc/Makefile java/jdom/Makefile java/jump/Makefile Maintainer for the first one is girgen@partitur.se, while I'm the maintainer for the other two. These ports, however, don't even serve as a good example, because they only use the buildfile that comes with the library being installed. Initial suggestion: o An Ant-based port sets USE_ANT=YES which is interpreted by bsd.java.mk. Now that's a lot, isn't it? ;-) Questions that arise immediately are: o Should the port come with a build.xml file or should it set some properties that will allow us to _generate_ a build.xml file for it? o If the port comes with a build.xml file, then should it have some default targets? o How do we install any JAR files, source code, Javadoc API documentation, etc in a standard manner? /me hopes this will ignite the discussion and shine some light on this subject which remains a bit vague and distorted in his head Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message