ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Extract property out of multiline file
Date Wed, 08 Dec 2004 13:30:47 GMT
Just a thought ...

<loadfile>
  <filterchain>
    <tokenfilter>
      <filetokenizer/>
      <replaceregex pattern="${line.separator}"
                    flags="g"
                    replace=","/>
    </tokenfilter>
  </filterchain>
</loadfile>


Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]
> Gesendet am: Mittwoch, 8. Dezember 2004 14:21
> An: ant_user (E-Mail)
> Betreff: Extract property out of multiline file
> 
> 
> Hi, i have a txtfile generated by a script.
> 
> The file looks like that :
> 
> Env1,
> Env2,
> Env3,
> 
> sometimes there's only one value in that file, sometimes
> more, like above.
> 
> I want to stript the ',' and get that Env's into one property :
> 
> myproperty = "Env1,Env2,Env3"
> 
> How to do that without scripting ?
> 
> Thanks for any hints!!
> 
> Regards, Gilbert
> 
> 
> 
>  
> 
> ---------------------------------------------------------------------
> 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