ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bernard <>
Subject RE: Ant 1.4 -- javac task
Date Mon, 22 Oct 2001 06:36:31 GMT

D'oh.  I've been looking at this for too long and I should've tried that!

I have some other compilation errors, but I think that took care of the

BTW- I may be missing it, but does it state in the docs when "fork" is set
which attributed are active?

Either way, thanks for your help!


-----Original Message-----
From: Conor MacNeill []
Sent: Sunday, October 21, 2001 11:26 PM
Subject: RE: Ant 1.4 -- javac task


That is a bit odd. These attributes are only effective when you use the
fork="yes" attribute, since that is the only way to control the memory of
the javac process. You should have received a warning about that.

Can you try adding the fork attribute in and also running an ant -debug to
see why this may be happening?


> -----Original Message-----
> From: Eddie Bernard []
> Sent: Monday, 22 October 2001 3:49 PM
> To: ''
> Subject: Ant 1.4 -- javac task
> Has anyone experienced this problem?  I need to extend the memory size
> parameter for the javac task.  The command line syntax for this would
> normally look like:
> javac -J-Xms64m -J-Xmx512m
> The only way you can make these changes is within Ant 1.4 and higher.  So,
> in looking at the docs I made the following modifications to my
> target task:
>     <javac srcdir="${lms.src};${lms.beans}"
>            destdir="${}"
>            excludesfile="${lms.excludesfile}"
>            optimize="off"
>            deprecation="off"
>            depend="false"
>            failonerror="no"
>            classpath="${lms.classpath}"
>            memoryInitialSize="64m"
>            memoryMaximumSize="512m">
>     </javac>
> However, now I'm getting the following error:
> classes:
>      [echo] --(DT)--> Compiling class files
>     [javac] Compiling 618 source files to /vobs/lms/build
>     [javac] -J-Xmx512m is an invalid option or argument.
>     [javac] Usage: javac <options> <source files>
>     [javac]
>     [javac] where <options> includes:
>     [javac]   -g                     Generate all debugging info
>     [javac]   -g:none                Generate no debugging info
>     [javac]   -g:{lines,vars,source} Generate only some debugging info
>     [javac]   -O                     Optimize; may hinder debugging or
> enlarge class files
>     [javac]   -nowarn                Generate no warnings
>     [javac]   -verbose               Output messages about what
> the compiler
> is doing
>     [javac]   -deprecation           Output source locations where
> deprecated APIs are used
>     [javac]   -classpath <path>      Specify where to find user
> class files
>     [javac]   -sourcepath <path>     Specify where to find input source
> files
>     [javac]   -bootclasspath <path>  Override location of bootstrap class
> files
>     [javac]   -extdirs <dirs>        Override location of installed
> extensions
>     [javac]   -d <directory>         Specify where to place
> generated class
> files
>     [javac]   -encoding <encoding>   Specify character encoding used by
> source files
>     [javac]   -target <release>      Generate class files for specific VM
> version
>     [javac] Compile failed, messages should have been provided.
> Anybody have any ideas on how to get around this?

View raw message