Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 37492 invoked from network); 18 Sep 2003 07:45:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 07:45:32 -0000 Received: (qmail 47311 invoked by uid 500); 18 Sep 2003 07:45:03 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 47271 invoked by uid 500); 18 Sep 2003 07:45:02 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 47226 invoked from network); 18 Sep 2003 07:45:02 -0000 Received: from unknown (HELO adslgateway.multitask.com.au) (202.44.167.185) by daedalus.apache.org with SMTP; 18 Sep 2003 07:45:02 -0000 In-Reply-To: <810E38796140D411964F00508B8B256502736654@MilCMSX01.sapientitalia.intra> To: "Maven Developers List" Subject: RE: reusability of xdoc:performJSL goal & new plugin MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0.2CF2 July 23, 2003 From: dion@multitask.com.au Message-ID: Date: Thu, 18 Sep 2003 17:49:52 +1000 X-MIMETrack: Serialize by Router on ADSLGateway/Multitask Consulting/AU(Release 6.0|September 26, 2002) at 18/09/2003 05:50:04 PM, Serialize complete at 18/09/2003 05:50:04 PM Content-Type: text/plain; charset="US-ASCII" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The changes plugin does this quite easily: In your case, you'd need to provide the jsl in the xdoc plugin, but that should be easy enough, right? -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ "Fabrizio Giustina" wrote on 16/09/2003 06:40:52 PM: > the doc:jsl tag allow you to easily transform a document using a > stylesheet, but I also need to inherit the project settings for > style and navigation. > > This logic is only implemented in the doc:performJSL tag, wich > doesn't work if called from another plugin. This is the result: > > BUILD FAILED > File...... file:/C:/Documents and Settings/UE01571/. > maven/plugins/maven-xdoc-plugin-1.4-SNAPSHOT/ > Element... j:setProperties > Line...... 249 > Column.... 84 > You must define an attribute called 'bean' for this tag. > > line 249: from="${fromPattern}" to="${toPattern}"/> > > ${mapper} is initialized in the jelly-transform goal, and there are > other properties in the xdoc context missing. > If it could work there will be no reason for the odd xdoc:performJSL > goal added only for the linkcheck plugin. A clean solution will be > modifying the performJSL tag to use attributes and not global > variables, removing the performJSL goal (well, I think that at least > you should change the name to a more clear "linkcheckJSL" at the > moment, since it can be only used by the linkcheck plugin). > > > > - fabrizio > > -----Original Message----- > From: dion@multitask.com.au [mailto:dion@multitask.com.au] > Sent: Tue 9/16/2003 06:44 > To: Maven Developers List > Cc: > Subject: Re: reusability of xdoc:performJSL goal & new plugin > > > > Can't you use doc:jsl? > -- > dIon Gillard, Multitask Consulting > Blog: http://blogs.codehaus.org/people/dion/ > > > "Fabrizio Giustina" wrote on 16/09/2003 07:00:57 > AM: > > > > > I've just written a new plugin which performs a validation of the > > produced documentation, checking the xhtml code for errors and producing > > a complete report. > > > > Since the plugin need to run after the html generation has been > > completed, it is registered in a way similar to the linkcheck plugin. > > The real validation is done as a xdoc:jelly-transform post-goal. > > > > The problem is how to transform the generated xdoc: the only way to do > > that actually is the xdoc:performJSL goal which, however, is hardcoded > > to use a linkcheck plugin variable > > ($pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.xdoc > > .src')). The performJSL tag can't be used directly since it requires > > setting other variables/beans. > > > > Is there any way to do that without adding another goal to the xdoc > > plugin which uses a specific plugin property? (identical to the > > performJSL goal but using > > ($pom.getPluginContext('maven-sitevalidator-plugin').getVariable('maven. > > xdoc.src') ). Any hint? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org