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: Fileset customized per customer?
Date Fri, 16 Apr 2004 17:07:29 GMT
- copy all files in config/USER to a temp dir
- copy all files in config/ to a temp dir without overwriting
- use temp dir instead config 

Jan

> -----Original Message-----
> From: Jack Woehr [mailto:jax@purematrix.com]
> Sent: Friday, April 16, 2004 7:00 PM
> To: Ant Users List
> Subject: Fileset customized per customer?
> 
> 
> "I'm trying to think, but nothing happens!?" - Curly Howard 
> (Three Stooges)
> 
> I've got a bunch of generic files with in a directory. 
> Customer subdirectories may contain some, all, or no 
> customer-specific versions
> of the same files contained in the parent, e.g.:
> 
>      config/ --+
>                |
>                +-- foo.conf
>                |
>                +-- bar.conf
>                |
>                +-- A/ --+   ( <== customer A)
>                |        |
>                |        +-- foo.conf
>                |
>                +-- B/ --+ (  <== customer B)
>                         |
>                         +-- foo.conf
>                         |
>                         +-- bar.conf
> 
> I'd like to say:
> 
>      "Copy with filterset overwrite everything in the base 
> config/ directory, but for each file
>      in the config/ dir, if there exists a file with the same 
> name in config/${customer}/, then
>      use that file instead."
> 
> I've done this in a few cases by calculating the resultant 
> pathnames into properties, but the situation
> is becoming global. Is there a generic answer to this sort of problem?
> 
> --
> Jack J. Woehr            # "[F]ar in the empty sky a solitary 
> esophagus slept
> http://www.well.com/~jax #  upon motionless wing; everywhere 
> brooded stillness,
> http://www.softwoehr.com #  serenity, and the peace of God." 
> - Mark Twain
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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