ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: simple yet complicated
Date Fri, 13 Jul 2001 21:37:49 GMT
----- Original Message -----
From: "Rigorberto Macias" <rigorberto.macias@irista.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, July 13, 2001 7:27 PM
Subject: simple yet complicated


> <property name="buildnum" value="buildnum1.currval"/>

I don't think there is currently a way to assign the current value of an
oracle-sequence to a property. (Or any sql-result to anything)

Best solution I can think of: run a sql-script just before you start ant -
something along

set whatEver off (don't know how to disable eveything beyond the pure
result)
spool buildnum.properties
select 'buildnum1.currval'||buildnum1.currval from dual;
spool off
exit

and add <property file="buildnum.properties"/> to your buildfile.

Nico



Mime
View raw message