Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 35725 invoked from network); 21 Oct 2008 05:51:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 05:51:29 -0000 Received: (qmail 2646 invoked by uid 500); 21 Oct 2008 05:51:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2606 invoked by uid 500); 21 Oct 2008 05:51: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 2595 invoked by uid 99); 21 Oct 2008 05:51:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 22:51:24 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.154.176.138] (HELO icon040.icongmbh.de) (62.154.176.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 05:50:11 +0000 Received: from icsrv02.icongmbh.de (unknown [192.168.195.2]) by icon040.icongmbh.de (Postfix) with ESMTP id 7430010031 for ; Tue, 21 Oct 2008 07:50:37 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: ****SPAM**** Build in multiple java versions using Ant Date: Tue, 21 Oct 2008 07:50:36 +0200 Message-ID: <06080D44730F41428BAF2168FA8BDD80026FF413@icsrv02.icongmbh.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ****SPAM**** Build in multiple java versions using Ant Thread-Index: AckzAuNG4v9shd64Sn+lI1M9bzhoYAAPYoAg References: <20080105.post@talk.nabble.com> From: "Knuplesch, Juergen" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org =20 You have to add a property to design the compiler compliance to 1.4, 1.5 = or 1.6. Read the manual, to find out the name of the parameters!! There are at least two ways to do this: 1.Many tasks have a fork option, where you can tell the JVM you want to = use to do this task 2.You simply could start ant itself under zhe JVM you want to use and = automatically all tasks you do not fork via 1 woll be run under this VM --=20 J=FCrgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstra=DFe 40 =20 D-70178 Stuttgart Fax. +49 711 806098-299 Gesch=E4ftsf=FChrer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121=20 -----Urspr=FCngliche Nachricht----- Von: scuzzie [mailto:shane.marsden@gmail.com]=20 Gesendet: Dienstag, 21. Oktober 2008 00:26 An: user@ant.apache.org Betreff: ****SPAM**** Build in multiple java versions using Ant Hi, I have a project written in NetBeans 6.1 that I need to be able to = compile on demand using any JDK version from 1.4.2, on a machine that = does not have NetBeans installed (but does have Ant of course). The app = compiles under 1.4.2 and up using the Ant xml files generated by NetBeans. At the = moment, the options are 1.4.2/1.5/1.6 as they are the JDKs that are = installed on the machine. The application uses Swing so has a couple of = dependant jars. Modifying the xml build files is not an option. Specifying a properties = file from the Ant command-line is fine, and I have had to do this anyway = (as well as copying the swing and NetBeans copylibs jars to the = machine). The file is autogenerated and is created automatically before = calling Ant. Are there properties I can add to my properties file to specify which = version of the SDK to compile with? Any other suggestions? Using Windows. -- View this message in context: = http://www.nabble.com/Build-in-multiple-java-versions-using-Ant-tp2008010= 5p20080105.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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