RE: how to change name of war & ear file based on user input values

2009-07-21 Thread Scot P. Floess
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,

RE: how to change name of war & ear file based on user input values

2009-07-21 Thread edumudi.viswan...@oracle.com
--- 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

Re: how to change name of war & ear file based on user input values

2009-07-21 Thread Scot P. Floess
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

how to change name of war & ear file based on user input values

2009-07-21 Thread edumudi.viswan...@oracle.com
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 &

AW: conditional logic and user input

2009-07-02 Thread Jan.Materne
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 >

RE: conditional logic and user input

2009-07-02 Thread Rick Genter
> 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

conditional logic and user input

2009-07-01 Thread dave_davis
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

Re: user input

2007-10-09 Thread Steve Loughran
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

user input

2007-10-08 Thread ahnf
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

RE: Help with running different target based on user input?

2007-02-23 Thread KDuffy
Kevin Duffy eScholar White Plains, NY 914-989-2983

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James (NIH/NIEHS) [C]
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

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
>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 ---

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
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

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James (NIH/NIEHS) [C]
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'

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James (NIH/NIEHS) [C]
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

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
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

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James (NIH/NIEHS) [C]
> -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

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
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

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James (NIH/NIEHS) [C]
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 -

RE: Help with running different target based on user input?

2007-02-23 Thread Priest, James \(NIH/NIEHS\) [C]
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

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
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

RE: Help with running different target based on user input?

2007-02-23 Thread RADEMAKERS Tanguy
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

Help with running different target based on user input?

2007-02-23 Thread Priest, James \(NIH/NIEHS\) [C]
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

Ant, and user input in Java

2005-02-09 Thread Jon Pearse
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

Re: Setting variable classpath based on user input

2005-01-19 Thread Rhino
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

Re: Setting variable classpath based on user input

2005-01-15 Thread Rhino
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

Setting variable classpath based on user input

2005-01-15 Thread Swathi Rao
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

Prompt for user input from Ant script?

2003-12-17 Thread Matt Harp
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