You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Sasha Ovsankin <vi...@codebistro.com> on 2007/12/24 18:57:56 UTC

How to control stack size available to ant build?

Hi--

I am having trouble with Ant build -- it terminates with 
java.lang.StackOverflowError.

Is there a way to increase stack size available to Ant builds?

Thanks,
-- Sasha

Build results follow -----------------------------

Buildfile: build.xml

init:

init-build:

setup-dependencies:

copy-dependencies:

compile:

compress-web-content:
      [echo] Creating jsonrpc-min.js from jsonrpc.js using the YUI 
compressor.

      [java] [INFO] Using charset Cp1252
      [gzip] Nothing to do: 
C:\cache\continuum\6\webapps\jsonrpc\jsonrpc.js.gz is up to date.
      [gzip] Building: 
C:\cache\continuum\6\webapps\jsonrpc\jsonrpc-min.js.gz

dist:

init:
Overriding previous definition of reference to default-classpath
Overriding previous definition of reference to jarClasspath

init-build:

setup-dependencies:
Overriding previous definition of reference to maven-ant-tasks.classpath

copy-dependencies:
Overriding previous definition of reference to dependencies.path
Overriding previous definition of reference to dependencies.fileset

compile:

BUILD FAILED
java.lang.StackOverflowError

Total time: 2 seconds


Re: How to control stack size available to ant build?

Posted by Sasha Ovsankin <vi...@codebistro.com>.
Thanks Wendy. I have set -Xss4m, but still have the same problem. Guess 
I need to troubleshoot more, first to see if the setting indeed gets to 
the build process.

Interesting is that the build runs perfect form the command line.

Wendy Smoak wrote:
> On Dec 24, 2007 10:57 AM, Sasha Ovsankin <vi...@codebistro.com> wrote:
>> Hi--
>>
>> I am having trouble with Ant build -- it terminates with
>> java.lang.StackOverflowError.
>>
>> Is there a way to increase stack size available to Ant builds?
> 
> I think it's -Xss to set the stack size.  (See the output of "java -X"
> for more.)
> 
> With Maven, I would set MAVEN_OPTS in the environment for the user
> running Continuum.  Does Ant have something similar that it will pass
> to each Java process?
> 


Re: How to control stack size available to ant build?

Posted by Wendy Smoak <ws...@gmail.com>.
On Dec 24, 2007 10:57 AM, Sasha Ovsankin <vi...@codebistro.com> wrote:
> Hi--
>
> I am having trouble with Ant build -- it terminates with
> java.lang.StackOverflowError.
>
> Is there a way to increase stack size available to Ant builds?

I think it's -Xss to set the stack size.  (See the output of "java -X"
for more.)

With Maven, I would set MAVEN_OPTS in the environment for the user
running Continuum.  Does Ant have something similar that it will pass
to each Java process?

-- 
Wendy