Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 60143 invoked from network); 17 May 2002 23:24:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 May 2002 23:24:34 -0000 Received: (qmail 22492 invoked by uid 97); 17 May 2002 23:24:30 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 22476 invoked by uid 97); 17 May 2002 23:24:30 -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 22464 invoked by uid 98); 17 May 2002 23:24:29 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <00cd01c1fe09$becb2670$290b10ac@VBPURANG> From: "Viraj Purang" To: "Ant Users List" References: <98D21B073202584C9125C860580DC4EDEC0315@lgchexch006.ad.lgc.com> Subject: Re: Problems in setting path variables ... Date: Fri, 17 May 2002 18:17:15 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Disposition-Notification-To: "Viraj Purang" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 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 figured a wrok around for now.However I have another question ...based on the value of a set property from the available attribute , can I do a conditional execution of a target , if so which task would I use ? . Regards, Viraj Purang ----- Original Message ----- From: "Dominique Devienne" To: "'Ant Users List'" Sent: Friday, May 17, 2002 3:03 PM Subject: RE: Problems in setting path variables ... > I assumed you did a before try to get > ${env.BEA_HOME}? --DD > > -----Original Message----- > From: Viraj Purang [mailto:vpurang@bea.com] > Sent: Friday, May 17, 2002 6:54 PM > To: Ant Users List > Subject: Problems in setting path variables ... > > Hi, > I am running a batch script as a part of my build process and I need to > set the following variables > before I run this script. > PROJECT_HOME, JAVA_HOME=c:\jdk1.3.1, ANT_HOME=%PROJECT_HOME%\ant, > BEA_HOME=%PROJECT_HOME%\bea, WL_HOME=%BEA_HOME%\weblogic600\server, set > PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin > > Can someone reason out why values of ${env.PROJECT_HOME} and ${env.BEA_HOME} > would not get replaced in the following (I have attatched the target as well > as the ant -debug output)? > > -------------------------------------------------------------------------- -- > -------------------------------------------- > > I tried > os="Windows 2000" output="dir.txt"> > > > > > > > > but this gives debug output as > > build-env: > [echo] Number of Processors = 1 > [echo] ANT_HOME is set to = C:\jakarta-ant-1.4.1 > Property ${env.PROJECT_HOME} has not been set > Property ${env.BEA_HOME} has not been set > [exec] Current OS is Windows 2000 > [exec] C:\ANT\build_area\depot_sjfw\cajun_m1\bootstrap.cmd > [exec] Output redirected to C:\ANT\build_area\dir.txt > [exec] Setting environment variable: BEA_HOME=${env.PROJECT_HOME}\bea > [exec] Setting environment variable: JAVA_HOME=c:\jdk1.3.1_03 > [exec] Setting environment variable: > WL_HOME=${env.BEA_HOME}\weblogic700b\s > erver > [exec] Setting environment variable: ANT_HOME=C:\jakarta-ant-1.4.1 > Execute:Java13CommandLauncher: > C:\ANT\build_area\depot_sjfw\cajun_m1\bootstrap.c > md > > BUILD SUCCESSFUL > > Regards, > > Viraj Purang > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: