Re: ResourceManager-woes (and a feature request)

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Wed Nov 26 2003 - 04:48:41 EST

  • Next message: Harald Niesche: "Re: ResourceManager-woes (and a feature request)"

    Hi Alexander,

    I've added a feature request to our tracker:

    http://objectstyle.org/jira/secure/ViewIssue.jspa?key=WOL-1

    Ulrich

    Am 26.11.2003 um 08:23 schrieb Alexander Schneider:

    > Sorry if that is a double post but I didn´t get my own email from the
    > list so I send it again.
    >
    >
    > That doesn´t work for me. Here is the extract from the build.xml:
    >
    > <!-- woproject tasks -->
    > <target name="build.woframework">
    > <woframework name="${framework.name}" destDir="${dest.dir}">
    > <classes dir="${classes.dir}">
    > </classes>
    > <wsresources dir="web">
    > <include name="**"/>
    > <exclude name="**/*.framework/**"/>
    > </wsresources>
    > <resources dir=".">
    > <include name="Properties"/>
    > <include name="**/*.eomodeld/"/>
    > <include name="**/*.d2wmodel"/>
    > <include name="**/*.wo/"/>
    > <include name="**/*.api"/>
    > <include name="**/*.strings"/>
    > <exclude name="**/*.eomodeld~/"/>
    > <exclude name="**/*.framework/**"/>
    > </resources>
    > <lib dir=".">
    > <include name="Add .jar's that should be copied in the framework."/>
    > <exclude name="**/*.woa/**"/>
    > </lib>
    > </woframework>
    > </target>
    >
    > In the installed framework it just reflects the directory structure of
    > my "web" directory with all the subdirectories.
    >
    > I think it should be simple to add support for an attribute "flatten"
    > into the wsresource-task. I found it in the WOTask class. I don´t know
    > how to add support for getting an attribute´s value from the build.xml
    > into the java class. But one can easily set the flatten attribute to
    > the
    > copying task if you check if the flatten attribute is set to "yes" for
    > example.
    >
    > Cheers
    > Alex
    >
    >
    >
    > Harald Niesche schrieb:
    >
    >> Alexander Schneider wrote:
    >>>
    >>> Thanks, I tried this but it didn´t help. There are no changes in the
    >>> installed framework. I changed my build.xml file to:
    >>>
    >>> <target name="build.woframework"> <mapper type="glob"
    >>> from="web/img/*.gif" to="*.gif"/>
    >>>
    >>> I also tried it without specifying a file type but it didn´t work.
    >>>
    >>> In my Ant book there is a flatten mapper but I couldn´t get it to
    >>> work with my problem.
    >>>
    >>> Where is the location in WOProject where I can alter the copying of
    >>> webserver-resources so that they are copied in a flattened fashion?
    >>> I couldn´t find it.
    >> I don't think you should have to modify WOProject to get the
    >> behaviour you need.
    >> Maybe you should show us how you specify the wsresources inside the
    >> woapplication target:
    >> I have
    >> <wsresources dir="WSResources">
    >> <include name="**"/>
    >> <exclude name="**/*.woa/**"/>
    >> </wsresources>
    >> and all the images end up directly in WebServerResources, even if
    >> they are in a subdirectory of the WSResources folder. If it works
    >> differently in frameworks, you might try adding the mapper inside
    >> the <wsresources>
    >> tag.
    >> Harald
    >
    > --
    > ----------------------------------------------------------
    > Alexander Schneider, alexander.schneide..it.fraunhofer.de
    > tel +49 2241 14 2869
    > fax +49 2241 14 2146
    >
    > Fraunhofer-Institut für Angewandte
    > Informationstechnik FIT
    > Schloss Birlinghoven . D-53754 Sankt Augustin
    > ----------------------------------------------------------
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Nov 26 2003 - 04:48:46 EST