Anil, You may be able to accomplish what you need by using the output attribute of the <sql>
task to specify an output file for the sql statement, then use the <loadfile> task to
load the value contained in the output file into a property, then use the ant-contrib <if>
task to test the value of the property.
-Rob Anderson
> -----Original Message-----
> From: Jacob, Anil - MWT [mailto:Jacob.Anil@menlolog.com]
> Sent: Thursday, December 30, 2004 11:20 AM
> To: Ant Users List
> Subject: Sql task and property
>
>
> I have an sql task which checks the records in 3 tables. Is
> there a way
> I can set a property if the value in any of the tables is > 0? This
> property will be used for other tasks.
>
> Anil
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|