AW: Setting environment variables

2010-02-25 Thread Knuplesch, Juergen
: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Gesendet: Donnerstag, 25. Februar 2010 06:12 An: user@ant.apache.org Betreff: AW: Setting environment variables Option 4: create a batch file that calls your 'setenv' and then the dmake. Call this from Ant call se

AW: Setting environment variables

2010-02-24 Thread Jan.Materne
2010 20:02 >An: Ant >Betreff: RE: Setting environment variables > > >When your batch file is invoked all variables declared by the >set command will not get passed to the 2nd instance of the >dos/command window. You have to play around with command /c >to get this to wo

RE: Setting environment variables

2010-02-24 Thread Rez P
value Rez > Subject: Setting environment variables > Date: Wed, 24 Feb 2010 16:12:08 +0100 > From: juergen.knuple...@icongmbh.de > To: user@ant.apache.org > > Hello, > > I want to run a dmake using ANT to compile some C-Source. > > There is a Batchfile tha

Setting environment variables

2010-02-24 Thread Knuplesch, Juergen
Hello, I want to run a dmake using ANT to compile some C-Source. There is a Batchfile that sets up some compiler environment variables. Now I want to run this Batchfile and then execute a dmake that uses these environment variables. Is it possible to get the environmet variables "inside

Re: Reading environment variables in ant script directly

2009-12-30 Thread Raja Nagendra Kumar
. Not sure, if made our point clear to ant developers to see some value of making by default environment variables available though some standard prefix, implicitly. Regards, Nagendra antoinell wrote: > > Hello Raja, > > some ant scripts need access to environment variables but a

Re: Reading environment variables in ant script directly

2009-12-30 Thread Antoine Levy Lambert
Hello Raja, some ant scripts need access to environment variables but a lot of them do not. So this leaves it to each build file developer to decide whether he wants his ant property environment to include properties. Now you can create easily a standard build file that you import

Re: Reading environment variables in ant script directly

2009-12-30 Thread Raja Nagendra Kumar
Sure joe, now I understand why we need to give a prefix. Joe, I was looking for why ant did not ant make all the environment variables available through some documented prefix notation rather by default rather than user adding this line in each build script. Regards, Nagendra -- View this

RE: Reading environment variables in ant script directly

2009-12-30 Thread Rez P
e: Wed, 30 Dec 2009 10:14:14 -0800 > From: nagendra.r...@tejasoft.com > To: user@ant.apache.org > Subject: RE: Reading environment variables in ant script directly > > > Thank You Rez, > > Are u aware of why such explicit approach was taken rather providing the > environment

Re: Reading environment variables in ant script directly

2009-12-30 Thread Joe Schmetzer
2009/12/30 Raja Nagendra Kumar : > Are u aware of why such explicit  approach was taken rather providing the > environment properties directly. > > It would be nice, if ant could consider to provide the environment variables > implicitly including the conventions you mentioned on

RE: Reading environment variables in ant script directly

2009-12-30 Thread Raja Nagendra Kumar
Thank You Rez, Are u aware of why such explicit approach was taken rather providing the environment properties directly. It would be nice, if ant could consider to provide the environment variables implicitly including the conventions you mentioned on prefixing them with env. Regards, Raja

RE: Reading environment variables in ant script directly

2009-12-30 Thread Rez P
In short, no. You can test it for yourself by writing a simple ant script. All system environment variables have to be preceded by "env.", otherwise, in the example below ${HOMEPATH} by itself is meaningless unless you have assigned a prior value to it. But the minute it's p

Reading environment variables in ant script directly

2009-12-29 Thread Raja Nagendra Kumar
Hi, Is it possible to read OS environment variables directly in ant script without the line As ant is java and by default all the ant variables would be passed to JRE on each java invocation, I am looking for a way to get the value of the property variables directly. Why another line if I

Re: clone fake environment variables as real ones for exec

2009-05-28 Thread Dominique Devienne
On Thu, May 28, 2009 at 1:27 AM, Shawn Castrianni wrote: > I would prefer to somehow tell ant to select all properties that start with > env. prefix and add them to the environment of the exec task.  Is this > possible somehow with macros, property selectors, or something else? This is somethin

Re: AW: clone fake environment variables as real ones for exec

2009-05-28 Thread Eric Fetzer
I was looking at the mapper task.  I didn't fully get it, but I think it could handle what you're looking for. From: "Knuplesch, Juergen" To: Ant Users List Sent: Thursday, May 28, 2009 2:23:58 AM Subject: AW: clone fake environment va

AW: clone fake environment variables as real ones for exec

