Re: Ant build failing

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Mar 27 2007 - 16:41:11 EDT

  • Next message: womai..ac.com: "Odd problem creating new project"

    Hi Jean Pierre,

    Someone changed this a while ago and it is making a mess of new
    projects (and old ones if you update the build file). I suspect this
    may be the work of the maven-ites. ;-) In a way I kind of like this
    change, but it should have been accompanied by code to create these
    directories if not present and should not force existing projects to
    be reorganized.

      If you look in the build.xml you will see this:

    <woframework name="${framework.name}" destDir="${dest.dir}"
    customInfoPListContent="${customInfoPListContent}" principalClass="$
    {principalClass}" eoAdaptorClassName="${eoAdaptorClassName}">
            <classes dir="${classes.dir}">
                    <patternset>
                            <includesfile name="woproject/classes.include.patternset"/>
                            <excludesfile name="woproject/classes.exclude.patternset"/>
                    </patternset>
            </classes>
            <wsresources dir="WebServerResources">
                    <patternset>
                            <include name="**/*"/>
                            <exclude name="CVS"/>
                            <exclude name=".svn"/>
                            <excludesfile name="woproject/wsresources.exclude.patternset"/>
                    </patternset>
            </wsresources>
            <resources dir="Resources">
                    <patternset>
                            <include name="**/*"/>
                            <exclude name="CVS"/>
                            <exclude name=".svn"/>
                            <excludesfile name="woproject/resources.exclude.patternset"/>
                    </patternset>
            </resources>
            <resources dir="Components">
                    <patternset>
                            <include name="**/*"/>
                            <exclude name="CVS"/>
                            <exclude name=".svn"/>
                            <excludesfile name="woproject/resources.exclude.patternset"/>
                    </patternset>
            </resources>
            <lib dir="Libraries">
                    <include name="*.jar"/>
                    <exclude name="**/*.framework/**"/>
            </lib>
    </woframework>

    The source of your problem is
            <lib dir="Libraries">

    You can either add a Libraries/ folder to your project or replace
    "Libraries" with "." You will have to do a similar thing for
    WebServerResources, Resources, and Components,

    Chuck

    On Mar 27, 2007, at 1:04 PM, Jean Pierre Malrieu wrote:

    > In the hope of solving my classpath problems in deployment, I have
    > updated my WOLips and Wonder to the latest nightly builds.
    > I have also called "WOLips Ant Tools-->Replace with latest
    > build.xml" on all my projects.
    > But now, one of my frameworks won't build with Ant. I receive the
    > following output in the console:
    >
    >
    > Buildfile: /Users/jpm/Documents/EclipseTemp/workspace/TDEOS/build.xml
    > setProps:
    > init.install:
    > build.woframework:
    > [woframework] Installing TDEOS in //Library/Frameworks
    >
    > BUILD FAILED
    > /Users/jpm/Documents/EclipseTemp/workspace/TDEOS/build.xml:49: /
    > Users/jpm/Documents/EclipseTemp/workspace/TDEOS/Libraries not found.
    >
    > Line 49 is this one:
    >
    > <woframework name="${framework.name}" destDir="${dest.dir}"
    > customInfoPListContent="${customInfoPListContent}" principalClass="$
    > {principalClass}" eoAdaptorClassName="${eoAdaptorClassName}">
    >
    > I am rather lost here. At least, before, I could build with ant.
    > Now I can't. Could someone help me a little bit to get out of this
    > problem?
    >
    > Thanks.
    >
    > JPM

    -- 
    

    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 : Tue Mar 27 2007 - 16:43:46 EDT