Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 77271 invoked from network); 13 Nov 2006 16:31:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 16:31:45 -0000 Received: (qmail 19178 invoked by uid 500); 13 Nov 2006 16:31:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 18820 invoked by uid 500); 13 Nov 2006 16:31:50 -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 18809 invoked by uid 99); 13 Nov 2006 16:31:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 08:31:50 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [217.19.186.195] (HELO dlddmz17.dlddmz.deltalloyd.de) (217.19.186.195) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Nov 2006 08:31:36 -0800 Received: from srvnt015.DLD.deltalloyd.de ([128.5.57.67]) by dlddmz17.dlddmz.deltalloyd.de (SAVSMTP 3.1.2.35) with SMTP id M2006111317302826379 for ; Mon, 13 Nov 2006 17:30:28 +0100 Subject: Calling Ant using different JDKs To: user@ant.apache.org X-Mailer: Lotus Notes Release 5.0.10 March 22, 2002 Message-ID: From: Christian.Konrad@deltalloyd.de Date: Mon, 13 Nov 2006 17:29:28 +0100 X-MIMETrack: Serialize by Router on srvnt015/DLD(Release 6.5.3|September 14, 2004) at 13.11.2006 17:29:30 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, is there a way to call an Ant Build-File () and pass it the JAVA_HOME environment variable? Exec accepts just that using the nested env-Argument (). Basically I'm looking for a way to call a Build-File (build.xml) with different JDKs. I cannot fix the javac call to use the different JDKs. I need to specify it when calling the build-file. Actually I would use "exec" instead of "ant" but it doesn't get the build result. So the builds never fail. Any suggestions? Regards, Christian --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org