Re: Problems with building with ant from the command line

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Oct 26 2006 - 20:59:45 EDT

  • Next message: Ulrich Köster: "Re: maven example"

    I'll guess that you have a problem in ~/Library/wobuild.properties or
    the ant.frameworks.* files under woproject/ in your project.

    Chuck

    On Oct 25, 2006, at 2:58 PM, Josh Dubey wrote:

    > Apologies if this question is not appropriate for this forum, but I
    > couldn't find an answer anywhere else.
    >
    > I would like to be able to compile, build and run my WebObjects
    > application from the command line using ant. I've added
    > woproject.jar to /Developer/Java/Ant/lib. I am using WOLips, which
    > has generated a build.xml file for me. If I run the tasks in
    > build.xml from within Eclipse, everything works fine. But the same
    > tasks from the command line fail. For example:
    >
    > $ ant compile
    > HotSpot not at correct virtual address. Sharing disabled.
    > Buildfile: build.xml
    >
    > setProps:
    >
    > init.build:
    >
    > compile:
    > [javac] Compiling 22 source files to /Users/ubermind/svn/
    > UberTime/Client/UberTimeWeb/bin
    >
    > BUILD FAILED
    > /Users/ubermind/svn/UberTime/Client/UberTimeWeb/build.xml:164: /
    > Users/ubermind/Library/Frameworks not found.
    >
    > If I add the directory it can't find, I just get another error:
    >
    > BUILD FAILED
    > /Users/ubermind/svn/UberTime/Client/UberTimeWeb/build.xml:164: IO
    > error scanning directory /.Spotlight-V100
    >
    > That error is due to wo.wolocalroot being set to / in my
    > wobuild.properties. I change that to /Library (for example) and
    > the compile starts, but ant runs out of memory because (I'm
    > guessing) it is attempting to scan the entire /Library directory
    > structure for jar files.
    >
    > I'm sure with some build.xml massaging I can get past this error as
    > well, but I'm really really curious as to why ant works from within
    > eclipse but not from the command line. Anyone know?
    >
    > Thanks,
    >
    > Josh Dubey
    >
    >

    -- 
    

    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 Oct 26 2006 - 20:59:44 EDT