From owner-freebsd-java@FreeBSD.ORG Thu May 1 10:10:12 2003 Return-Path: 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 1659237B4D3 for ; Thu, 1 May 2003 10:10:12 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11E6743FDF for ; Thu, 1 May 2003 10:10:11 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) h41H9DbJ093905 for ; Thu, 1 May 2003 19:09:13 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h41H9CcW093902 for ; Thu, 1 May 2003 19:09:12 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Thu, 1 May 2003 19:09:12 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: freebsd-java@FreeBSD.ORG Message-ID: <20030501190202.S93849@puget.esil.univ-mrs.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: bsd.java.mk: USE_ANT X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 17:10:12 -0000 Hi, We discussed this point long time ago but I can't remember we did agree on some way of implementing Ant support in bsd.java.mk. Most ports that build using ant do the following: - Set the Ant build dependency - Set the Ant executable (ANT) - Set the Ant targets (ANT_TARGET) - Possibly set the Ant options (ANT_ARGS) And then in the do-build: ${ANT} [${ANT_ARGS}] ${ANT_TARGET} What if we just put this "limited" ant support in bsd.java.mk ? So you just have to do the following: USE_ANT=yes ANT_ARGS+= -Dnoget=yes ANT_TARGET= jar .if defined(NOPORTDOCS) ANT_TARGET+= docs .else ANT_TARGET+= docs .endif What do you think of it ? Regards, Herve