2009-05-28 Thread Knuplesch, Juergen
Hello, One way this could work is by wrting your own exec2 task by using the source and add an argument of your choice that does the trick (an extension of the env argument). Probably a script (python, etc.) language is also able to set environment variables. So you could use the script

clone fake environment variables as real ones for exec

2009-05-27 Thread Shawn Castrianni
I load in my environment variables with: I use ant properties throughout my script with the env. prefix so that end users can override them with real environment variables, if they wish. If those env. prefixed ant properties are not initialized from the real environment variables, I default

Re: Setting environment variables

2008-08-10 Thread Dominique Devienne
On Fri, Aug 1, 2008 at 3:08 PM, Yang Zhang <[EMAIL PROTECTED]> wrote: > If there's a better way to do what I'm trying to do, I'm all ears. Thanks in > advance for any answers! I think you basically have two options: 1) use or , to wrap with some child elements. 2) write your own task that does

RE: Setting environment variables

2008-08-01 Thread Shawn Castrianni
EMAIL PROTECTED] Sent: Friday, August 01, 2008 3:09 PM To: user@ant.apache.org Subject: Setting environment variables Hi, I know that I can set environment variables for a subprocess by using inside an , but if I have a bunch of targets that all do s, and I'd like them all to have this same environm

Setting environment variables

2008-08-01 Thread Yang Zhang
Hi, I know that I can set environment variables for a subprocess by using inside an , but if I have a bunch of targets that all do s, and I'd like them all to have this same environment set up, how may I accomplish this duplicating a bunch of s everywhere? My goal is to set things u

Re: newbie question regarding setting environment variables

2008-07-07 Thread Henning Bredel
> I expect that I have to set JAVA_HOME, but for the life of me I can not > figure out where or how. For a session you can type JAVA_HOME= Note that you have to set the path to your JDK, not the JRE. Setting the path permanent, you can alter your ~/.profile (in your /home/ dir). Type here at

RE: newbie question regarding setting environment variables

2008-07-07 Thread Frank D. Gunseor
04, 2008 1:29 PM To: Ant Users List Subject: Re: newbie question regarding setting environment variables Frank, can you give us the result of 'ant -diagnostics' or 'ant -diagnostics | grep tools' to see tools.jar is in your path if not, what is the result of 'echo

Re: newbie question regarding setting environment variables

2008-07-04 Thread supareno
Frank, can you give us the result of 'ant -diagnostics' or 'ant -diagnostics | grep tools' to see tools.jar is in your path if not, what is the result of 'echo $JAVA_HOME'? to set your JAVA_HOME: edit your bashrc file vi ~/.bashrc add these lines at the end your bashrc file ... PATH=//bin:

newbie question regarding setting environment variables

2008-07-04 Thread Frank Gunseor
I have ant install on Ubuntu 8.04. When I try to run ant I get an error message, "Unable to locate tools.jar, etc.". I expect that I have to set JAVA_HOME, but for the life of me I can not figure out where or how. I have checked the manual, the FAQ, etc. I guess I'm just being dense today. Can

Re: read environment variables set by bat file, which is run by ant exec task

