PR: MPTEST-69
Submitted by: Nicolas de Loof New properties to configure compiler for test classes. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@471755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -89,32 +89,32 @@
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.compilerargs') != null}">
|
||||
<compilerarg line="${maven.compile.compilerargs}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.compilerargs') != null}">
|
||||
<compilerarg line="${maven.test.compile.compilerargs}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.encoding') != null}">
|
||||
<setProperty name="encoding" value="${maven.compile.encoding}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.encoding') != null}">
|
||||
<setProperty name="encoding" value="${maven.test.compile.encoding}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.executable') != null}">
|
||||
<setProperty name="executable" value="${maven.compile.executable}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.executable') != null}">
|
||||
<setProperty name="executable" value="${maven.test.compile.executable}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.fork') != null}">
|
||||
<setProperty name="fork" value="${maven.compile.fork}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.fork') != null}">
|
||||
<setProperty name="fork" value="${maven.test.compile.fork}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.source') != null}">
|
||||
<setProperty name="source" value="${maven.compile.source}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.source') != null}">
|
||||
<setProperty name="source" value="${maven.test.compile.source}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.target') != null}">
|
||||
<ant:setProperty name="target" value="${maven.compile.target}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.target') != null}">
|
||||
<ant:setProperty name="target" value="${maven.test.compile.target}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.verbose') != null}">
|
||||
<setProperty name="verbose" value="${maven.compile.verbose}" />
|
||||
<j:if test="${context.getVariable('maven.test.compile.verbose') != null}">
|
||||
<setProperty name="verbose" value="${maven.test.compile.verbose}" />
|
||||
</j:if>
|
||||
</javac>
|
||||
</j:if>
|
||||
|
||||
@@ -36,3 +36,11 @@ maven.test.reportsDirectory = ${maven.build.dir}/test-reports
|
||||
maven.test.skip = false
|
||||
maven.test.excludeXmlApis = no
|
||||
maven.test.classpath =
|
||||
|
||||
maven.test.compile.compilerargs = ${maven.compile.compilerargs}
|
||||
maven.test.compile.encoding = ${maven.compile.encoding}
|
||||
maven.test.compile.executable = ${maven.compile.executable}
|
||||
maven.test.compile.fork = ${maven.compile.fork}
|
||||
maven.test.compile.source = ${maven.compile.source}
|
||||
maven.test.compile.target = ${maven.compile.target}
|
||||
maven.test.compile.verbose = ${maven.compile.verbose}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.8.1-SNAPSHOT" date="In SVN">
|
||||
<action dev="ltheussl" type="add" due-to="Nicolas de Loof" issue="MPTEST-69">New properties to configure compiler for test classes.</action>
|
||||
<action dev="ltheussl" type="fix" due-to="Dennis Lundberg" issue="MPTEST-68">SourceModifications sometimes does not work for test classes.</action>
|
||||
<action dev="ltheussl" type="fix" due-to="Shinobu Kawai" issue="MPTEST-67">maven.compile.target is not used in test:compile.</action>
|
||||
</release>
|
||||
|
||||
@@ -133,6 +133,63 @@ maven.junit.jvmargs=-Xmx160m -verbose]]></source>
|
||||
is <code>true</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.compilerargs</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies compiler arguments to be used for tests compilation. Requires
|
||||
maven.test.compile.fork to bet set to true.
|
||||
Defaults to ${maven.compile.compilerargs}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.encoding</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies source encoding to be used for tests compilation.
|
||||
Defaults to ${maven.compile.encoding}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.executable</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Names the program to be invoked as the java compiler for test classes.
|
||||
Defaults to ${maven.compile.executable}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.fork</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Runs the test classes compiler in a separate process.
|
||||
Defaults to ${maven.compile.fork}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.source</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the source version for the Java compiler for test classes.
|
||||
Defaults to ${maven.compile.source}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.target</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Generate class files for test classes for a specific JVM version.
|
||||
Defaults to ${maven.compile.target}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.compile.verbose</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Asks the compiler for verbose output.
|
||||
Defaults to ${maven.compile.verbose}.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.test.classpath</td>
|
||||
<td>Yes</td>
|
||||
|
||||
Reference in New Issue
Block a user