ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: set property within a target
Date Tue, 08 Jun 2004 16:33:14 GMT
Let that task use another property.

Jan
  

> -----Original Message-----
> From: Samuel Cheung [mailto:SCheung@Novarra.com]
> Sent: Tuesday, June 08, 2004 6:13 PM
> To: 'Ant Users List'
> Subject: RE: set property within a target
> 
> 
> Thanks.
> 
> I have this in the beginning of my ANT script: 
> <property name="midletDataSize" value="4096" />            
> 
> And I need to change the value in a task and that task only 
> runs if certain
> conditions are met.
> 
> Is there a better way to achieve that?
> 
> 
> 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Tuesday, June 08, 2004 10:55 AM
> To: user@ant.apache.org
> Subject: RE: set property within a target
> 
> Works in exactly that way, but
> - if that snippet is all change the order
>     <property name="midletDataSize" value="512000" />            
>     <echo message="${midletDataSize}" />
> - if you have set the prop before it does not work: 
> properties are immutable
> 
> 
> Jan
> 
> > -----Original Message-----
> > From: Samuel Cheung [mailto:SCheung@Novarra.com]
> > Sent: Tuesday, June 08, 2004 5:02 PM
> > To: 'Ant Users List'
> > Subject: set property within a target
> > 
> > 
> > Hi,
> > 
> >  
> > 
> > Can you please tell me how to set property within a target?
> > 
> > 
> > This does not work:
> > 
> > 
> > 
> > <target name="updateMidletDataSize >
> > 
> >             <echo message="${midletDataSize}" />
> > <!-- the org value of midletDataSize is 4096 -->
> >             <property name="midletDataSize" value="512000" />
> > 
> >       </target>
> > 
> >  
> > 
> > Thanks for any help 
> > 
> > Sam
> > 
> > 
> > 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message