ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <>
Subject Re: setting environmental variable from Ant script
Date Fri, 14 Mar 2003 07:59:20 GMT
hi !
just for an insigth, I usually restrain environment variables only to 3PPs archive location
for the projects I've been working on, and that's all. if different projects use different
version of 3PPs then they use a different environment loaded through a
different if u're trying to build dynamically an environment variable, build
the path dynamically instead.
for test tasks environment variables are often used to locate configuration files or so in
C++ but in java I don't see the case.

Craig Berry wrote:

> It should probably be noted that the inability of a program to set variables in its calling
environment is a feature, not a limitation.  It allows you to invoke a series of programs
without worrying about environmental pollution screwing up later executions.
>         -----Original Message-----
>         From: []
>         Sent: Thu 3/13/2003 11:30 PM
>         To:
>         Cc:
>         Subject: AW: setting environmental variable from Ant script
>         AFAIK there is no way to set environment variables that lives longer than
>         Ant´s VM.
>         Jan Matèrne
>         -----Ursprüngliche Nachricht-----
>         Von: Alexei Betin []
>         Gesendet am: Donnerstag, 13. März 2003 19:50
>         An: Ant Users List
>         Betreff: setting environmental variable from Ant script
>         is there a clean platform-independent way
>         that I am missing or I simply should
>         have my build script generate a shell-script
>         & call it?
>         Thanks,
>         ~Alexei
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail:
>         For additional commands, e-mail:

View raw message