• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scan propertie file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i have an ant xml file with a main property file. in this file i want to use some place holders e.g. @user.name@. this user.name is defined in an other property file. now i want to copy the main property file and replace all the token with @bla.bla@ with the corresponging value from the other prop file. the problem is, that the tokens are variable. so i have to scan the hole prop file for the @ char and then replace it with the property value from the other property file.

i hope someon got an idea.
bye
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean like this?



Word of warning: If you use the ant substitution facility, it assumes that all files being copied are text. Under MS-DOS text rules, this can really scramble files with things that look like end-of-line characters in them.

Like image and zip files
 
Andreas Grimm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your help.

cause the tokens can be variable i found an other way, not very different from yours. istead of filter i use filtersfile and this works.
[ November 04, 2005: Message edited by: Andreas Grimm ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic