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: how to run a target multiple times from another target
Date Tue, 02 Mar 2004 20:09:10 GMT

Thanks, I have solved all the problems related to my issues. Thanks again for your expertise
suggestions and advises.
 
-shailesh

Shailesh Sharma <shailesh_scea@yahoo.com> wrote:
can you suggest me something which makes sense to my build.xml file:
are you saying something like this in my build.xml















se="true" adminurl="${espreso.admin.url}" debug="true" targets="${cmApplication.target}"/>





Peter Reilly 
wrote:
The task only works for ant 1.6 and higher.
For ant 1.5 , you need to use the task.
Peter
Shailesh Sharma wrote:

>Yes, after putting this line of code on build.xml ... 
> 
>
> 
>iam using Apache Ant 1.5. Although on this site: http://ant-contrib.sourceforge.net/#install
> 
>it says that i can use 1.5 or higher.
>
> 
> 
>iam getting this error :
> 
> 
> 
>
>>ant deploy-cm-testnet
>> 
>>
>Buildfile: build.xml
>deploy-cm-testnet:
>BUILD FAILED
>file:/export/home/beamon/bin/build.xml:96: Could not create task of type: for due to This
task only works for ant >= 1.6Beta3
>Total time: 4 seconds
> 
>
>
>"Conelly, Luis (GNF, Contractor)" wrote:
>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
>
>
>---------------------------------
>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!?
Yahoo! Search - Find what you’re looking for faster.

---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message