Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 49990 invoked from network); 8 May 2002 14:10:30 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 May 2002 14:10:30 -0000 Received: (qmail 17426 invoked by uid 97); 8 May 2002 14:10:24 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 17382 invoked by uid 97); 8 May 2002 14:10:23 -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 17370 invoked by uid 98); 8 May 2002 14:10:23 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Lotus-FromDomain: HSSBLR From: raghavendra@hss.hns.com To: ant-user@jakarta.apache.org Message-ID: <65256BB3.004DC6BF.00@sampark.hss.hns.com> Date: Wed, 8 May 2002 19:39:40 +0530 Subject: setting environment variables using ant Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I have been using ant for a month or so and find it very useful and cool. I am not able to solve the following problem for a couple of days... I want to set Environment variables from ANT. Say ... I want to run a java program. The usage should be e:\> ant setclasspath (setclasspath is the target which should set the classpath appropriately) This target should set the classpath variable to some string in the build.xml (it could be a variable/property). Next I should be able to do the following e:\> java MyProgram (classpath should be set to access MyProgram in the previous step). I am sure guys out here must have used ant extensively. Would be glad to receive suggestions on doing this. Thanks. Regards, Raghu -- To unsubscribe, e-mail: For additional commands, e-mail: