bsd.java.mk: USE_ANT

Herve Quiroz herve.quiroz at esil.univ-mrs.fr
Thu May 1 10:10:12 PDT 2003


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


More information about the freebsd-java mailing list