ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lefevre" <eric.lefe...@valtech.co.uk>
Subject [PATCH] forking javac with specified memory settings
Date Wed, 22 Aug 2001 22:27:15 GMT
Please find attached the updated files containing the new
memoryInitialSize and memoryMaximumSize attributes for the <javac> task.

Changes in Javac.java:
----------------------
line 118, added
    private String memoryInitialSize;
    private String memoryMaximumSize;
line 183, added
    /**
     * Set the memoryInitialSize flag.
     */
    public void setMemoryInitialSize(String memoryInitialSize) {
        this.memoryInitialSize = memoryInitialSize;
    }

    /** Gets the memoryInitialSize flag. */
    public String getMemoryInitialSize() {
        return memoryInitialSize;
    }

    /**
     * Set the memoryMaximumSize flag.
     */
    public void setMemoryMaximumSize(String memoryMaximumSize) {
        this.memoryMaximumSize = memoryMaximumSize;
    }

    /** Gets the memoryMaximumSize flag. */
    public String getMemoryMaximumSize() {
        return memoryMaximumSize;
    }

Changes in DefaultCompilerAdapter.java:
---------------------------------------
line 94, added
    protected String memoryInitialSize;
    protected String memoryMaximumSize;
line 24, added
        memoryInitialSize = attributes.getMemoryInitialSize();
        memoryMaximumSize = attributes.getMemoryMaximumSize();
line 90, added
        if (memoryInitialSize != null) {
            cmd.createArgument().setValue("-J-Xms"+memoryInitialSize);
        }

        if (memoryMaximumSize != null) {
            cmd.createArgument().setValue("-J-Xmx"+memoryMaximumSize);
        }

Changes in javac.html:
----------------------
line 198, add
    <td valign="top">memoryInitialSize</td>
    <td valign="top">the initial size of the memory for the underlying
VM, if javac is run
    externally, ignored otherwise; defaults to the standard VM memory
setting.
    (examples: <code>83886080</code>, <code>81920k</code>, or
<code>80m</code>)</td>
    <td align="center" valign="top">No</td>
  </tr>
  <tr>
    <td valign="top">memoryMaximumSize</td>
    <td valign="top">the maximum size of the memory for the underlying
VM, if javac is run
    externally, ignored otherwise; defaults to the standard VM memory
setting.
    (examples: <code>83886080</code>, <code>81920k</code>, or
<code>80m</code>)</td>
    <td align="center" valign="top">No</td>
  </tr>
  <tr>

Mime
View raw message