Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 21394 invoked from network); 3 Jun 2004 15:10:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jun 2004 15:10:27 -0000 Received: (qmail 96130 invoked by uid 500); 3 Jun 2004 15:10:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96055 invoked by uid 500); 3 Jun 2004 15:10:27 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96042 invoked by uid 99); 3 Jun 2004 15:10:27 -0000 Received: from [202.144.91.162] (HELO relay2.iflexsolutions.com) (202.144.91.162) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 03 Jun 2004 08:10:27 -0700 Received: from fmgrt.rt.i-flex.com (pppserver [192.168.50.2]) by relay2.iflexsolutions.com (8.12.3/8.12.3) with ESMTP id i53Kbjbv023689 for ; Thu, 3 Jun 2004 20:37:45 GMT Received: from fmgrt.rt.i-flex.com ([192.168.50.2]) by fmgrt.rt.i-flex.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 3 Jun 2004 20:44:05 +0530 Received: from fmg-op.opal.i-flex.com ([169.165.63.11]) by fmgrt.rt.i-flex.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 3 Jun 2004 20:44:05 +0530 x-mimeole: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem to set property with refid Date: Thu, 3 Jun 2004 20:44:04 +0530 Message-ID: <4421DECD1639A149826D84B0F3EE8F1F084A8E0B@fmg-op.opal.i-flex.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem to set property with refid Thread-Index: AcRJdxfac6PcZN9fRf+CYGcVBb4V1wABOBaA From: To: X-OriginalArrivalTime: 03 Jun 2004 15:14:05.0600 (UTC) FILETIME=[6915EA00:01C4497D] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi All, If I have a target like this, Some tasks... If, 'some_property_set' is not set, target C is not executed, but the targets in the 'depends' list get executed. How to avoid execution of these targets? I do not want to have the same in the targets = A & B, as they may be called from other targets and the value of 'some_property_set' property, may not be relevant in the targets A & B at that time. Regards, Vinod. -----Original Message----- From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]=20 Sent: Thursday, June 03, 2004 7:54 PM To: Ant Users List Subject: RE: Problem to set property with refid Hi, I do not know what this is due to. Can you post you ant script to see how you use task. --- vinod.nayak@iflexsolutions.com wrote: > OK Ivan, >=20 > I tested it for many such cases and it is working > well. > Thanks for your understanding whatever you had! >=20 > I need some clarifications on SQL tasks. >=20 > I need to execute a procedure called aPROC. > If I give the statement as "execute aPROC;" in the > sql file, > It is throwing this error. >=20 > DbUpdates: > [echo] Executing DB scripts. > [sql] Executing file: > /products/proj/pisars/database/db12Jun/db-execs/Auth_history_correction. > sql > [sql] Failed to execute: EXECUTE > CHECK_REQ_MASTER >=20 > Do you know why this due to? >=20 > Thanks & regards, > Vinod. >=20 > -----Original Message----- > From: Ivan Ivanov > [mailto:rambiusparkisanius@yahoo.com]=20 > Sent: Thursday, June 03, 2004 3:57 PM > To: Ant Users List > Subject: RE: Problem to set property with refid >=20 > Hi Vinod, > I am not sure I understand you quite well :)) >=20 > --- vinod.nayak@iflexsolutions.com wrote: > > Thanks Ivan, > >=20 > > I used the logic 'isset' and my problem is solved. > >=20 > > Tell me, am I correct here. > >=20 > > > classpath=3D"xyz.jar" > > debug=3D"on"> > > > > > > > > >=20 > Well, I always organize my project so that I nave > used > with more than one attribute. If I > have > several source dirs, I compile them with several > , so I never used a snippet like the one > above. >=20 > > In this task, java source files of ${src1} are > > compiled first and then > > later from ${src2}.=20 > Not sure what you mean. Are sources from ${src1} > compiled first OR are compiled later? >=20 > >I tested it by having a java > > file in ${src2} > > dependent on a java file existing in ${src1} and > it > > could compile successfully.=20 > Well, ant resolve dependencies between classes in a > very decent manner, so it will compile successfully. >=20 > >But while compiling the task echoes, > > 'compiling > files from ${src1}+ no of files from ${src2} java > > file to ..' in a > > single line.=20 > What is the exact message that is echoed. In fact > you > have turned javac' debug on, which means that it > will > show lots of messages - what classes it loads and > which classes it compiles. Try to turn it on if you > don't what to see the message. >=20 > >I want to be double sure on what I am > > guessing is right. > >=20 > Can you say once again your guess, please. >=20 > Sorry I want't so helpful. >=20 > Ivan >=20 > > Please help me, > > Vinod. > >=20 > >=20 > > -----Original Message----- > > From: Ivan Ivanov > > [mailto:rambiusparkisanius@yahoo.com]=20 > > Sent: Thursday, June 03, 2004 12:53 PM > > To: Ant Users List > > Subject: RE: Problem to set property with refid > >=20 > > Hi Vinod, > >=20 > > Let's say the property we want to check is called > > testprop. The check can be done in several ways > >=20 > > 1) Pure Ant > > > >=20 > > > > ... Do smth here > > > >=20 > > > > ... Do smth here again > > > >=20 > > The point is that target "main" will call both > > target_A and target_B. Then if testprop IS set > > target_A will be excecuted. If testprop IS NOT set > > target_B will be executed. > >=20 > > 2) Ant + Ant-Contrib > > If you have many conditions to check in this way > you > > may prefer ant-contrib [1] task [2]. In our > > case: > > > > > > > > > > ... Do here the stuff previously done > in > > target_A > > > > > > ... Do here the stuff previously done > in > > target_B > > > > > > > >=20 > > Note that is Ant built-in condition. For > > more > > info on condition check [3] and [4]. > >=20 > > Regards Ivan > >=20 > > [1]http://ant-contrib.sourceforge.net/ > > > [2]http://ant-contrib.sourceforge.net/tasks/if.html > > > [3]http://ant.apache.org/manual/CoreTasks/condition.html > > > [4]http://ant.apache.org/manual/CoreTasks/conditions.html > >=20 > >=20 > > =09 > > =09 > > __________________________________ > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger. > > http://messenger.yahoo.com/=20 > >=20 > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > > user-help@ant.apache.org > >=20 > >=20 > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > > user-help@ant.apache.org > >=20 >=20 >=20 >=20 > =09 > =09 > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org >=20 >=20 =3D=3D=3D message truncated =3D=3D=3D =09 =09 __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org