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

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Aug 17 2006 - 19:19:14 EDT

  • Next message: Joshua Archer: "Re: [OT] Need assistance getting ant builds working..."

    On Aug 17, 2006, at 4:10 PM, Joshua Archer wrote:

    > Hey all,
    >
    > So I've removed all previous versions of eclipse and wolips,
    > wonder, etc. and reinstalled from scratch with the same effect.
    > There is no love for me. I've tried with the ANT internal to
    > eclipse, and with ANT in /Developer/Java/Ant. I've also added the
    > woproject.jar to the classpath, but with no avail. I used eclipse's
    > updater to install wolips -- should I try an external build? All
    > the files appear to be in the right place, but it just isn't loading.

    Just a shot in the dark but... What is in /Library/Java/Extensions
    and /System/Library/Java/Extensions on that machine?

    > Well, I'll continue by attempting to port over my XCode projects
    > into Eclipse with the faith that I'll get this figured out
    > eventually. Any tips on converting xcode projects (any tools), or
    > is it just a by-hand recreation of dependencies, etc.?

    There are no tools at present. Create an Eclipse project of the same
    name, and move the files from that which are not in the Xcode project
    into the Xcode project (e.g. wolips, .project, etc but not the
    xcodeproj, Main.* etc.) Then open that project in Xcode. The rest
    is manual.

    hmmm, need to make a tutorial for that.

    Chuck

    > On Aug 17, 2006, at 11:27 AM, Joshua Archer wrote:
    >
    >> 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:
    >>
    >> <Picture 1.png>
    >>
    >> 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
    >>
    >> <Picture 2.png>
    >>
    >> 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
    >>
    >
    > ---------------------------------------------------
    > Joshua Archer
    > Software Engineer
    > CSU - Center for Distributed Learning
    > Phone: 707.664.2085
    > Fax: 707.664.4350
    >

    -- 
    

    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 Aug 17 2006 - 19:19:29 EDT