1 Reply Latest reply on Jun 1, 2009 1:23 PM by Gaurav J

    Q: Increase the heap space for ant...set ANT_OPTS..where??

    jbach2

      In trying to resolve the out of memory error I get when running Ant on a large project of mine I cam across this post

       

      http://tech.groups.yahoo.com/group/flexcoders/message/102140

       

       

      set the following environment variable before the build depending on

      your platform.

       

      //CODE START

      set ANT_OPTS=-Xmx500M

      or

      set ANT_OPTS=-Xmx500M ; export ANT_OPTS

      //CODE STOP

       

      My question is, where does one make this change (set ANT_OPTS)??

        • 1. Re: Q: Increase the heap space for ant...set ANT_OPTS..where??
          Gaurav J Adobe Employee

          short answer:

           

          In command prompt or cygwin.

           

          long answer:

           

          if you are uisng comman prompt call

          set ANT_OPTS=-Xmx500M

           

          before calling the ant command.

           

          if you using cygwin use

          export ANT_OPTS=-Xmx500M

           

          before calling the ant command.

           

          In case you are using unix based OS. use

          export ANT_OPTS=-Xmx500M

           

          before calling the ant command.

           

          Also you can set ANT_OPTS as an enviornment variable.

           

          Thanks,

          Gaurav Jain

          Flex SDK Team