Ah, great. That works. Thank you! Should I post to JIRA to get the bug fixed?
-Mo.
Am Mittwoch, 03.09.03, um 21:02 Uhr (Europe/Berlin) schrieb Andy Jefferson:
On Wednesday 03 Sep 2003 19:42, Moritz Petersen wrote:Second problem --------------
BUILD FAILED File...... file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/ Element... resources:copy Line...... 299 Column.... 11 java.lang.NullPointerException com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] -- file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/:299:11: <resources:copy> java.lang.NullPointerException
The jelly code in the plugin.jelly is:
<j:if test="${unitTestSourcesPresent == 'true'}">
<j:if test="${!pom.build.unitTest.resources.isEmpty()}"> <!-- NPE
here! -->
<resources:copy
resources="${pom.build.unitTest.resources}"
todir="${maven.test.dest}"
/>
</j:if>
</j:if>
So, as you can imagine, I don't have any resources specified in my project.xml descriptor... What am I doing wrong here?
Not doing anything wrong at all (IMHO) ... its (IMHO again) a bug in the test
plugin - it should check if the unitTest is empty before doing the check for
resources. The workaround is to just specify an empty <unitTest> block in the
project.xml.
-- Andy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- ACHTUNG:
Neue E-Mail Adresse [EMAIL PROTECTED]
Die alte Adresse ([EMAIL PROTECTED]) wird demnächst nicht mehr verwendet!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]