Re: Newbie Build Help

2007-05-30 Thread Nick Burch

On Wed, 30 May 2007, Everitt, Glenn wrote:

All of the test failures seem to be:

java.lang.OutOfMemoryError: PermGen space


Try increasing the amount of memory you allocate to java. Since you're 
running ant, you can't just tack on -Xmx, instead you need to pop that in 
the environment variable ANT_OPTS


On unix, try:
ANT_OPTS=-Xmx512m ant test
and that'll tell ant to run under a JVM with 512mb of memory for the heap 
size


It executes successfully. The problem is I don't know how to build a 
distribution without using clean-dist


You can just edit your build.xml. Find the line
target name=dist depends=clean, fail-unless-to.
and remove clean from the depends list.

Nick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/



Re: Newbie Build Help

2007-05-30 Thread Andrew C. Oliver

that will have no effect.  -Xmx doens't affect perm gen.

http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration

Nick Burch wrote:

On Wed, 30 May 2007, Everitt, Glenn wrote:

All of the test failures seem to be:

java.lang.OutOfMemoryError: PermGen space


Try increasing the amount of memory you allocate to java. Since you're 
running ant, you can't just tack on -Xmx, instead you need to pop that 
in the environment variable ANT_OPTS


On unix, try:
ANT_OPTS=-Xmx512m ant test
and that'll tell ant to run under a JVM with 512mb of memory for the 
heap size


It executes successfully. The problem is I don't know how to build a 
distribution without using clean-dist


You can just edit your build.xml. Find the line
target name=dist depends=clean, fail-unless-to.
and remove clean from the depends list.

Nick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/



--
Buni Meldware Communication Suite
http://buni.org
Multi-platform and extensible Email,
Calendaring (including freebusy),
Rich Webmail, Web-calendaring, ease
of installation/administration.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/



Re: Newbie Build Help

2007-05-30 Thread Nick Burch

On Wed, 30 May 2007, Andrew C. Oliver wrote:

that will have no effect.  -Xmx doens't affect perm gen.

http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration


Ah, that's worth knowing.

Looks like ANT_OPTS=-XX:PermSize=64M ant might be the one to go for

Nick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/



RE: Newbie Build Help

2007-05-30 Thread Everitt, Glenn

I set ANT_OPTS=-XX:PermSize=128M and it worked!

Thanks for the help!

One little note is that Forrest 0.5.1 is required as mentioned in the
build.xml which is a little newer than Forrest 0.4 that is mentioned
here:  http://jakarta.apache.org/poi/howtobuild.html

Thanks again!
Glenn Everitt

-Original Message-
From: Nick Burch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 30, 2007 11:31 AM
To: POI Developers List
Subject: Re: Newbie Build Help

On Wed, 30 May 2007, Andrew C. Oliver wrote:
 that will have no effect.  -Xmx doens't affect perm gen.

 http://wiki.jboss.org/wiki/Wiki.jsp?page=PermanentGeneration

Ah, that's worth knowing.

Looks like ANT_OPTS=-XX:PermSize=64M ant might be the one to go for

Nick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/