ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Conditional antcall
Date Tue, 21 Feb 2006 06:21:38 GMT
Just an idea .... does it has any effects to call the create-statement on an existing database?
If not, just execute both. Like an <mkdir> on an existing directory.

Maybe that depends on the database.
And maybe the onerror-attribute of <sql> would help.


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: ar [mailto:armaillist@free.fr] 
>Gesendet: Montag, 20. Februar 2006 17:42
>An: user@ant.apache.org
>Betreff: Conditional antcall
>
>
>Hi,
>
>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.
>Any idea on how to do this conditional call ?
>
>Regards
>--
>A. ROY
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message