add maven.compile.source property. Needed to work under JDK 1.5.0

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett 2004-03-25 05:43:19 +00:00
parent 70e52d6971
commit 5b68ce99dc
4 changed files with 23 additions and 1 deletions

View File

@ -48,6 +48,7 @@
excludes="**/package.html" excludes="**/package.html"
debug="${maven.compile.debug}" debug="${maven.compile.debug}"
deprecation="${maven.compile.deprecation}" deprecation="${maven.compile.deprecation}"
source="${maven.compile.source}"
target="${maven.compile.target}" target="${maven.compile.target}"
optimize="${maven.compile.optimize}"> optimize="${maven.compile.optimize}">
<ant:src> <ant:src>

View File

@ -22,3 +22,4 @@
maven.jar.manifest = ${maven.conf.dir}/Manifest.mf maven.jar.manifest = ${maven.conf.dir}/Manifest.mf
maven.jar.mainclass = maven.jar.mainclass =
maven.compile.target = 1.1 maven.compile.target = 1.1
maven.compile.source = 1.3

View File

@ -26,6 +26,10 @@
<body> <body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="brett" type="fix">Add source property, default to 1.3. This is required to use JDK 1.5.</action>
</release>
<release version="1.3" date="2003-09-29"> <release version="1.3" date="2003-09-29">
<action dev="evenisse" type="remove"> <action dev="evenisse" type="remove">
Remove clean goals and jar goals. Clean goals and jar goals move to Remove clean goals and jar goals. Clean goals and jar goals move to

View File

@ -146,6 +146,22 @@
The source directories maven uses to compile java code. The source directories maven uses to compile java code.
</td> </td>
</tr> </tr>
<tr>
<td>maven.compile.source</td>
<td>Yes</td>
<td>
<p>
Specifies the source version for the Java compiler.
</p>
<p>
Corresponds to the <code>source</code> attribute for the ant
<a href="http://ant.apache.org/manual/CoreTasks/javac.html">javac</a>
task.
This value defaults to 1.3 so that builds on JDK 1.4 or later stil work on
earlier JVMs. Valid values are 1.3, 1.4, 1.5.
</p>
</td>
</tr>
<tr> <tr>
<td>maven.compile.target</td> <td>maven.compile.target</td>
<td>Yes</td> <td>Yes</td>