brett 2004/06/11 18:25:58 Modified: test plugin.jelly test/xdocs changes.xml Log: PR: MPTEST-32 Submitted By: Maxwell Grender-Jones Reviewed By: Brett Porter honours source modifications for test compilation Revision Changes Path 1.33 +20 -1 maven-plugins/test/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /home/cvs/maven-plugins/test/plugin.jelly,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- plugin.jelly 7 Jun 2004 12:22:57 -0000 1.32 +++ plugin.jelly 12 Jun 2004 01:25:57 -0000 1.33 @@ -21,7 +21,7 @@ <project xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:u="jelly:util" - xmlns:define="jelly:define"> + xmlns:define="jelly:define" xmlns:ant="jelly:ant"> <goal name="test" description="Test the application" @@ -66,6 +66,25 @@ <src> <path refid="maven.test.compile.src.set"/> </src> + + <!-- + | + | Source Modifications. + | + --> + + <j:forEach var="sm" items="${pom.build.sourceModifications}"> + <ant:available property="classPresent" classname="${sm.className}"/> + <j:if test="${classPresent != 'true'}"> + <j:forEach var="exclude" items="${sm.excludes}"> + <ant:exclude name="${exclude}"/> + </j:forEach> + <j:forEach var="include" items="${sm.includes}"> + <ant:include name="${include}"/> + </j:forEach> + </j:if> + </j:forEach> + <j:if test="${context.getVariable('maven.compile.compilerargs') != null}"> <compilerarg line="${maven.compile.compilerargs}" /> </j:if> 1.20 +1 -0 maven-plugins/test/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven-plugins/test/xdocs/changes.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- changes.xml 7 Jun 2004 12:22:57 -0000 1.19 +++ changes.xml 12 Jun 2004 01:25:58 -0000 1.20 @@ -25,6 +25,7 @@ </properties> <body> <release version="1.7-SNAPSHOT" date="in CVS"> + <action dev="brett" type="fix" issue="MPTEST-32" due-to="Maxwell Grender-Jones">honour source modifications for test compilation</action> <action dev="brett" type="fix" issue="MPTEST-31">handle JVM args correctly in test:match</action> </release> <release version="1.6.1" date="2004-05-19">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]