Make it work with any version of the JDK. fixes MPJAVA-22.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2004-10-07 18:45:35 +00:00
parent 4324c220e6
commit eaaf6cba60
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,6 @@
excludes="**/package.html" excludes="**/package.html"
debug="${maven.compile.debug}" debug="${maven.compile.debug}"
deprecation="${maven.compile.deprecation}" deprecation="${maven.compile.deprecation}"
target="${maven.compile.target}"
optimize="${maven.compile.optimize}"> optimize="${maven.compile.optimize}">
<ant:src> <ant:src>
<ant:path refid="maven.compile.src.set"/> <ant:path refid="maven.compile.src.set"/>
@ -116,6 +115,10 @@
<j:if test="${context.getVariable('maven.compile.source') != null}"> <j:if test="${context.getVariable('maven.compile.source') != null}">
<ant:setProperty name="source" value="${maven.compile.source}" /> <ant:setProperty name="source" value="${maven.compile.source}" />
</j:if> </j:if>
<j:if test="${context.getVariable('maven.compile.target') != null}">
<ant:setProperty name="target" value="${maven.compile.target}" />
</j:if>
<j:if test="${context.getVariable('maven.compile.verbose') != null}"> <j:if test="${context.getVariable('maven.compile.verbose') != null}">
<ant:setProperty name="verbose" value="${maven.compile.verbose}" /> <ant:setProperty name="verbose" value="${maven.compile.verbose}" />

View File

@ -17,5 +17,3 @@
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# P L U G I N P R O P E R T I E S # P L U G I N P R O P E R T I E S
# ------------------------------------------------------------------- # -------------------------------------------------------------------
maven.compile.target = 1.1

View File

@ -26,6 +26,7 @@
</properties> </properties>
<body> <body>
<release version="1.5-SNAPSHOT" date="in CVS"> <release version="1.5-SNAPSHOT" date="in CVS">
<action dev="vmassol" type="fix" issue="MPJAVA-22">Make it work by default with any version of the JDK</action>
<action dev="brett" type="update">Deprecate dependency handle</action> <action dev="brett" type="update">Deprecate dependency handle</action>
<action dev="dion" type="update">Use assert taglib for tests</action> <action dev="dion" type="update">Use assert taglib for tests</action>
</release> </release>

View File

@ -176,9 +176,7 @@
<p> <p>
Corresponds to the <code>target</code> attribute for the ant Corresponds to the <code>target</code> attribute for the ant
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a> <a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
task. task. This value defaults to the Ant task default value.
This value defaults to 1.1 so that builds on JDK 1.4 or later stil work on
earlier JVMs.
</p> </p>
</td> </td>
</tr> </tr>