2008-04-30 Thread Steve Loughran
Raja Nagendra Kumar wrote: Hi, Is it possible to read the properties which are set by bat file (this bat file is run with in ant using exec command. Basically teh bat file should run in the same process.. tried spam="false" in exec but does not work.. The above one shoul

read environment variables set by bat file, which is run by ant exec task

2008-04-30 Thread Raja Nagendra Kumar
properties as set by auto.bat. I know it is a bad way.. but for some time, I am looking for such solution.. Regards, Nagendra -- View this message in context: http://www.nabble.com/read-environment-variables-set-by-bat-file%2C-which-is-run-by-ant-exec-task-tp16985423p16985423.html Sent from the A

Re: Fwd: AW: Re: Re: Settting environment variables

2007-05-10 Thread Steve Loughran
query wrote: I am having Windows2000 in my system. Here path and include env variables are identified as "Path" and "include". Only if I try with Path and include, ANT will echo the original path. If I use PATH, log file displays Property "env.PATH" has not been set [echo] PATH is set to

Fwd: AW: Re: Re: Settting environment variables

2007-05-10 Thread query
arded message attached -- Original Message -- From: <[EMAIL PROTECTED]> To: Subject: AW: Re: Re: Settting environment variables --- Begin Message --- You cant set env variables in . start a new process. Env variables are only visible in that process. If that process quits the variables are

AW: Re: Re: Settting environment variables

2007-05-09 Thread Jan.Materne
uot; which can set environment variables on system level. Maybe you could set env vars for Ants NEXT run. (setx doesnt change current running processes). >-Ursprüngliche Nachricht- >Von: Martin Gainty [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 9. Mai 2007 15:32 >An:

Re: Re: Re: Settting environment variables

2007-05-09 Thread Martin Gainty
environment variables I 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. My ANT script change is: property environment="env"/> Similarly I have t

Fwd: Re: Re: Settting environment variables

2007-05-09 Thread query
s not working. If there is any other way to set variables, please let me know. Due to this issue, it is hampering my work. Note: Forwarded message attached -- Original Message -- From: Ninju Bohra <[EMAIL PROTECTED]> To: Ant Users List Subject: Re: Re: Settting environment

Re: Re: Settting environment variables

2007-04-20 Thread Ninju Bohra
st Cc: Ninju Bohra <[EMAIL PROTECTED]> 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

Re: Settting environment variables

2007-04-20 Thread Charles Paulet
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 va

Re: Re: Settting environment variables

2007-04-19 Thread query
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 i

Re: Re: Settting environment variables

2007-04-19 Thread query
 When I tried to use in task, it build compilation is failing with the following error. javac doesn't support the nested "sysproperty" element. On Thu, 19 Apr 2007 Ninju Bohra wrote : >Hello, > >By the time ANT starts, the PATH and INCLUDE environment variables

Re: Settting environment variables

2007-04-19 Thread Ninju Bohra
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

Re: Settting environment variables

2007-04-19 Thread Martin Gainty
the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 19, 2007 10:11 AM Subject: RE: Settting environment variables Propert

RE: Settting environment variables

2007-04-19 Thread Kajsa.Anderson
il 19, 2007 8:26 AM To: ant 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 fi

Settting environment variables

2007-04-19 Thread query
  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 "

AW: Ant Property Task - Environment Variables

2006-12-20 Thread Jan.Materne
ewvc/ant/core/trunk/docs/manual/CoreTasks/property.html?view=co >-Ursprüngliche Nachricht- >Von: Adeel Omer [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 19. Dezember 2006 20:29 >An: user@ant.apache.org >Betreff: Ant Property Task - Environment Variables > >Hi,

Ant Property Task - Environment Variables

2006-12-19 Thread Adeel Omer
Hi, The Property task documentation (Ant 1.6.5) states that fetching environment variables using the and subsequently accessing environment variables using xyz.Env_Var is supported on "select" operating systems. Can anyone direct me to a listing of these "select" operati

RE: Re: Access to OS environment variables?

2005-12-16 Thread cknell
Thanks. It helps to know where to look. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Matt Benson <[EMAIL PROTECTED]> Sent: Fri, 16 Dec 2005 13:13:06 -0800 (PST) To: Ant Users List Subject: Re: Access to OS environment variables? ---

Re: Access to OS environment variables?

2005-12-16 Thread Ninju Bohra
Take a look at the task with the environment="env" attribute to allow to access the OS enviroment variables as ANT properties You should be able to do the following Note the names of the created properties will be case-sensitive to the name of the OS environment variable

Re: Access to OS environment variables?

2005-12-16 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: > Am I just looking in the wrong place, or is there no > way to read or capture the value of an operating > system environment variable from within an ant build > file. For example. I would like to use the fop task, > but in order to do so I must create a property name

Access to OS environment variables?

2005-12-16 Thread cknell
Am I just looking in the wrong place, or is there no way to read or capture the value of an operating system environment variable from within an ant build file. For example. I would like to use the fop task, but in order to do so I must create a property named "fop.dir" and enter the path to my

RE: Problem with Environment Variables on Win2000

2005-09-28 Thread Bill Rich
, September 28, 2005 6:16 AM To: Ant Users List Subject: RE: Problem with Environment Variables on Win2000 Thanks for testing it. After I posted, it started working on my Win2000 box as well so it's strange. Actually, this is not a new problem for me; I've run into it several times over the l

RE: Problem with Environment Variables on Win2000

2005-09-28 Thread Jason
ild.xml > [echo] env.foo is bar > > BUILD SUCCESSFUL > Total time: 0 seconds > > C:\Projects\My Tools>endlocal > > C:\Projects\My Tools> > > > > -Original Message- > From: Jason [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 20

RE: Problem with Environment Variables on Win2000

2005-09-28 Thread Dick, Brian E.
l [echo] env.foo is bar BUILD SUCCESSFUL Total time: 0 seconds C:\Projects\My Tools>endlocal C:\Projects\My Tools> -Original Message- From: Jason [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 2:34 PM To: user@ant.apache.org Subject: Problem with Environment Va

RE: Problem with Environment Variables on Win2000

2005-09-27 Thread Anderson, Rob (Global Trade)
mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 11:34 AM > To: user@ant.apache.org > Subject: Problem with Environment Variables on Win2000 > > Hello, > > I've written an ant script on Linux and I'm now in the > process of trying to run it on windows and

Problem with Environment Variables on Win2000

2005-09-27 Thread Jason
Hello, I've written an ant script on Linux and I'm now in the process of trying to run it on windows and I've hit a snag. My general strategy is to launch ant on linux from a shell script in which I set several environment variables like so: export MY_VAR=foo I than access these

Antwort: RE: RE: Environment variables

2005-01-11 Thread gjeiziner
[EMAIL PROTECTED] schrieb am 11.01.2005 17:42:40: > The behavior exhibited is not unique to Ant--it's how shells work. If you > open a shell (start->run->cmd) you'll get a shell. If you set env > variables in that shell, they don't persist to another shell that you > might open. > So the ta

RE: RE: Environment variables

2005-01-11 Thread Nick_Gianakas
ease respond to "Ant Users List" To: "Ant Users List" cc: Subject:RE: RE: Environment variables Thanks for your answers. Is there any particular reason why this is not possible? -- Gilbert Jeiziner "Erskine, Chris" <[EMAIL PR

RE: RE: Environment variables

2005-01-11 Thread gjeiziner
day, January 11, 2005 9:04 AM > > To: user@ant.apache.org > > Subject: AW: Environment variables > > > > creates a new process and s are passed to that process. When > > that > > has finished all environment settings are lost. There is no way to set env > &

RE: Environment variables

2005-01-11 Thread Erskine, Chris
[EMAIL PROTECTED] > Sent: Tuesday, January 11, 2005 9:04 AM > To: user@ant.apache.org > Subject: AW: Environment variables > > creates a new process and s are passed to that process. When > that > has finished all environment settings are lost. There is no way to set env > var

AW: Environment variables

2005-01-11 Thread Jan . Materne
che Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 11. Januar 2005 16:58 > An: Ant Users List > Betreff: Environment variables > > Hi, > > I'm using ant to build visual studio solutions (simple > command line with > the task

Environment variables

2005-01-11 Thread gjeiziner
Hi, I'm using ant to build visual studio solutions (simple command line with the task). We have 2 versions of visual studio .NET (unfortunately, we have to maintain those 2 version). So, before running ant to build the solution, we have to set up specific environment variables fo

Re: Environment variables and mac osx

2004-12-15 Thread Joel
> Having issues with my ant build script finding (B> environment variables on the mac osx. We are running (B> 10.3, it works fine on Windows, but on Mac OSX, under (B> bash or t-shell, they show up when we shell and echo (B> them out, but they are not getting picked up by ant a

Re: Environment variables and mac osx

2004-12-15 Thread Erik Hatcher
[echo] os.version = 10.3.6 [echo] BUILD SUCCESSFUL Total time: 1 second On Dec 15, 2004, at 2:51 PM, Kevin Duffey wrote: Having issues with my ant build script finding environment variables on the mac osx. We are running 10.3, it works fine on Windows, but on Mac OSX, under bash or t

Re: Environment variables and mac osx

2004-12-15 Thread Erik Hatcher
Inc. [echo] os.name = Mac OS X [echo] os.version = 10.3.6 [echo] BUILD SUCCESSFUL Total time: 1 second On Dec 15, 2004, at 2:51 PM, Kevin Duffey wrote: Having issues with my ant build script finding environment variables on the mac osx. We are running 10.3, it works fine on Win

Re: Environment variables and mac osx

2004-12-15 Thread Kevin Duffey
> On Dec 15, 2004, at 2:51 PM, Kevin Duffey wrote: > > Having issues with my ant build script finding > > environment variables on the mac osx. We are > running > > 10.3, it works fine on Windows, but on Mac OSX, > under > > bash or t-shell, they show up when we shell

Environment variables and mac osx

2004-12-15 Thread Kevin Duffey
Hi all, Having issues with my ant build script finding environment variables on the mac osx. We are running 10.3, it works fine on Windows, but on Mac OSX, under bash or t-shell, they show up when we shell and echo them out, but they are not getting picked up by ant at all. Is there a problem

Re: Access to Environment Variables other than ANT_HOME of CLASSP ATH

2003-03-19 Thread Stefan Bodewig
On Wed, 19 Mar 2003, Alexey Solofnenko <[EMAIL PROTECTED]> wrote: > But is not very useful, because it is case > sensitive Which makes it useful on systems with case sensitive environment variables 8-) Stefan - To