Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 19:09:12 +0200 (CEST)
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        freebsd-java@FreeBSD.ORG
Subject:   bsd.java.mk: USE_ANT
Message-ID:  <20030501190202.S93849@puget.esil.univ-mrs.fr>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501190202.S93849>