FAQ

On 11/5/10 6:48 AM, Java Jboss wrote:
Hi,

Thank you for the suggestions so far from Antoine and Michael. unfortunately
I've been asked to use ANT only without using unix shell scripts. I have
tried to tackle it as individual modules using ANT script running the 1st
iteration of the mysql scripts against newschema1. I need to run each
iteration against all 4 schemas, then it would do a version check and if
version check wasn't met then it would start 2nd iteration and so on.

This is rather urgent so I would appreciate any assistance. I need to create
a recursive loop which I can't do and also some error checking module as
well as some how linking these modules together so that they depend on each
other etc... At the moment I have to run each target on its own.

Please feel free to change my novice attempt at writing an ANT script.

Thank you
You can look into macrodef if you need to run several times the same
task or the same set of tasks with slightly different parameters.
Also, if you need loops and recursions, you might be better off writing
your own ant task (this is documented online too in the manual) and make
this ant task use the exec and sql task to do the work.
Regards,

Antoine

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 9 of 22 | next ›
Discussion Overview
groupuser @
categoriesant
postedNov 4, '10 at 4:27p
activeNov 9, '10 at 1:06p
posts22
users9
websiteant.apache.org

People

Translate

site design / logo © 2018 Grokbase