Where is xdoc.copy-user-resources.filterset.id originall defined? The NPE would have been fixed by some changes just committed to MAVEN-1_0-BRANCH that will be present in RC3.
- Brett > -----Original Message----- > From: Jerome Lacoste [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 14 April 2004 2:10 PM > To: [EMAIL PROTECTED] > Subject: Why the following patch fails? filterset reference > found then not found. > > > I am trying to modify the xdoc:copy-user-resources in order > to take into > account a user supplied filterset. > My maven.xml defines the following: > <preGoal name="xdoc:copy-user-resources"> > <echo message="preGoal: registering > xdoc.copy-user-resources.filterset > filterset"/> > <ant:filterset> > <ant:filterset refid="xdoc.copy-user-resources.filterset.id"/> > <ant:filter token="maven.final.name" > value="${maven.final.name}"/> > </ant:filterset> > </preGoal> > and the following patch is applied to > maven-xdocs-plugin-1.6/plugin.jelly. (note that the attached patch is > built on top of the patch I just sent to the list.) > Here's my output: > [EMAIL PROTECTED]> $MAVEN_HOME/bin/maven xdoc:copy-user-resources > __ __ > | \/ |__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2 > build:start: > xdoc:init: > xdoc:copy-user-resources: > [echo] preGoal: registering xdoc.copy-user-resources.filterset > filterset > [echo] filterset for copy-user-resources goal already exists > [echo] copying user provided resources to docs destination > [copy] Copying 1 file to > /home/jerome/Dev/Perso/jset/trunk/target/docs > BUILD FAILED > File...... > file:/home/jerome/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly > Element... copy > Line...... 610 > Column.... 40 > Reference xdoc.copy-user-resources.filterset.id not found. > Total time: 6 seconds > Finished at: Tue Apr 13 23:46:22 BOT 2004 > According to the debugging echoes, it seems like the > filterset is found > by the code added to the beginning of copy-user-resources goal. > But then the filterset reference is not found. > Is there a mistake from my part, or it that a bug. > Note: In a somewhat related issue, I initially tried to put the code > added to the beginning of the copy-user-resources goal into a separate > goal (e.g. xdoc:init-copy-user-resources-filterset), but I > then ended up > having an NPE. Maybe that's another issue to look at. > BUILD FAILED > java.lang.NullPointerException > at > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction > .performAction(MavenGoalTag.java:95) > at com.werken.werkz.Goal.fire(Goal.java:639) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManage > r.java:531) > at > org.apache.maven.MavenSession.attainGoals(MavenSession.java:265) > at org.apache.maven.cli.App.doMain(App.java:466) > at org.apache.maven.cli.App.main(App.java:1117) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at com.werken.forehead.Forehead.run(Forehead.java:551) > at com.werken.forehead.Forehead.main(Forehead.java:581) > java.lang.NullPointerException >
