Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 83053 invoked from network); 9 May 2007 09:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 09:38:20 -0000 Received: (qmail 48400 invoked by uid 500); 9 May 2007 09:38:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 48375 invoked by uid 500); 9 May 2007 09:38:21 -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 48360 invoked by uid 99); 9 May 2007 09:38:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 02:38:21 -0700 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=HTML_IMAGE_ONLY_16,HTML_MESSAGE,HTML_SHORT_LINK_IMG_2,MAILTO_TO_SPAM_ADDR,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of search2006@rediffmail.com designates 202.54.124.152 as permitted sender) Received: from [202.54.124.152] (HELO rediffmail.com) (202.54.124.152) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 May 2007 02:38:13 -0700 Received: (qmail 10850 invoked by uid 510); 9 May 2007 09:37:29 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=redf; d=rediffmail.com; b=L/+0jhj3J/cTXJbTUsUjI5OKq5t532H0wqmd3y2EcwgX0sbqnBaAs4jVCjj71K/yYEDVIGHRFOO2kw6IWEcrBep4eP5kYWwfMEs44TIlsQrVZlXxhG67bchcHO+hcg+HRqtJPGAbXNdiq56cpHXQlmXqYpwCexCljn3pFMXXNrQ= ; Date: 9 May 2007 09:37:29 -0000 Message-ID: <20070509093729.10848.qmail@webmail7.rediffmail.com> Received: from unknown (164.164.79.12) by rediffmail.com via HTTP; 09 may 2007 09:37:29 -0000 MIME-Version: 1.0 From: "query" Reply-To: "query" To: "ant" Subject: Fwd: Re: Re: Settting environment variables Content-type: multipart/mixed; boundary="Next_1178703449---0-202.54.124.152-10846" X-Virus-Checked: Checked by ClamAV on apache.org --Next_1178703449---0-202.54.124.152-10846 Content-type: multipart/alternative; boundary="Next_1178703449---1-202.54.124.152-10846" This is a multipart mime message --Next_1178703449---1-202.54.124.152-10846 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0AI again tried to set PATH and INCLUDE env variables. But when I echo= the env variables after modifying the variables, changes are not reflected= in the log file.=0AMy ANT script change is:=0Aproperty environment=3D"env"= />=0A=0A =0A=0A=0A= =0ASimilarly I have tried for Path env variable. But it is not working.=0A= =0AIf there is any other way to set variables, please let me know. Due to t= his issue, it is hampering my work.........=0A=0A=0ANote: Forwarded message= attached=0A=0A-- Original Message --=0A=0AFrom: Ninju Bohra =0ATo: Ant Users List =0ASubject: Re: Re: Set= tting environment variables=0A --Next_1178703449---1-202.54.124.152-10846 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0AI again tried to set PATH and INCLUDE env variables. Bu= t when I echo the env variables after modifying the variables, changes are = not reflected in the log file.
=0AMy ANT script change is:
=0Apropert= y environment=3D"env"/>
=0A<exec executable=3D"cmd&= quot;>
=0A      <env key=3D"include" path= =3D"${new.includepath}"/>
=0A</exec>
=0A<echo m= essage =3D"include=3D${env.include}"/>
=0A
=0ASimilarly = I have tried for Path env variable. But it is not working.
=0A
=0AIf = there is any other way to set variables, please let me know. Due to this is= sue, it is hampering my work.........
=0A
=0A
=0ANote: Forwarded m= essage attached
=0A
=0A-- Original Message --
=0A
=0AFrom: Ninj= u Bohra <ninju_bohra@yahoo.com>
=0ATo: Ant Users List <user@ant= .apache.org>
=0ASubject: Re: Re: Settting environment variables
= =0A=0A

=0A

=0A
3D'578x38_salary.gif'
--Next_1178703449---1-202.54.124.152-10846-- --Next_1178703449---0-202.54.124.152-10846 Content-type: message/rfc822 MIME-Version: 1.0 From: Ninju Bohra Subject: Re: Re: Settting environment variables To: Ant Users List Content-Type: multipart/alternative; boundary="0-2035011187-1177083468=:40708" Message-ID: <783792.40708.qm@web30208.mail.mud.yahoo.com> --0-2035011187-1177083468=:40708 Content-Type: text/plain; charset=ascii Hello, Sorry about that...for the setting of evironment variables is done with the element...please read the documentation (http://ant.apache.org/manual/CoreTasks/exec.html) for specific details. Thanx ----- Original Message ---- From: query To: Ant Users List Cc: Ninju Bohra Sent: Friday, April 20, 2007 2:21:38 AM Subject: Re: Re: Settting environment variables When I tried to use in and task, build compilation is failing with the following errors. javac doesn't support the nested "sysproperty" element. exec doesn't support the nested "sysproperty" element. It looks like that element is supported only with . But I want to set env variables for and tasks. Can anyone help me ??????? On Thu, 19 Apr 2007 Ninju Bohra wrote : >Hello, > >By the time ANT starts, the PATH and INCLUDE environment variables values are set (by the ant.bat or OS command script) and can not be altered. > >However if one you target needs to start seperate process (, , , etc...) you can control the value of the enviroment variables that the child process will have...use the sub element to correct that. > >Hope that make sense???? > >Ninju > > > >----- Original Message ---- > From: query >To: ant >Sent: Thursday, April 19, 2007 9:25:39 AM >Subject: Settting environment variables > > > > >Hi, > >I am having a set of ANT build files. I want to change "Path" and "include" environment variables only in build file. >I tried the following options to reset "include" variable in the build file. > > >1. > > > >2. > >3. > >4. > > >When I tried to echo "include" variable in the same build file, it is still showing the default old settings. > >Is there any other way to modify the environment variables only for some instance and not for other? > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-2035011187-1177083468=:40708-- --Next_1178703449---0-202.54.124.152-10846 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --Next_1178703449---0-202.54.124.152-10846--