Re: [OT] Need assistance getting ant builds working...

From: Joshua Archer (joshu..dl.edu)
Date: Thu Aug 17 2006 - 14:27:24 EDT

  • Next message: Zak Burke: "Re: EO model validation, relations and foreign keys"

    Thanks, Sébastien for your help.

    I'm still having isses with the error -- maybe I haven't added the
    jar in the correct location:

    
    The error I get on build:

    Buildfile: /Users/joshua/development/eclipse/workspace/WOLipsTest/
    build.xml
    setProps:
    init.build:
    build.woapp:

    BUILD FAILED
    /Users/joshua/development/eclipse/workspace/WOLipsTest/build.xml:46:
    taskdef A class needed by class
    org.objectstyle.woproject.ant.WOApplication cannot be found: org/
    apache/tools/ant/Task

    Total time: 1 second

    
    I'll keep noodling around to try and fix this.

    Thanks,

    Joshua

    On Aug 16, 2006, at 1:33 PM, Sébastien Sahuc wrote:

    > I believe this is caused by class loader visibility issue. Even if
    > your ant classes are there, it seems that your woproject.jar is
    > loaded in a different classloader, hence not seeing the ant
    > classes. I would suggest you add the woproject.jar into the initial
    > ant classpath within Eclipse to see if that solves it:
    >
    > <pastedGraphic.png>
    >
    >
    > Sébastien
    >
    > On Aug 16, 2006, at 11:55 AM, Joshua Archer wrote:
    >
    >> Hello everyone,
    >>
    >> I really hate to do this, and if you have a link to a resource
    >> that can help me out on this, I'd be much obliged. I'm a new
    >> transition from XCode to Eclipse and I'm walking through the
    >> tutorials put together by Mike, and I've run into a snag when I
    >> try to build a project using ant. This is the output I'm getting:
    >>
    >> Buildfile: /Users/joshua/development/eclipse/workspace/WOLipsTest/
    >> build.xml
    >> setProps:
    >> init.build:
    >> build.woapp:
    >>
    >> BUILD FAILED
    >> /Users/joshua/development/eclipse/workspace/WOLipsTest/build.xml:
    >> 46: taskdef A class needed by class
    >> org.objectstyle.woproject.ant.WOApplication cannot be found: org/
    >> apache/tools/ant/Task
    >>
    >> Total time: 1 second
    >>
    >> It looks like there's a path issue somewhere, but since I don't
    >> have experience in Eclipse (nor really with ant -- I'm remedying
    >> that as we speak), I'm not sure what might be missing from the
    >> default settings to get this to work.
    >>
    >> If there's a manual / document archive somewhere that covers this,
    >> point me to it. I apologize for posting this to the list, but I'm
    >> just getting started and my google attempts are coming up short.
    >>
    >> Thanks for not flaming me,
    >>
    >> Josh
    >>
    >> ---------------------------------------------------
    >> Joshua Archer
    >> Software Engineer
    >> CSU - Center for Distributed Learning
    >> Phone: 707.664.2085
    >> Fax: 707.664.4350
    >>
    >

    ---------------------------------------------------
    Joshua Archer
    Software Engineer
    CSU - Center for Distributed Learning
    Phone: 707.664.2085
    Fax: 707.664.4350



    This archive was generated by hypermail 2.0.0 : Thu Aug 17 2006 - 14:27:16 EDT