Re: Problems with building with ant from the command line

From: Hugi Thordarson (hug..efsyn.is)
Date: Sat Nov 11 2006 - 20:22:27 EST

  • Next message: Philippe Lafoucrière: "Re: Problems with building with ant from the command line"

    Thanks Josh! I'm going to go through these and see what I can find.

    And Yeah, Philippe, it definitely looks like it's scanning the entire
    filesystem. The original error crops up because the user running the
    ant task does not have permission to read ./Spotlight-V100. And if I
    attempt to compile as the root user, ant throws up with an
    OutOfMemoryError (not surprisingly - there are a lot of files on
    those durn filesystems today, dangnabbit :-).

    I'm digging into the issue and will let you know if I find something
    out.

    Cheers,
    - Hugi

    On Nov 11, 2006, at 8:09 PM, Josh Dubey wrote:

    > Hi Hugi
    >
    > I can't remember *exactly* what was causing that particular
    > problem, but I did get things building. Here is my modified
    > build.xml, and the files that go in the woproject directory (I
    > can't recall which one's I changed, and I'm too lazy to check :-))
    >
    > <build.xml>
    > <ant.classpaths.user.home>
    > <ant.classpaths.wo.wolocalroot>
    > <ant.classpaths.wo.wosystemroot>
    > <ant.frameworks.user.home>
    > <ant.frameworks.wo.wolocalroot>
    > <ant.frameworks.wo.wosystemroot>
    > <classes.exclude.patternset>
    > <classes.include.patternset>
    > <resources.exclude.patternset>
    > <resources.include.patternset>
    > <wsresources.exclude.patternset>
    > <wsresources.include.patternset>
    >
    > Also be sure you have a directory called ~/Library/Frameworks (I
    > had to create mine), a file called ~/Library/wobuild.properties
    > (mine got autogenerated somehow), and woproject.jar installed in /
    > Developer/Java/Ant/lib (also happened automatically for me).
    >
    > I think that should do it.
    >
    > -Josh
    >
    >
    > On Nov 11, 2006, at 6:39 AM, Hugi Thordarson wrote:
    >
    >> Hi all (Especially you, Josh :).
    >>
    >> Did you manage to find out why this happened? I'm getting the same
    >> error.
    >>
    >> Cheers,
    >> - Hugi
    >>
    >>
    >> On Oct 25, 2006, at 9: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
    >>>
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Sat Nov 11 2006 - 20:22:31 EST