From owner-freebsd-java@FreeBSD.ORG Tue Oct 4 06:19:12 2005 Return-Path: X-Original-To: java@freebsd.org 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 C9A2D16A41F for ; Tue, 4 Oct 2005 06:19:12 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: from blue.virtual-estates.net (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C8D143D46 for ; Tue, 4 Oct 2005 06:19:10 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: from blue.virtual-estates.net (blue [127.0.0.1]) by blue.virtual-estates.net (8.13.4/8.13.4) with ESMTP id j946J3XO065502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Oct 2005 02:19:03 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by blue.virtual-estates.net (8.13.4/8.13.4/Submit) id j946J05f065501; Tue, 4 Oct 2005 02:19:00 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) X-Authentication-Warning: blue.virtual-estates.net: mi set sender to mi+kde@aldan.algebra.com using -f From: Mikhail Teterin To: Herve Quiroz Date: Tue, 4 Oct 2005 02:18:59 -0400 User-Agent: KMail/1.8.2 References: <200510030230.j932Uwbo005425@blue.virtual-estates.net> <20051004013739.GB4038@arabica.esil.univ-mrs.fr> In-Reply-To: <20051004013739.GB4038@arabica.esil.univ-mrs.fr> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: java@freebsd.org Subject: Re: some questions about Java ports X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 06:19:13 -0000 --Boundary-00=_U7hQD8maDHVopAS Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Content-Disposition: inline = The defined/undefined logic allows for more flexbility IMHO. Right -- and the bsd.port.mk cares only for this one bit of information. Then the included bsd.java.mk looks more closely at what is actually defined and uses that. = Are you advocating for a re-design of the Java support in bsd.java.mk? I'd like it to remain legal to just use USE_JAVA=version -- instead of having to use extra variables. = On Sun, Oct 02, 2005 at 10:30:58PM -0400, Mikhail T. wrote: = > 4) How to pass javac options to ant (when relying on USE_ANT=yes)? = = I don't know if it possible to pass javac options to Ant through the = command-line when invoking ant(1), unless a custom build.xml does = support such feature. I don't think, the javac compilation needs to be explicitly described in build.xml. Hence there ought to be some standard property somewhere -- not unlike CFLAGS settings in ours and GNU makes. Unfortunately, I have no idea, where or what it is, and am only guessing here... = Anyway, I never had to pass some options to javac in my ports so I am = not proficient in this regard. Could you show us some sample use case = please? javac has about a dozen of options. -g:xxx, -Jxxx, -encoding, -target, -Xxxx... = PS: I would be glad if you could show us some sample code to point out = the MAKE_ENV/JAVA_HOME issue as well. See the attached dummy port. Note, it already has the .extract cookie created in its fake "work". Try running `make -V CONFIGURE_ENV' first -- the JH will be part of it nicely. Then run `make configure' and see it report an empty JH (and JAVA_HOME). -mi --Boundary-00=_U7hQD8maDHVopAS Content-Type: text/plain; charset="koi8-u"; name="java-test.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="java-test.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # java-test # java-test/scripts # java-test/scripts/configure # java-test/Makefile # java-test/work # java-test/work/.extract_done.meow-1.0._opt # java-test/work/.extract_done.meow-1.0._usr_local # java-test/work/.patch_done.meow-1.0._opt # echo c - java-test mkdir -p java-test > /dev/null 2>&1 echo c - java-test/scripts mkdir -p java-test/scripts > /dev/null 2>&1 echo x - java-test/scripts/configure sed 's/^X//' >java-test/scripts/configure << 'END-of-java-test/scripts/configure' Xecho "The JH is set to $JH" Xecho "The JAVA_HOME is set to $JAVA_HOME" Xexit 1 END-of-java-test/scripts/configure echo x - java-test/Makefile sed 's/^X//' >java-test/Makefile << 'END-of-java-test/Makefile' XPORTNAME= meow XPORTVERSION= 1.0 XCATEGORIES= misc X XCOMMENT= meow X XNO_EXTRACT= yes XUSE_JAVA= 1.3+ X X.include XCONFIGURE_ENV+= JH=${JAVA_HOME} X.include END-of-java-test/Makefile echo c - java-test/work mkdir -p java-test/work > /dev/null 2>&1 echo x - java-test/work/.extract_done.meow-1.0._opt sed 's/^X//' >java-test/work/.extract_done.meow-1.0._opt << 'END-of-java-test/work/.extract_done.meow-1.0._opt' END-of-java-test/work/.extract_done.meow-1.0._opt echo x - java-test/work/.extract_done.meow-1.0._usr_local sed 's/^X//' >java-test/work/.extract_done.meow-1.0._usr_local << 'END-of-java-test/work/.extract_done.meow-1.0._usr_local' END-of-java-test/work/.extract_done.meow-1.0._usr_local echo x - java-test/work/.patch_done.meow-1.0._opt sed 's/^X//' >java-test/work/.patch_done.meow-1.0._opt << 'END-of-java-test/work/.patch_done.meow-1.0._opt' END-of-java-test/work/.patch_done.meow-1.0._opt exit --Boundary-00=_U7hQD8maDHVopAS--