Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 24839 invoked by uid 500); 31 Aug 2001 17:14:54 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 24830 invoked from network); 31 Aug 2001 17:14:54 -0000 Message-ID: <20010831171455.17166.qmail@web11603.mail.yahoo.com> Date: Fri, 31 Aug 2001 10:14:55 -0700 (PDT) From: Edgar "S�nchez" Subject: RE: nested targets and calling a target from a command line? To: ant-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks Ylan... so, the command line will be in as follows... ant -compile="targetname" -buildfile buildtest.xml is it correct??? and for the second thing, I asked the nested targets, because i want to keep an order of modules I'm using, and also use the dependencies from principals targets... but as I said, is a little crazy. Thanks VES --- Ylan Segal wrote: > In answer to your second queastion.. sure!!!! > You can call a target from the commando prompt: > $> ant compile > > (assuming that you have the ant script for your > system in the path). > That will run ant and execute the compile target. If > that target has any > dependencies it will run those targets first, and if > those targets in turn > have dependencies, it will run them also, and so on. > > as for setting a target within a target, I don't > believe it is possible, but > I also don't see why you need it. Dependencies take > care of that, don't > they? > > Ylan Segal > ylan@digworks.tv > > > > -----Original Message----- > > From: Edgar Sanchez [mailto:vesanchez@yahoo.com] > > Sent: Friday, August 31, 2001 11:01 AM > > To: ant-user@jakarta.apache.org > > Subject: nested targets and calling a target from > a command line? > > > > > > Hi everyone.. as I told you the questions are > not > > finished yet :-) > > > > This time a come with 2 more... :-P > > > > Is there a chance to nest targets, I mean, can I > > have a main target and inside of it, keep 3, 4 or > n > > targets??? this guide us to the next question..... > is > > it possible to call a target from a command line?? > > > > all this could be more especific with an > example. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So, from the command line I would like to call > > main2, and the dependency would check which target > > goes first > > > > ant -target="main2" -buildfile testtarget.xml > > > > I do not know if is this too crazy, but, is it > > possible?? > > > > Thanks > > VES > > > > ===== > > > > > _________________________________________________________________ > > > > "Puedes sentirte desilusionado si fallas, pero > estas condenado si > > no lo intentas." > > > > "You can get disappointed if you fail down, but > you are doomed if > > you do not try it." > > > > ICQ # 22338121 > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get email alerts & NEW webcam video instant > messaging with Yahoo! > > Messenger > > http://im.yahoo.com > > > > > ===== _________________________________________________________________ "Puedes sentirte desilusionado si fallas, pero est�s condenado si no lo intentas." "You can get disappointed if you fail down, but you are doomed if you do not try it." ICQ # 22338121 __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com