Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 8652 invoked from network); 24 Apr 2007 09:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 09:25:23 -0000 Received: (qmail 9427 invoked by uid 500); 24 Apr 2007 09:25:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9399 invoked by uid 500); 24 Apr 2007 09:25:24 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 9388 invoked by uid 99); 24 Apr 2007 09:25:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [193.201.183.194] (HELO sscd0002.dmz.huk.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 02:25:23 -0700 Received: from sscd0027.huk-coburg.de ([10.148.152.136]) by sscd0002.dmz.huk.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 24 Apr 2007 11:24:33 +0200 Received: by sscd0027.huk-coburg.de (Postfix, from userid 1) id 61FB85808F; Tue, 24 Apr 2007 11:22:55 +0200 (CEST) Received: from sscd0003.dmz.huk.de (sscd0003.dmz.huk.de [10.148.152.133]) by sscd0027.huk-coburg.de (Postfix) with ESMTP id 0B2CB5808F for ; Tue, 24 Apr 2007 11:22:55 +0200 (CEST) Received: from sxf00001.lan.huk-coburg.de (unverified) by sscd0003.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Tue, 24 Apr 2007 11:24:33 +0200 Received: from VEX00130.lan.huk-coburg.de ([10.131.117.131]) by sxf00001.lan.huk-coburg.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 24 Apr 2007 11:24:31 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Subject: RE: setting JAVA.HOME for javac with fork="true" ? Date: Tue, 24 Apr 2007 11:24:29 +0200 Message-ID: <3AE93DC078AE8A41AEDA6B95DE4EB92D25BB39@VEX00130.lan.huk-coburg.de> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: setting JAVA.HOME for javac with fork="true" ? thread-index: AceGTOYxrZPLWvBiQIWyjNBW88JQPQAAolLgAACByNA= References: From: "Rebhan, Gilbert" To: "Ant Users List" X-OriginalArrivalTime: 24 Apr 2007 09:24:31.0780 (UTC) FILETIME=[5D853640:01C78652] Content-class: urn:content-classes:message Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org =20 -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Tuesday, April 24, 2007 11:05 AM To: user@ant.apache.org Subject: AW: setting JAVA.HOME for javac with fork=3D"true" ? /* Use properties in the called buildfile */ Thanks!! , that works, but i have to edit the called scripts to make = that work. If it would be possible to ' overwrite ' %JAVA_HOME% for the called script i don't have to edit anything. So there's no way ?! I already tried overrriding with $project.setProperty before my call the echo in the called script shows to the overwritten %JAVA_HOME% but for the compile the sun jdk is used =3D [echo] JAVA_HOME =3D=3D c:/Programme/JavaSoft/JDK/IBM_J9_v23_SR2 ... [javac] File to be compiled: [javac] C:\WKS\eclipse_3_2_2\WEB_neu\src\de\bla\blabla\Bla.java Execute:Java13CommandLauncher: Executing = 'C:\Programme\JavaSoft\JDK\1.4.2_08\bin\javac.exe' with arguments: ... Regards, Gilbert =20 >-----Urspr=FCngliche Nachricht----- >Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]=20 >Gesendet: Dienstag, 24. April 2007 10:45 >An: user@ant.apache.org >Betreff: setting JAVA.HOME for javac with fork=3D"true" ? > > >Hi, > >right now i have a working testfile with IBM_J9_v23_SR2 >that way =3D > >=20 >executable=3D"c:/Programme/JavaSoft/JDK/IBM_J9_v23_SR2/bin/javac.exe" > includeantruntime=3D"false" > includejavaruntime=3D"false" > classpathref=3D"ibm.jdk.classpath"=20 > srcdir=3D"c:/WKS/eclipse_3_2_2/web/src/de/bla/blabla" > destdir=3D"Y:/tempwork" >/> > >fine, but in reality i need to call another build.xml and want to >point JAVA.HOME to the ibm jdk, so that the javac task >in the called build.xml works with ibm jdk instead of sun jdk. > >Is that possible ? > >I want to avoid to write > > >executable=3D"..." >/> > >in the called build.xml and let the JAVA_HOME decide. > > >Regards,Gilbert > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org