ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vogel <pvo...@arsin.com>
Subject RE: simple yet complicated
Date Sat, 14 Jul 2001 04:18:37 GMT
Or apply my outputproperty patch to <exec> and use exec to snag
the buildnum.

-Peter

> -----Original Message-----
> From: Nico Seessle [mailto:nico@apache.org]
> Sent: Friday, July 13, 2001 2:38 PM
> To: ant-user@jakarta.apache.org
> Subject: Re: simple yet complicated
> 
> 
> ----- 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