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: branching logic after user input
Date Tue, 06 Apr 2004 09:02:35 GMT
<input property="file"/>
<property file="${file}"/>
<copy file="${srcfile}"/>

foo.properties: srcfile=foobar
bar.properties: srcfile=barfoo

...

or AntContribs <if>....


Jan



> -----Original Message-----
> From: Jason Novotny [mailto:novotny@aei.mpg.de]
> Sent: Tuesday, April 06, 2004 10:55 AM
> To: user@ant.apache.org
> Subject: branching logic after user input
> 
> 
> 
>     Hi,
> 
>     I feel like I'm trying to do something that should be 
> ridiculously 
> easy, but is not ;-) I'm just trying to get user input and if 
> the input 
> is "foo" then i want to copy a file "foobar", if it is "bar" 
> then I want 
> to copy over barfoo.
> 
>   Thanks, Jason
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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