ubala / aribaweb

Automatically exported from code.google.com/p/aribaweb
Apache License 2.0
1 stars 2 forks source link

OOMemory error when doing succesive builds with ant in eclipse #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a MetaUI DB App
2. Invoke succesive ant "launch" targets 

What is the expected output? What do you see instead?

After a couple of starts the build fails with the following message

/Users/aldo/Dev/projects/workspace/myapp/aribaweb-5.0RC2/tools/build-jpa-app.xml
:131: 
java.lang.OutOfMemoryError: Java heap space

You need to invoke clean target to fix the problem.

What version of the product are you using? On what operating system?
aribaweb RC2

Please provide any additional information below.

The reason might be the target copy-docroot-resources, as the number of files 
x2 at every 
build?

copy-docroot-resources:
     [echo] WIDGETS copy-docroot resources
     [copy] Copying 4464 files to 
/Users/aldo/Dev/projects/workspace/communitymoney/build/classes/communitymoney/d
ocro
ot
     [copy] Warning: /Users/aldo/Dev/projects/workspace/communitymoney/resource/webserver 
not found.

Original issue reported on code.google.com by adalbert...@gmail.com on 16 Mar 2009 at 5:08

GoogleCodeExporter commented 9 years ago
I had the same problem and modified /tools/build.widgets-app.xml . Now the 
build dir
doesn't grow up anymore.

Tag to modify: <target name="launch" depends="init, jar, webapp, tomcat-browse"
description="Rebuild webapp, starts Tomcat, opens browser"/>

New Tag: <target name="launch" depends="clean, jar, webapp, tomcat-browse"
description="Rebuild webapp, starts Tomcat, opens browser"/>

(you don't need to "init" as it is implicit in "clean")

Original comment by inotaris...@gmail.com on 20 Mar 2009 at 8:58