Adobe compc ant task fails with multiple compiles

I have an ant task to generate a dozen swcs from a pile of source code. The compc task Adobe ships with Flex SDK blows up after about 7 compiles. Weak.

Here’s the stack trace:

[compc] Error: PermGen space
[compc] java.lang.OutOfMemoryError: PermGen space
[compc] at java.lang.ClassLoader.defineClass1(Native Method)
[compc] at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
[compc] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[compc] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[compc] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[compc] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[compc] at java.security.AccessController.doPrivileged(Native Method)
[compc] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[compc] at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
[compc] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[compc] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
[compc] at macromedia.asc.embedding.LintEvaluator.getWarningDefaults(LintEvaluator.java:3141)
[compc] at flex2.compiler.as3.Compiler.processCoachSettings(Compiler.java:1145)
[compc] at flex2.compiler.as3.Compiler.(Compiler.java:177)
[compc] at flex2.tools.API.getCompilers(API.java:234)
[compc] at flex2.tools.Compc.compc(Compc.java:258)
[compc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[compc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[compc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[compc] at java.lang.reflect.Method.invoke(Method.java:585)
[compc] at flex.ant.FlexTask.executeInProcess(FlexTask.java:283)
[compc] at flex.ant.FlexTask.execute(FlexTask.java:225)
[compc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[compc] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[compc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[compc] at java.lang.reflect.Method.invoke(Method.java:585)
[compc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[compc] at org.apache.tools.ant.Task.perform(Task.java:348)
[compc] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
[compc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[compc] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[compc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s