PR: MPJAVA-1

Submitted by: Scott Foster
add memory attributes to pass to javac task


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett
2004-05-08 00:57:44 +00:00
parent 8f6939952d
commit 4a2ae6a96f
3 changed files with 41 additions and 0 deletions

View File

@@ -91,6 +91,15 @@
<j:if test="${context.getVariable('maven.compile.fork') != null}">
<ant:setProperty name="fork" value="${maven.compile.fork}" />
<j:if test="${context.getVariable('maven.compile.memoryInitialSize') != null}">
<ant:setProperty name="memoryInitialSize" value="${maven.compile.memoryInitialSize}" />
</j:if>
<j:if test="${context.getVariable('maven.compile.memoryMaximumSize') != null}">
<ant:setProperty name="memoryMaximumSize" value="${maven.compile.memoryMaximumSize}" />
</j:if>
</j:if>
<j:if test="${context.getVariable('maven.compile.source') != null}">
@@ -101,6 +110,7 @@
<ant:setProperty name="verbose" value="${maven.compile.verbose}" />
</j:if>
</ant:javac>
</j:when>
<j:otherwise>

View File

@@ -27,6 +27,7 @@
<body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="brett" type="fix" issue="MPJAVA-1" due-to="Scott Foster">Add memory usage parameters to pass to the ant javac task</action>
<action dev="brett" type="fix">Add source property, default to 1.3. This is required to use JDK 1.5.</action>
</release>

View File

@@ -116,6 +116,36 @@
</p>
</td>
</tr>
<tr>
<td>maven.compile.memoryInitialSize</td>
<td>Yes</td>
<td>
<p>
Sets the initial memory size value passed to the VM when fork is set to true.
Has no effect if fork is false.
</p>
<p>
Corresponds to the <code>memoryInitialSize</code> attribute for the ant
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
task.
</p>
</td>
</tr>
<tr>
<td>maven.compile.memoryMaximumSize</td>
<td>Yes</td>
<td>
<p>
Sets the maximum memory size value passed to the VM when fork is set to true.
Has no effect if fork is false.
</p>
<p>
Corresponds to the <code>memoryMaximumSize</code> attribute for the ant
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
task.
</p>
</td>
</tr>
<tr>
<td>maven.compile.optimize</td>
<td>Yes</td>