You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Nick Chalko <ni...@chalko.com> on 2003/06/01 05:23:22 UTC

Changes bugid link always points to nagoya

How can I change the url used to link bugs on the changes page.
for example http://www.krysalis.org/centipede/changes.html

R,
Nick

Re: Changes bugid link always points to nagoya

Posted by Nick Chalko <ni...@chalko.com>.
Thanks I will give it a try.

Dirk Drazenovic wrote:

>Nick Chalko wrote:
>  
>
>>How can I change the url used to link bugs on the changes page.
>>for example http://www.krysalis.org/centipede/changes.html
>>    
>>
>
>Edit the changes2document.xsl (forrest/context/library/xslt).
>
>Change the value of the variable "bugzilla" to suit your needs.
>
>To add multiple trackers, e.g. RFE's just add a new variable and a section
>similar to fixes-bug. Here is what i did, for a SourceForge RFE Tracker:
>
>---schnipp---
>[...]
> <xsl:variable
>name="bugzilla">http://sourceforge.net/tracker/index.php?func=detail&amp;gro
>up_id=67477&amp;atid=518006&amp;aid=</xsl:variable>
> <xsl:variable
>name="issue-tracker">http://sourceforge.net/tracker/index.php?func=detail&am
>p;group_id=67477&amp;atid=562415&amp;aid=</xsl:variable>
>
> [...]
> <xsl:template match="action">
>  [...]
>   <xsl:if test="@fixes-bug">
>
>    [...]
>   </xsl:if>
>
>   <xsl:if test="@issue">
>    <xsl:text> Resolves issue </xsl:text>
>    <link href="{$issue-tracker}{@issue}">
>     <xsl:text>#</xsl:text><xsl:value-of select="@issue"/>
>    </link>
>    <xsl:text>.</xsl:text>
>   </xsl:if>
>[...]
>---schnapp---
>
>It is possible to use a new attribute within an action
>(issue="issuenumber").
>
>HTH, Dirk
>  
>


-- 
Nick Chalko                                         Show me the code.
                          Centipede
  Ant + autodownloadable build plugins + needed jars autodownload.
              http://krysalis.org/centipede
---------------------------------------------------------------------


Re: Changes bugid link always points to nagoya

Posted by Dirk Drazenovic <Di...@t-online.de>.
Nick Chalko wrote:
> How can I change the url used to link bugs on the changes page.
> for example http://www.krysalis.org/centipede/changes.html

Edit the changes2document.xsl (forrest/context/library/xslt).

Change the value of the variable "bugzilla" to suit your needs.

To add multiple trackers, e.g. RFE's just add a new variable and a section
similar to fixes-bug. Here is what i did, for a SourceForge RFE Tracker:

---schnipp---
[...]
 <xsl:variable
name="bugzilla">http://sourceforge.net/tracker/index.php?func=detail&amp;gro
up_id=67477&amp;atid=518006&amp;aid=</xsl:variable>
 <xsl:variable
name="issue-tracker">http://sourceforge.net/tracker/index.php?func=detail&am
p;group_id=67477&amp;atid=562415&amp;aid=</xsl:variable>

 [...]
 <xsl:template match="action">
  [...]
   <xsl:if test="@fixes-bug">

    [...]
   </xsl:if>

   <xsl:if test="@issue">
    <xsl:text> Resolves issue </xsl:text>
    <link href="{$issue-tracker}{@issue}">
     <xsl:text>#</xsl:text><xsl:value-of select="@issue"/>
    </link>
    <xsl:text>.</xsl:text>
   </xsl:if>
[...]
---schnapp---

It is possible to use a new attribute within an action
(issue="issuenumber").

HTH, Dirk