ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Sharma <shailesh_s...@yahoo.com>
Subject RE: Problem with condition selection property; Help needed
Date Mon, 02 Apr 2007 14:31:52 GMT
I am using following:
   
  Apache Ant version 1.6.2 compiled on August 5 2004
   
  

Shailesh Sharma <shailesh_scea@yahoo.com> wrote:
  I am getting following errors now ...


BUILD FAILED
/export/bea/Mah-ail/AIL/AOCB/scripts/build.xml:174: The type doesn't support the "keepgoing"
attribute.



"Anderson, Rob (Global Trade)" wrote:
OK. I think I understand what you are trying to do. I would suggest
using the task, rather than the task, because the 
task has a keepgiong attribute.

Here is a solution that works for me.













[input] validargs="y,n" addproperty="user.selection"/>




******* You have chosen not to deploy
${sourceappname.a}. *****
Deploying ${sourceappname.a}




-Rob Anderson



> -----Original Message-----
> From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] 
> Sent: Thursday, March 29, 2007 7:54 AM
> To: Ant Users List
> Subject: RE: Problem with condition selection property; Help needed
> 
> Rob, Thanks for atleast writing something. I am still having 
> that problem.
> 
> Actually this is the scenario:
> 
> I am using this build to deploy my application ear files. I 
> have 3 ear files in total. But it could sometimes be less or 
> more than 3. So, this build is a generic script.
> 
> Basically, every time when i deploy my application ear 
> file, this build ask me for a selection "Y/N" -- when i 
> accept "Y" it deploy that particular file, then it ask me for 
> the next and so on so forth.
> 
> But when i accept "N" as a selection for the first ear 
> file, it just comes out as "build failed". I do not want 
> that. I want to move on to the next ear file for me to get 
> selection "Y/N" again till i ran out of my number of ear 
> files IRRESPECTIVE of me selecting "N" for particular ear 
> files( that i do not want to deploy momentarily).
> 
> Please advise and let me know how to change the logic.
> 
> 
> "Anderson, Rob (Global Trade)" wrote:
> Shailesh, When fail is executed, the build fails. What are 
> you expecting
> to happen?
> 
> -Rob Anderson
> 
> 
> 
> > -----Original Message-----
> > From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] 
> > Sent: Monday, March 26, 2007 7:01 PM
> > To: Ant Users List
> > Subject: Re: Problem with condition selection property; Help needed
> > 
> > I am still scratching my head on my problem. Any help is 
> > much much appreciated.
> > 
> > Best Regards.
> > 
> > 
> > Shailesh Sharma wrote:
> > Hi,
> > I have a "for loop" in one target that iterates through few 
> > times and then call my actual deployment target".
> > 
> > The problem is that when I accept "n" (i.e NO) as the first 
> > selection, the whole build just comes out of the loop and do 
> > not allow me to choose selection for the rest of the files in 
> > the "for loop".
> > 
> > Please help.
> > 
> > Exception:
> > 
> > BUILD FAILED
> > file:/export/bea/Win-splus/SPLUS/QPS/scripts/build.xml:62: 
> > ******* You have choosen not to continue. Build aborted by 
> > user. *******
> > 
> > 
> > Following is snippet of my build.xml file ...
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > [input] message="Aceepy either y or n to continue and then 
> > press enter"
> > 
> > validargs="y,n"
> > addproperty="user.selection"
> > />
> > 
> > 
> > 
> > 
> > 
> > ******* You have choosen not to continue. Build aborted by 
> > user. *******
> > 
> > .
> > .
> > .
> > .
> > ..
> > 
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------
> > Bored stiff? Loosen up...
> > Download and play hundreds of games for free on Yahoo! Games.
> > 
> > 
> > ---------------------------------
> > Expecting? Get great news right away with email Auto-Check.
> > Try the Yahoo! Mail Beta.
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> ---------------------------------
> Sucker-punch spam with award-winning protection.
> Try the free Yahoo! Mail Beta.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

 
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message