Re: Conditional antcall

2006-02-20 Thread Nicolas Vervelle
> I'd like to access to a database, and, if it fails, create the > database > otherwise update it. > To access the database, I intend to use a sql task. If the sql > request > fails, I want to call the create-database target. If it successes, > I want > to call the update-database target.

Re: Conditional antcall

2006-02-20 Thread Ninju Bohra
Within the constraints of default ANT components it may be a bit klugely (but then you're probably used doing ANT kluges :-) A way that I found to get data into ANT from the database is to execute SQL whose result (when successful) looks like a standard JAVA property file. I then use the tas