> 1. Is there limitation on max size it can be set? I guess it depends on the amount of memory available on the computer where you are running your ant build. > > 2. After I set this ANT_OPTS, do I have to set memoryMaximumSize for the > javac task? Previously, if I don't set this memoryMaximumSize, I got the out > of resources error for the javac task as well. > You may fork (execute in another virtual machine) the Java Task. In this case it makes sense to set memory size and other JVM parameters for the java task. I presume you are not forking the java task currently.
> 3. Are there other ANT_OPTS that I can set? Where can I find those options? > ANT_OPTS are command line flags java. if you do java -X you get the help concerning the special command line flags of the java command. Cheers Antoine > Thanks again! > > Louis > -----Original Message----- > From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] > Sent: July 14, 2003 4:25 PM > To: Ant Users List > Subject: Re: foreach task failed for out of resource error! > > > Before you start ant, create an environment variable called ANT_OPTS this > variable can contain the memory you want to allocate for ant : example > export ANT_OPTS="-Ms64m -Mx128m" (starting memory 64, maximum 128 ) Cheers > Antoine > ----- Original Message ----- > From: "Lule Chen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 14, 2003 10:13 PM > Subject: foreach task failed for out of resource error! > > > > Hi, I try to use foreach task to do the idl compiling on a directory > > which contains more than 1000 idl files. But it failed for the java > > error: out > of > > resources. I am wondering is it possible to increase the maxMemorySize > > attribute like the javac task? Is there any body worked on a list > > contains more than 1000 items by using foreach task? > > > > > > Louis > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
