Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 27210 invoked by uid 500); 16 Apr 2001 14:02:55 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 27200 invoked from network); 16 Apr 2001 14:02:55 -0000 Message-ID: <0FCAF6060176D411A5EE00805FFEF17A5F85AA@NY02MX01> From: Shannon Wagner To: "'ant-user@jakarta.apache.org'" Subject: RE: Using JDKs with jar files Date: Mon, 16 Apr 2001 10:02:25 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Isn't it possible to use the "target" attribute of the task to accomplish this? -----Original Message----- From: Andrew.Goodnough@dana.com [mailto:Andrew.Goodnough@dana.com] Sent: Monday, April 16, 2001 10:00 AM To: ant-user@jakarta.apache.org Subject: Re: Using JDKs with jar files The only way I know of to accomplish this would be to use two separate build files instead of two separate targets. It would be nice to be able to specify the JDK to use (overriding the project attribute) for a specific java command like (java, javac, etc.). Andy **************************** Andrew Goodnough Dana Commercial Credit Programmer Pinar Bicioglu cc: Subject: Using JDKs with jar files 04/10/2001 01:57 PM Please respond to ant-user Let's say that I have two targets in my "build.xml" file, abc.jar and xyz.jar. The relationship between .jar files as below; foo.java --> test.class (On the server side) target1 ---------> abc.jar ---> uses JDK1.3 bar.java --> bar.class test.java --> test.class (On the client side) target2 ---------> xyz.jar ---> uses JDK1.1.8 bar.java --> bar.class What I am trying to do is to make sure that bar.java uses JDK1.3 and then JDK1.1.8. I need to get an output or something like that as a proof :) Thanks for your help,