Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39260 invoked from network); 1 Mar 2004 22:24:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Mar 2004 22:24:12 -0000 Received: (qmail 90934 invoked by uid 500); 1 Mar 2004 22:23:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90857 invoked by uid 500); 1 Mar 2004 22:23:49 -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 90841 invoked from network); 1 Mar 2004 22:23:49 -0000 Received: from unknown (HELO ext-nj2gw-1.online-age.net) (216.35.73.163) by daedalus.apache.org with SMTP; 1 Mar 2004 22:23:49 -0000 Received: from int-nj2gw-1.online-age.net (int-nj2gw-1 [3.159.236.65]) by ext-nj2gw-1.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id i21MNriF003746 for ; Mon, 1 Mar 2004 17:23:53 -0500 (EST) Received: from ncwlmx01nege.wilm.ge.com (localhost [127.0.0.1]) by int-nj2gw-1.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id i21MNpip005559 for ; Mon, 1 Mar 2004 17:23:52 -0500 (EST) Received: by ncwlmx01nege.wilm.ge.com with Internet Mail Service (5.5.2653.19) id ; Mon, 1 Mar 2004 17:23:41 -0500 Message-ID: <42C9EFEA1737D511BA420008C78641510D3ECC21@ncwlmx01nege.wilm.ge.com> From: "Conelly, Luis (GNF, Contractor)" To: Ant Users List Subject: RE: how to run a target multiple times from another target Date: Mon, 1 Mar 2004 17:23:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3FFDB.D5C10BA8" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3FFDB.D5C10BA8 Content-Type: text/plain; charset="iso-8859-1" Have you declared the use of ant-contrib? You require to have a line such like: Check the ant-contrib website about how to configure ant-contrib-0.x.jar file. http://sourceforge.net/projects/ant-contrib http://ant-contrib.sourceforge.net/ HTH -Luis -----Original Message----- From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] Sent: Monday, March 01, 2004 4:19 PM To: Ant Users List Subject: Re: how to run a target multiple times from another target Thanks Dan. Now iam getting this exception: >ant deploy-cm-testnet Buildfile: build.xml deploy-cm-testnet: BUILD FAILED file:/export/home/beamon/bin/build.xml:91: Could not create task or type of type: for. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'for'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using . Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. Total time: 3 seconds Dale Anson wrote: Try changing this: list="${cm1Application.source}","${cm2Application.source}","${cm3Application.source}" to this: list="${cm1Application.source},${cm2Application.source},${cm3Application.source}" Shailesh Sharma wrote: > Hi Jan, > I was reading this email from you .....and as per your directions i have made this sample build.xml file: > > > > > > > > > > > > > > > > > > > se="true" adminurl="${espreso.admin.url}" debug="true" targets="${cmApplication.target}"/> > > > > > > > > But when iam running this as like this on my unix box, this is what it complains: > > > >>ant deploy-cm-testnet > > Buildfile: build.xml > BUILD FAILED > file:/export/home/beamon/bin/build.xml:91: Element type "for" must be followed by either attribute specifications, ">" or "/>". > Total time: 3 seconds > > > > what is the matter ??? > > -shailesh > > > > > Jan.Materne@rzf.fin-nrw.de wrote: > I would try AntContrib > > > > > > > > > > > Jan > > > > >>-----Original Message----- >>From: Shailesh Sharma [mailto:shailesh_scea@yahoo.com] >>Sent: Thursday, February 05, 2004 3:57 PM >>To: Ant Users List >>Subject: how to run a target multiple times from another target >> >> >>Hi, I have a build.xml file that contains a target called >>"deploy" that i need to execute 5 times depending upon the >>source specified in another target called >>"deploy-cm-testnet". So on my command line i will just type >> >>>ant deploy-cm-testnet >> >>and it will execute the "deploy" target 5 times .....all i >>want to know is if it will work OR if it is the correct >>approach .....??? >> >>Well what i mean to say is ......i probably want to write a >>target that does the deploy, and then call the target many times. >> >>ie. something like this >> >> >> >> >> >> >> >> >>value="foo1.war"/> >> >> >>value="foo2.war"/> >> >> >>value="foo3.war"/> >> >> >>value="foo4.war"/> >> >> >>value="foo5.war"/> >> >> >> >>Please suggest. >> >> >> >> >>--------------------------------- >>Do you Yahoo!? >>Yahoo! Finance: Get your refund fast by filing online >> > > > > --------------------------------- > Do you Yahoo!? > Get better spam protection with Yahoo! Mail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------- Do you Yahoo!? Get better spam protection with Yahoo! Mail ------_=_NextPart_001_01C3FFDB.D5C10BA8--