Re: ResourceManager-woes (and a feature request)

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Mon Nov 24 2003 - 08:11:23 EST

  • Next message: Ulrich Köster: "WOLips 1.0.7.33 for Eclipse 3.0.0 M5"

    Hi,

    Am 24.11.2003 um 13:34 schrieb Harald Niesche:

    > Alexander Schneider wrote:
    >
    > > PS: Oh, here is my feature request (:-)):
    > >
    > > What about extending the ant tasks with a parameter "ignoreSubDirs"
    > > (true or false) which will copy the resources either with the
    > > subdirectories or without (so having a plain directory with all
    > > resources in it). That would be great!
    > >
    >
    > I think that feature is already there -- I am unsure what it's called,
    > but if you look for flatten, you should find it (if I am not
    > completely wrong).
    >
    > Harald
    >
    >

    flatten is the keyword:

    Just create a global (glob) mapper
    .
    .
    .
    .
    <!-- woproject tasks -->
            <target name="build.woapp">
                    <mapper type="glob" from="foo/foo2/" to=""/>
            
    .
    .
    .
    .
    .

    In your case the mapper should look like this:
    <mapper type="glob" from="web/img/" to=""/>

    Ulrich



    This archive was generated by hypermail 2.0.0 : Mon Nov 24 2003 - 08:11:29 EST