You might also need to set the Ant memory options

http://www.mail-archive.com/[email protected]/msg83489.html

- Ivo



----- Original Message ----
From: Mondain <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, September 1, 2008 11:11:29 AM
Subject: Re: [flexcoders] OutOfMemoryError when compiling my app with Ant


If this was a java project build you would simply increase the 
"memoryMaximumSize" option for the javac task, but in your case I see that you 
have allocated a maximum memory amount via a jvmarg to the mxmlc task. I'm not 
sure if this works the same way but I can see any application needing 2mb to 
build. I noticed some people saying to use fork="true" but then I saw this 
adobe bug report: http://bugs. adobe.com/ jira/browse/ SDK-15765
This may be semi-helpful to you also: http://soenkerohde. com/2008/ 06/change- 
eclipse-ant- settings- when-you- run-out-of- memory/

Good luck.
Paul


2008/9/1 Sebastien ARBOGAST <sebastien.arbogast@ gmail.com>

I'm having a hard time compiling my application using Flex 3 Ant tasks. When I 
compile it in Flex Builder, using the default compiler, everything works fine. 
But when I try to build it from the command line (which I need to do on my 
continuous integration server) using the attached ant build file, I always get 
the following error:

main:
    [mxmlc] Loading configuration file /Applications/ Adobe Flex Builder 3 
Plug-in/sdks/ 3.1.0/frameworks /flex-config. xml
    [mxmlc] /Users/sarbogast/ dev/myapp/ flex/src/ index_384727. cache (No such 
file or directory)
    [mxmlc] Error: Java heap space
    [mxmlc] 
    [mxmlc] java.lang.OutOfMemo ryError: Java heap space
    [mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden 
tifier(NodeFacto ry.java:1779)
    [mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden 
tifier(NodeFacto ry.java:1773)
    [mxmlc] at macromedia.asc. parser.NodeFacto ry.binaryFunctio nDefinition( 
NodeFactory. java:719)
    [mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:698)
    [mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:516)
    [mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1130)
    [mxmlc] at macromedia.abc. AbcParser. classTrait( AbcParser. java:1064)
    [mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1144)
    [mxmlc] at macromedia.abc. AbcParser. parseScript( AbcParser. java:1197)
    [mxmlc] at macromedia.abc. AbcParser. parseAbc( AbcParser. java:108)
    [mxmlc] at flex2.compiler. abc.Compiler. parse1(Compiler. java:179)
    [mxmlc] at flex2.compiler. API.parse1( API.java: 2315)
    [mxmlc] at flex2.compiler. API.parse1( API.java: 2268)
    [mxmlc] at flex2.compiler. API.batch2( API.java: 369)
    [mxmlc] at flex2.compiler. API.batch( API.java: 1117)
    [mxmlc] at flex2.compiler. API.compile( API.java: 1311)
    [mxmlc] at flex2.compiler. API.compile( API.java: 1210)
    [mxmlc] at flex2.tools. Compiler. mxmlc(Compiler. java:240)
    [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method)
    [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet 
hodAccessorImpl. java:39)
    [mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin 
gMethodAccessorI mpl.java: 25)
    [mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597)
    [mxmlc] at flex.ant.FlexTask. executeInProcess (FlexTask. java:310)
    [mxmlc] at flex.ant.FlexTask. execute(FlexTask .java:243)
    [mxmlc] at org.apache.tools. ant.UnknownEleme nt.execute( UnknownElement. 
java:288)
    [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method)
    [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet 
hodAccessorImpl. java:39)
    [mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin 
gMethodAccessorI mpl.java: 25)
    [mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597)
    [mxmlc] at org.apache.tools. ant.dispatch. DispatchUtils. execute(Dispatch 
Utils.java: 105)
    [mxmlc] at org.apache.tools. ant.Task. perform(Task. java:348)
    [mxmlc] at org.apache.tools. ant.Target. execute(Target. java:357)

BUILD FAILED
/Users/sarbogast/ dev/myapp/ flex/build. xml:12: mxmlc task failed

Yet, I've already set the memory limit to the maximu on my machine. Any idea?

-- 
Sébastien Arbogast

http://sebastien- arbogast. com
 


-- 
http://gregoire. org/
http://osflash. org/red5
    

Reply via email to