Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 91870 invoked from network); 31 Oct 2007 22:23:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2007 22:23:09 -0000 Received: (qmail 66053 invoked by uid 500); 31 Oct 2007 22:22:54 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66021 invoked by uid 500); 31 Oct 2007 22:22:54 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 66010 invoked by uid 99); 31 Oct 2007 22:22:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2007 15:22:54 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.201.73] (HELO web31015.mail.mud.yahoo.com) (68.142.201.73) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Oct 2007 22:22:57 +0000 Received: (qmail 88180 invoked by uid 60001); 31 Oct 2007 22:22:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=06vB81dVb1owUCt0YGCTQS6+OIvN2h8S0RoffcJ4rOYA+rWVekoTsPMxmmrBGheTkkHnMDVwoLH3UpB2pywb0jEcwXlkvcl74Xvu9ESwpsSd5FxqgeK/26JyJ5GXF4WBE+2GZ4HQA536CNxDrdRpb+pqimhfTA11fGg9d2Dne7k=; X-YMail-OSG: uX2PPSEVM1kDJLiy0zT_0_Wj_fIYhtORy8O_FePCKjTff1CFELS2QlevjvMuRLKM0KxXfrpbhgLvuXVog4F0EHS5DbRaBqIp9C_CaDJCRWD9f4hB_B0- Received: from [153.2.246.32] by web31015.mail.mud.yahoo.com via HTTP; Wed, 31 Oct 2007 15:22:36 PDT Date: Wed, 31 Oct 2007 15:22:36 -0700 (PDT) From: Shailesh Sharma Subject: RE: Problem with condition selection property; Help needed To: Ant Users List In-Reply-To: <26286.69107.qm@web31014.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-790299418-1193869356=:86654" Content-Transfer-Encoding: 8bit Message-ID: <47135.86654.qm@web31015.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-790299418-1193869356=:86654 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am still looking for a solution. Iam using foreach task. and i loop through it and it ask Y/N as an input. But if I select Y for the first input, for the second input, i have to press Y twice. any solution so far on this? Shailesh Sharma wrote: I am using foreach task as you suggest previously with an example. it works except that when i select "Y" for my first selection of the file deployment, the next gives me an option to select "Y/N" ... BUT when select either Y/N ...it does not work. If i press enter again, it ask me to select Y/N for the second time ...and NOW it works (depending upon whatever i choose Y/N). So, the second selection for my files works after 2 times of acceptance. "Anderson, Rob (Global Trade)" wrote: Are you still having problems with this? You need to use the foreach task, rather than the for task. -Rob Anderson > -----Original Message----- > From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] > Sent: Monday, April 02, 2007 7:32 AM > To: Ant Users List > Subject: RE: Problem with condition selection property; Help needed > > I am using following: > > Apache Ant version 1.6.2 compiled on August 5 2004 > > > > Shailesh Sharma 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-790299418-1193869356=:86654--