ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Au <>
Subject problem with using <arg> with the javah task
Date Thu, 15 Oct 2009 13:37:12 GMT
I have a need to limit the max heap size of the javah task.  So I am using a

          <arg value="-J-Xmx512m"/>
          <class name="" />

But it is giving me a illegal argument error:

    [javah] Error: -J-Xmx512m is an illegal argument
    [javah] Usage: javah [options] <classes>
    [javah] where [options] include:
    [javah]     -help                 Print this help message and exit
    [javah]     -classpath <path>     Path from which to load classes
    [javah]     -bootclasspath <path> Path from which to load bootstrap
    [javah]     -d <dir>              Output directory
    [javah]     -o <file>             Output file (only one of -d or -o may
be used)
    [javah]     -jni                  Generate JNI-style header file
    [javah]     -version              Print version information
    [javah]     -verbose              Enable verbose output
    [javah]     -force                Always write output files
    [javah] <classes> are specified with their fully qualified names (for
    [javah] instance, java.lang.Object).

When I invoke javah directly with the same argument it actually works
without error:

javah -J-Xmx512m -classpath build/classes

What am I doing wrong?


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