r file based on user input values
Well just include the environment variables in your call to the ear
task... For example, I am modifying the example given in the Ant
documentation for creating an ear:
HTH,
Flossy
On Tue, 21 Jul 2009, edumudi.viswan...@oracle.com wrote:
Hi,
---
From: Scot P. Floess [mailto:sflo...@nc.rr.com]
Sent: Tuesday, July 21, 2009 6:12 PM
To: Ant Users List
Subject: Re: how to change name of war & ear file based on user input values
Well just include the environment variables in your call to the ear
task... For example, I am modifying
Well just include the environment variables in your call to the ear
task... For example, I am modifying the example given in the Ant
documentation for creating an ear:
appxml="${src.dir}/metadata/application.xml">
HTH,
Flossy
On Tue, 21 Jul 2009, edumudi.viswan...@oracle.com wro
Hi,
I have an build.xml file.
If I run the target "ear-target" using ant -Dxyz=1 -Dyyy=1 ear-target@
command prompt, it should create webpro11.ear & webpro11.war
& if I run "ear-target" using ant -Dxyz=1 -Dyyy=2 ear-target@ command
prompt, it should create webpro12.ear &
You could also make the logic easier:
...
...
Jan
>-Ursprüngliche Nachricht-
>Von: Rick Genter [mailto:rgen...@silverlink.com]
>Gesendet: Donnerstag, 2. Juli 2009 17:09
>An: Ant Users List
>Cc: Rick Genter
>Betreff: RE: conditional logic and user input
>
> From: dave_davis [mailto:nickco...@hotmail.com]
> Sent: Wednesday, July 01, 2009 5:01 PM
> To: user@ant.apache.org
> Subject: conditional logic and user input
>
>
> Hi,
>
> I want to be able to control my build depending on user input. I've
> tried
> the
Hi,
I want to be able to control my build depending on user input. I've tried
the following code but the ifyes and ifno targets never run. I'm new to ant
so am sure I've missed something fundamental but can't see what it is - all
help apprec
ahnf wrote:
Hi,
We just upgrade from ant 1.6 to 1.7 and collecting some user input from a
script no longer works
We have a bash script which collects input via
our bash script works like this
ant targetName << END
param1
param2
END
the
new version of any just seems to ignore this
Hi,
We just upgrade from ant 1.6 to 1.7 and collecting some user input from a
script no longer works
We have a bash script which collects input via
our bash script works like this
ant targetName << END
param1
param2
END
the
new version of any just seems to ignore this input, befor
Kevin Duffy
eScholar
White Plains, NY
914-989-2983
Actually playing around with using depend - I think I can just eliminate
the user input entirely... :)
Now that I look at it - it seems redundant when you can just determine
what gets run by picking the appropriate target...
Thanks again!
Jim
> -Original Message-
> From: RADE
>Thanks for all the help!! Your name looks familiar - you are on the
>CFEclipse mailing list as well aren't you? :)
My pleasure, and, yes, i am indeed on the CFE list (usually posting
things like "you can do that with ant!")
/t
---
and ruin ;)
That's it, mother mode off!
/t
>-Original Message-
>From: Priest, James (NIH/NIEHS) [C] [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 23, 2007 4:37 PM
>To: Ant Users List
>Subject: RE: Help with running different target based on user input?
>
>Okay
y 23, 2007 11:34 AM
> To: Ant Users List
> Subject: RE: Help with running different target based on user input?
>
> Hey James,
>
> Just a last disclaimer/whatnot: it's worth mentioning that
> is not meant to be used as a poor man's "goto" -
> it'
Okay - gotcha. For what I need now it's OK but I see where you are
going...
I'll copy my current code and rework it using 'depend' and see if I can
make it work... I can see how that would be very flexible!
Thanks!
Jim
> -Original Message-
> From: RADEMAKERS Tanguy [mailto:[EMAIL PRO
IH/NIEHS) [C] [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 23, 2007 4:15 PM
>To: Ant Users List
>Subject: RE: Help with running different target based on user input?
>
>> -Original Message-
>> From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
>
>> An
> -Original Message-
> From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
> Ant is not a scripting language... assuming that "run script
> four" is a target in your build file, you could call it from
> within another target using the task. You should
> also look into the AntContrib thi
i'm not too sure i understand what you mean by "chain dependencies
together". In ant, a target can depend on more than one other targets
(just pass a comma separated list) and ant handles generating the graph
of dependent targets for you (so if target c depends on target b which
depends on target a
One last question :)
Is there a way to chain the dependencies together? So I'll run Script 1
and 2...
Then prompt for them to run Script 3...
If they run Script 3 they should be prompted if they want to run script
4 - otherwise the build should just stop.
Thanks,
Jim
-
have a working example to compare.
Thanks so much for the help!
Jim
> -Original Message-
> From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 23, 2007 8:41 AM
> To: Ant Users List
> Subject: RE: Help with running different target based on user
rom: RADEMAKERS Tanguy
>Sent: Friday, February 23, 2007 2:25 PM
>To: 'Ant Users List'
>Subject: RE: Help with running different target based on user input?
>
>Hello James,
>
>You should put the input tasks within the target blocks that
>"consume" the inp
Hello James,
You should put the input tasks within the target blocks that "consume"
the inputted info:
mailto:[EMAIL PROTECTED]
>Sent: Friday, February 23, 2007 2:13 PM
>To: user@ant.apache.org
>Subject: Help with running different target based on user
I'm just getting started using Ant (from within Eclipse) to help deploy
my ColdFusion projects and Oracle sql scripts.
I've had great success so far but I have finally ran into a problem I
can't figure out.
I'm trying to run some Oracle scripts - but would like to prompt the
user while running th
Hi,
I'm using ant to compile and then run a Java application which takes
user input from the command line via System.in. In my build.xml file:
classpath="${basedir}/installer/*.class" fork="true"/>
However, it appears that ant is holding onto System.in, so w
quot;Rhino" <[EMAIL PROTECTED]>
Sent: Wednesday, January 19, 2005 6:44 AM
Subject: Re: Setting variable classpath based on user input
> Hello Rhino,
> Sorry for the delay in response. I was down with fever :-(
> I wanted to thank you for the help. It certainly gave me an idea to
> s
hi Rao" <[EMAIL PROTECTED]>
To:
Sent: Saturday, January 15, 2005 12:36 PM
Subject: Setting variable classpath based on user input
> Hello,
> While defining a macrodef, I needed the Classpath refid to take 2
> different values based on an option which is set by the user.
> For e
Hello,
While defining a macrodef, I needed the Classpath refid to take 2
different values based on an option which is set by the user.
For ex: if the user sets the option as Opt1, then I wanted the
classpath refid to be classpath1 else if the user sets the option as
Opt2 then I wanted the classpath
Hey all,
I have a cmd-line app that I execute from a custom Ant task that I wrote.
This app sometimes prompts for confirmation as it goes through it's stuff.
>From my ant script though, that prompt doesn't come up and ends up hanging
my script since there is no way to answer the prompt. In fact, t
28 matches
Mail list logo