forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: project.bugtracking-url
Date Tue, 12 Feb 2008 10:46:49 GMT
Johannes Schaefer wrote:
> Hi!
> 
> I found the following in forrest.properties (Forrest-0.8).
> 
> # The bugtracking URL - the issue number will be appended
> # Projects would use their own issue tracker, of course.
> #project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
> #project.bugtracking-url=http://issues.apache.org/jira/browse/
> 
> This parameter gets used in status.xml, e.g.
>   <action dev="DC" type="fix" context="code" fixes-bug="FOR-973">
> inserts the following link
>   http://issues.apache.org/jira/browse/FOR-973
> 
> Is there a way to use this inside other documents as well?
> e.g. like this
>   <external-refs>
>     <bugtracker href={project.bugtracker-url}/>
>   </external-refs>
> and reference within a document like
>   <a href="site:bugtracker#1234"/>
> (without adding all big-ids in site.xml)
> or maybe
>   <a href="bug:1234"/>

Quick and dirty solution:

add a pre-process step to the site.xml pipeline that inserts property 
values (all properties are accessible in the sitemap)

I'm sure there is a better way though - my mind is blank right now. This 
is right up Thorstens street though.

Ross

Mime
View raw message