ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, EJ" <ECirame...@emptoris.com>
Subject RE: -J option <javac> task question
Date Tue, 29 Apr 2003 23:51:28 GMT
I had a problem with out of memory exceptions recently, try this-

set ANT_OPTS=-Xincgc -Xms<MINMEM>m -Xmx<MAXMEM>m

-----Original Message-----
From: Nisha Pillai [mailto:npillai@teja.com]
Sent: Tuesday, April 29, 2003 7:49 PM
To: Ant Users List
Subject: Re: -J option <javac> task question


Stefan Bodewig wrote:

>On Mon, 28 Apr 2003, Nisha Pillai <npillai@teja.com> wrote:
>
>  
>
>>Yes, I get an OutOfMemoryError.
>>    
>>
>
>Run ant -debug and take a look at the javac command line Ant uses (it
>is printed in the very long logfile you'll receive).  Does it contain
>the -J-mx setting you expect?
>
>Stefan
>
>  
>
Stefan,
   Here's the relevant section from the debug log.

fileset: Setup scanner in dir E:\CVS\FCSRelease\Vivaldi\external_jars 
with patternSet{ includes: [**/*.jar] excludes: [] }
    [javac] Compilation arguments:
    [javac] '-d'
    [javac] 'E:\CVS\FCSRelease\Vivaldi\classes'
    [javac] '-classpath'
    [javac] 
'E:\CVS\FCSRelease\Vivaldi\classes;E:\CVS\FCSRelease\Vivaldi\external_jars\a
ntlr.jar;E:\CVS\FCSRelease\Vivaldi\external_jars\bcprov-jdk14-115.jar;E:\CVS
\FCSRelease\Vivaldi\external_jars\bsh-1.2b7.jar;E:\CVS\FCSRelease\Vivaldi\ex
ternal_jars\update.jar;C:\j2sdk1.4.1\lib\tools.jar;E:\Ant\apache-ant-1.5.3-1
\lib\xml-apis.jar;E:\Ant\apache-ant-1.5.3-1\lib\xercesImpl.jar;E:\Ant\apache
-ant-1.5.3-1\lib\optional.jar;E:\Ant\apache-ant-1.5.3-1\lib\ant.jar;E:\'
    [javac] '-sourcepath'
    [javac] 'E:\CVS\FCSRelease\Vivaldi\src'
    [javac] '-g'
    [javac]
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.

As you can see, no -J option is generated. Any suggestions would be 
welcome.
I'm using Ant 1.5.3-1.

- Nisha.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message