ho] C:/Inetpub/wwwroot/wo30
2. Using Flaka's switch task ..
${JOF}
Here the value of environment variable BUILD_BOX will be matched using
regular expressions (). This task would be suitable for carrying
out more complex actions than just setting a pr
Hi,
>>
>>
>>
This would also enable the "build system settings" if environment
variable BUILD_BOX is set to "false". Would be better to check
existence and then variable's content as well - just to avoid any
confusion.
A second thought
2011 3:02 PM
> To: user@ant.apache.org
> Cc: Echlin, Robert
> Subject: RE: How change variable based on environment variable value
>
> Many thanks for your help :)
> BPM
>
> -Original Message-
> From: Echlin, Robert [mailto:robert.ech...@windriver.com]
> Sent: Monday,
Thanks for helping with this issue
BPM
-Original Message-
From: Scot P. Floess [mailto:sflo...@nc.rr.com]
Sent: Monday, June 06, 2011 1:58 PM
To: Brian McCann
Subject: RE: How change variable based on environment variable value
Sorry, that should be:
...
On Mon, 6 Jun 2011, Scot P
Many thanks for your help :)
BPM
-Original Message-
From: Echlin, Robert [mailto:robert.ech...@windriver.com]
Sent: Monday, June 06, 2011 1:51 PM
To: Brian McCann
Subject: RE: How change variable based on environment variable value
> -Original Message-
> From: Brian
ne 06, 2011 12:47 PM
To: Brian McCann
Cc: 'Ant Users List'
Subject: RE: How change variable based on environment variable value
I don't see how either target checkbuildbox nor setJOF is called... Your
default target is set to "build" - how are you executing when you run ant?
ver.com]
Sent: Monday, June 06, 2011 12:46 PM
To: Ant Users List
Subject: RE: How change variable based on environment variable value
Hi Brian,
Try this code.
Note: you can't put the default value of JOF into a file that will be loaded
automatically when ant is run, such as (home)/.antrc,
as
${JOF}
==
-Original Message-
From: Scot P. Floess [mailto:sflo...@nc.rr.com]
Sent: Monday, June 06, 2011 12:09 PM
To: Ant Users List
Subject: Re: How change variable based on environment variable value
Any chance we can see the complete build.xml?
On Mon, 6 Jun 2011, Bria
Hi Brian,
Try this code.
Note: you can't put the default value of JOF into a file that will be loaded
automatically when ant is run, such as (home)/.antrc,
as that would set JOF before your code executes. First set works, last set
fails.
On the other hand, you could set "JOF_default" in a proper
change variable based on environment variable value
Any chance we can see the complete build.xml?
On Mon, 6 Jun 2011, Brian McCann wrote:
> Hi,
> Below is xml from my build.xml file. I'm trying to set a property value
> based on the condition
> that the build.xml file is being run on
Any chance we can see the complete build.xml?
On Mon, 6 Jun 2011, Brian McCann wrote:
Hi,
Below is xml from my build.xml file. I'm trying to set a property value
based on the condition
that the build.xml file is being run on the build box. I created a system
variable and set it to true on a Wi
Hi,
Below is xml from my build.xml file. I'm trying to set a property value
based on the condition
that the build.xml file is being run on the build box. I created a system
variable and set it to true on a Win XP SP3 build system.
I tested this part of the xml and the code " ${env.BUILD_BOX}"
works
Good day, gentlemans.
I have a problem with ant task.
I execute my build.xml from command line and behaviour of resolve task
depends on value of JAVA_HOME environment variable.
If JAVA_HOME points to java1.4 than ivy downloads revisions in cache.
If JAVA_HOME points to java1.5 no download is
gt; file regardless of the platform I am using.
Hi Anna,
Good suggestion for appending something to PATH and not having to change the
environment variable! In this case I do want CATALINA_HOME defined outside
the build, it just feels right as there might be (in the future) some other
script who wishes to access my Tomcat server home directory.
gt; ># Some comment
> >hello=jejejej
> >$ cat build.xml
> >
> >
> >
> >
> >
> >
> >
> > The environment variable CATALINA_HOME is defined:
> >
> >$ echo $CATALINA_HOME
> >/var/lib/tomcat5.5
> >
2009-01-15 17:05 build.xml
>>
>> They are short and easy to understand:
>>
>> $ cat build.properties
>> # Some comment
>> hello=jejejej
>> $ cat build.xml
>>
>>
>>
>>
>>
>>
>>
&g
ache.org
Subject: Re: doe sn't pick up an environment
variable
> Hi again,
>
> It is solved now. I run Ubuntu and had defined CATALINA_HOME in
> etc/environment to get a system wide environment variable. I then used .
> /etc/environment to load the variable into the bash instance
tnek tnek 270 2009-01-15 17:05 build.xml
>
> They are short and easy to understand:
>
>$ cat build.properties
># Some comment
>hello=jejejej
>$ cat build.xml
>
>
>
>
>
>
>
> The
On Thu, 15 Jan 2009, Kent Larsson wrote:
Hi again,
It is solved now. I run Ubuntu and had defined CATALINA_HOME in
etc/environment to get a system wide environment variable. I then used .
/etc/environment to load the variable into the bash instance I used. Somehow
ant could not pick up on
stand:
$ cat build.properties
# Some comment
hello=jejejej
$ cat build.xml
The environment variable CATALINA_HOME is defined:
$ echo $CATALINA_HOME
/var/lib/tomcat5.5
Still only the environment variable PATH is echoed as it's s
Hi again,
It is solved now. I run Ubuntu and had defined CATALINA_HOME in
etc/environment to get a system wide environment variable. I then used .
/etc/environment to load the variable into the bash instance I used. Somehow
ant could not pick up on this variable until after I rebooted. I'm
build.properties
# Some comment
hello=jejejej
$ cat build.xml
The environment variable CATALINA_HOME is defined:
$ echo $CATALINA_HOME
/var/lib/tomcat5.5
Still only the environment variable PATH is echoed as it's suppos
HI Steve,
Thanks for your reply, it was the same problem that you anticipated.
It was not loading the env variables, so I had a workaround for that.
Now my code works like this, I am setting the environment variable in the
.bash_profile and here is working piece of my code
Suhas Majale wrote:
I am using properties file, in which *solr.home.path=$SOLR_PATH*
Even it fails when I try with
command="cp -rvf /tmp/solr/${webapp.name} $SOLR_PATH"
or
command="cp -rvf /tmp/solr/${webapp.name} $$SOLR_PATH"
or
command="cp -rvf /tmp/solr/${webapp.name} $$SOLR_PATH"
Regards
>
> > -Ursprüngliche Nachricht-
> > Von: Suhas Majale [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 18. März 2008 09:36
> > An: Ant Users List
> > Betreff: Re: Using environment variable in SCP
> >
> > Hi Jan,
> >
> > Thank
Majale [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 18. März 2008 09:36
> An: Ant Users List
> Betreff: Re: Using environment variable in SCP
>
> Hi Jan,
>
> Thanks for the reply and the work around you suggested.
> I am copying the files in the /tmp/solr folder and using the
Suhas Majale [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 18. März 2008 07:08
> > An: user@ant.apache.org
> > Betreff: Using environment variable in SCP
> >
> > HI all,
> >
> > I am very new to ant and am using the SCP to transfer files
> > from
7:08
> An: user@ant.apache.org
> Betreff: Using environment variable in SCP
>
> HI all,
>
> I am very new to ant and am using the SCP to transfer files
> from windows to
> linux (FC 6) machine.
> Following is the code,
>
> **
> *
> **
> *
> Th
*solr.home.path=/root/solr-deploy/solr*
Now instead of giving the absolute path, I tried giving environment variable
that is set for that path. When I do so, the transfer fails.
*solr.home.path=$SOLR_HOME*
Can we use environment variable in SCP ? If yes, what is the way we do it?
Regards, Suhas
ailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 2. November 2007 07:06
>An: Ant Users List
>Betreff: Re: How to set an environment variable through Ant?
>
>Hello,
>
>
>
>For ANT task that spawn a seperate process ( and
>come to mind) there are attributes to allow you de
Hello,
For ANT task that spawn a seperate process ( and
come to mind) there are attributes to allow you define 'environment variable'
that will be applied to the process that the task will run in.
The ANT Manual for these two tasks are quite helpful
Hope that hel
I am just curious whether there is a clean way to set environment variables
through ANT. You see, before running my Ant script, I am currently setting my
environment variables through a shell script, and I aslo have a batch script
version for when running Ant on windows. I would like to get ri
the other half is solved by the
..
would always work.
How is made case-insensitive? Imagine I pass in the current
path (let's assume the env. var is named Path) thru a CLI user property
(named PATH) and I want to write:
For this to work properly on Windows, the env. var. passed t
In your original question you had:
task instead of the task.
Peter
Regards
Ravi.
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 03, 2006 4:44 AM
To: Ant Users List
Subject: Re: How to refer PATH environment variable in Ant task
O
On 12/2/06, Dominique Devienne <[EMAIL PROTECTED]> wrote:
On 12/2/06, Peter Reilly <[EMAIL PROTECTED]> wrote:
> Perhaps we could add an attribute to property
> to force the env names to be uppercasized:
>
>
> so ${env.PATH}
> will always give the correct value
This solves only one half of the p
Hi,
if nothing else works you may still go via =
Regards, Gilbert
Ravi Roy wrote:
I want to refer the environment variable in created in Windows XP using
Ant task, but it does not seem to refer that.
My purpose is to run java.exe along with executing the application and
refer PATH environment variable in Ant task
On 12/2/06, Peter Reilly <[EMAIL PROTECTED]> wrote:
> Perhaps we could add an attribute to property
> to force the env names to be uppercasized:
>
>
> so ${env.PATH}
> will always give the correct value
This solves only one half
On 12/2/06, Peter Reilly <[EMAIL PROTECTED]> wrote:
Perhaps we could add an attribute to property
to force the env names to be uppercasized:
so ${env.PATH}
will always give the correct value
This solves only one half of the problem however.
One still needs to specify the path in using
the co
Perhaps we could add an attribute to property
to force the env names to be uppercasized:
so ${env.PATH}
will always give the correct value
Peter
On 12/2/06, Dominique Devienne <[EMAIL PROTECTED]> wrote:
>
>
Your pb is likely related to the case of the PATH env. var. An
On 1 dec 2006, at 16.26, Ravi Roy wrote:
Hi All,
I want to refer the environment variable in created in Windows XP
using
Ant task, but it does not seem to refer that.
My purpose is to run java.exe along with executing the application and
referring ZIP/JARs by the application at
Your pb is likely related to the case of the PATH env. var. Ant is
case sensitive, but on Windows PATH is not, and can be written Path or
path, or whatever. You also need to use the same case for your new
process than the current process' case for that variable, otherwise
Hi All,
I want to refer the environment variable in created in Windows XP using
Ant task, but it does not seem to refer that.
My purpose is to run java.exe along with executing the application and
referring ZIP/JARs by the application at execution time from the PATH
variable
Hi All,
I want to refer the environment variable in created in Windows XP using
Ant task, but it does not seem to refer that.
My purpose is to run java.exe along with executing the application and
referring ZIP/JARs by the application at execution time from the PATH
variable
On Aug 18, 2006, at 12:34 PM, Antoine Levy-Lambert wrote:
Do you have a line reading
in your build file ?
This is a prerequisite to access env vars with the env. prefix.
Yes. In fact, it was in my reply. ;-) I am still looking for /
researching a solution.
---
Do you have a line reading
in your build file ?
This is a prerequisite to access env vars with the env. prefix.
Regards,
Antoine
> I actually had "." in their too. I think my problem may actually be
> related to running ant under XCode (gui tool) because I was able to
> run it fine fro
On Aug 18, 2006, at 11:54 AM, Antoine Levy-Lambert wrote:
Wrong, property values expand other property values (if the props
are defined).
e.g.
You type env. MYPROJECT
should be env.MYPROJECT
without space between env. and MYPROJECT
That was a typo. The problem still occurs with
Hi,
Original-Nachricht
Datum: Fri, 18 Aug 2006 11:18:40 -0400
Von: Robert La Ferla <[EMAIL PROTECTED]>
An: Ant Users List
Betreff: classpath from external jars relative to environment variable
> I have several external jars that are located relative to a directory
&g
I have several external jars that are located relative to a directory
specified by an environment variable $MYPROJECT. I need to
construct a classpath within my build.xml so that javac can compile
my project. It seemed pretty straightforward but I can't seem to get
it to work. W
On Tue, 2006-06-06 at 11:41 +0200, [EMAIL PROTECTED] wrote:
> I want to distribute the build.xml file with an application and therefore
> not include any paths to software the application depends on. Ideally I
> would want to take this from an environment variable and show an error
> message
On Tue, 2006-06-06 at 11:41 +0200, [EMAIL PROTECTED] wrote:
> I want to distribute the build.xml file with an application and therefore
> not include any paths to software the application depends on. Ideally I
> would want to take this from an environment variable and show an error
>
I want to distribute the build.xml file with an application and therefore
not include any paths to software the application depends on. Ideally I
would want to take this from an environment variable and show an error
message if the environment variable is not set.
Currently I set a property like
Thanks Jeffrey,
> -Original Message-
> From: Jeffrey E Care [mailto:[EMAIL PROTECTED]
> Sent: February 12, 2006 4:57 PM
> To: Ant Users List
> Subject: Re: How to get the value of a system's environment variable
>
> Read the manual for the task.
>
> &g
ntent/view/740/29/
Thanks anyway,
Issam Aib
> -Original Message-
> From: Issam Aib [mailto:[EMAIL PROTECTED]
> Sent: February 12, 2006 4:43 PM
> To: 'Ant Users List'
> Subject: How to get the value of a system's environment variable
>
> Hi folks,
&g
Read the manual for the task.
> I would like to get the value of some system environment variables,
> such as TOMCAT_HOME, PATH, CVSROOT, etc, as a property inside my ant
script.
Hi folks,
I would like to get the value of some system environment variables, such as
TOMCAT_HOME, PATH, CVSROOT, etc, as a property inside my ant script.
Can anyone help?
Thanks,
Issam Aib
On Tue, 24 Jan 2006, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> I think this is finally what I've been struggling with. It doesn't
> seem to work when the env variable actually exists. Here is my
> macro:
>
> =
>
>
> ${env.DAVINCI_EXT}
>
From: Sergei Dubov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 5:02 PM
To: Ant Users List
Subject: Again: Checking for non-existence of environment variable
I think this is finally what I've been struggling with. It doesn't seem
to work when the env variable actually exi
: Checking for non-existence of environment variable
I think this is finally what I've been struggling with. It doesn't seem
to work when the env variable actually exists. Here is my macro:
=
${env.D
AVINCI_EXT}
Cause:
DAVINCI_EXT environment variable has not been set!
And here is what I get trying to invoke it from
.apache.org
Subject: Checking for non-existence of environment
variable
Hi guys,
I am sure this question has been asked before. But
I did my research and
found no answers whatsoever.
Basically I am trying to check for existence of an
environment variable.
And if it is not defined I want th
urgess, Benjamin wrote:
> > Will work for you?
> >
> > Ben
> >
> > -Original Message-
> > From: Sergei Dubov [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 24, 2006 3:48 PM
> > To: user@ant.apache.org
> > Subject: Checking
This seems to do the trick on quick test.
Thanks so much!
Serge.
Shatzer, Larry wrote:
-Original Message-
From: Sergei Dubov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 12:48 PM
To: user@ant.apache.org
Subject: Checking for non-existence of environment variable
And
user@ant.apache.org
Subject: Checking for non-existence of environment variable
Hi guys,
I am sure this question has been asked before. But I did my research and
found no answers whatsoever.
Basically I am trying to check for existence of an environment variable.
And if it is not defined I want the s
Will work for you?
Ben
-Original Message-
From: Sergei Dubov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 3:48 PM
To: user@ant.apache.org
Subject: Checking for non-existence of environment variable
Hi guys,
I am sure this question has been asked before. But I did my
> -Original Message-
> From: Sergei Dubov [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 24, 2006 12:48 PM
> To: user@ant.apache.org
> Subject: Checking for non-existence of environment variable
>
>
> And potential check will think it actually HAS value. Is
Hi guys,
I am sure this question has been asked before. But I did my research and
found no answers whatsoever.
Basically I am trying to check for existence of an environment variable.
And if it is not defined I want the script to fail.
${env.NO_VALUE}
Basically
mar" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, August 09, 2005 4:41 PM
> Subject: How to test whether a particular environment variable is set or not
>
>
> Hi Folks,
>
> I want to set a property to the value of an environment variable if
> that variable is s
Sorry, was thinking of NAnt
-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 1:09 PM
To: Ant Users List
Subject: Re: How to test whether a particular environment variable is
set or not
The second will not work, because the
The second will not work, because the property is already set
earlier. You may want to execute them in reverse order.
- Alexey.
[EMAIL PROTECTED] wrote:
This will trim down the previous post
--
/
This will trim down the previous post
mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 09, 2005 12:55 PM
To: Ant Users List
Subject: Re: How to test whether a particular environment variable is
set or not
Using the task (from the ant-contrib project) you
can do it like this
rnative for the same :
>
> value="TO_BE_REPLACED"/>
>
> might work.
>
> Cheers,
>
> Antoine
>
>
>
> - Original Message -
> From: "Pankaj Kumar" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, August 09, 2005
hello Kumar,
this is another alternative for the same :
might work.
Cheers,
Antoine
- Original Message -
From: "Pankaj Kumar" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, August 09, 2005 4:41 PM
Subject: How to test whether a particular environment variable is set o
Hi Folks,
I want to set a property to the value of an environment variable if
that variable is set, otherwise to a different string.
I am able to do this with the following:
TEST_HOME: ${test.home}
Is there a better (read: less verbose
Shurely
FRTM - Firstly, Read The Manual
:-)
> -Original Message-
> From: Keith Hatton [mailto:[EMAIL PROTECTED]
> Sent: 28 January 2004 16:09
> To: Ant Users List
> Subject: RE: Getting the value of an environment variable?
>
>
> How about
>
> F
On Fri, 5 Sep 2003, Jan Materne <[EMAIL PROTECTED]> wrote:
> Mmm, supports s.
Ant's CVS version only.
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
> Sent: Friday, September 05, 2003 4:10 PM
> To: [EMAIL PROTECTED]
> Subject: environment variable
>
>
> Hi,
>
> I've a prob with the environment variables.
>
> I would like to set a lot of environment variables to use
> them in
Hi,
I've a prob with the environment variables.
I would like to set a lot of environment variables to use them in different process.
My script is below.
the pb is that I'm not able to use the differents environment variables (PNG_HOME,
ORACLE_HOME,...) in the second prog : TEST2.BAT.
77 matches
Mail list logo