You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Johannes Schaefer <jo...@uidesign.de> on 2008/02/12 10:43:46 UTC

project.bugtracking-url

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"/>

Thanks,
Johannes



-- 
User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax  +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail johannes.schaefer@uidesign.de * www.uidesign.de

Offices:
Martin-Luther-Straße 57-59, D-71636 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen
Friedrichsring 46, D-68161 Mannheim
Hansastraße 7-11, 44137 Dortmund

Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner,
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519

Re: project.bugtracking-url

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Tue, 2008-02-12 at 10:46 +0000, Ross Gardler wrote:
> 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.

lol 

which street do you refer. ;)

The above "fixes-bug="FOR-973"" is done in the projectInfo plugin and
got injected via the sitemap (like already pointed out by ross).

ATM I have not a better idea either.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Re: project.bugtracking-url

Posted by Ross Gardler <rg...@apache.org>.
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