Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 9326 invoked from network); 22 Feb 2002 19:01:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Feb 2002 19:01:26 -0000 Received: (qmail 19249 invoked by uid 97); 22 Feb 2002 19:01:10 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 19210 invoked by uid 97); 22 Feb 2002 19:01:09 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 19174 invoked from network); 22 Feb 2002 19:01:09 -0000 Message-ID: From: Mike Kaufman To: "'Ant Users List'" Subject: RE: Setting environment variables for a javac task Date: Fri, 22 Feb 2002 11:03:38 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N FYI. The suggestion of passing in JAVA_HOME as params in an antcall does not override environment settings. However, I think I have found a solution. You can override environment settings for javac by recursively executing ant via an tag and setting the environment variables for that tag. For example: Why I didn't think of that sooner, I don't know! Thanks for the help. Mike > > --- Mike Kaufman wrote: > > > I need to have a single ant target do multiple javac tasks, > > > some of which use JDK 1.4, others that use JDK 1.3. Setting > > > the "build.compiler" property did not seem to work for me. > > I think you'd need to break your single target into separate > targets -- > one for the 1.3 stuff and one for the 1.4 -- then use > , passing > build.compiler (or maybe java.home? -- I only have 1.3 and jikes, so I > can't say for sure) as a . > -- To unsubscribe, e-mail: For additional commands, e-mail: