Re: Embedding only one framework ?

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Jan 10 2008 - 13:29:47 EST

  • Next message: Lachlan Deck: "Re: Frameworks with the same name"

    On Jan 10, 2008, at 8:29 AM, Pascal Robert wrote:

    > How can we embed only one framework ? For example, we want to
    > embed /System/Library/Frameworks/JavaWOExtensions.framework, but
    > not the others frameworks from /System/Library/Frameworks. The
    > <frameworks> nested element is used both to embed the frameworks
    > and to include them in the classpath, so excluding the other
    > frameworks will also exclude them from the classpath.
    >
    > I guess we can use the <copy> task to embed the framework after the
    > ant build is complete, but I was wondering if someone has a better
    > solution ?

    Maybe something like this:

    <frameworks root="${wo.wosystemroot}">
            <patternset>
                    <exclude name="Library/Frameworks/JavaWOExtensions.framework"/>
                    <includesfile name="woproject/ant.frameworks.wo.wosystemroot"/>
            </patternset>
    </frameworks>

    <frameworks root="${wo.wosystemroot}" embed="true">
            <patternset>
                    <include name="Library/Frameworks/JavaWOExtensions.framework"/>
            </patternset>
    </frameworks>

    Chuck

    -- 
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Thu Jan 10 2008 - 13:30:52 EST