matthiasblaesing closed pull request #309: NETBEANS-192 support jira issue in 
apichanges
URL: https://github.com/apache/incubator-netbeans/pull/309
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nbbuild/javadoctools/apichanges.xsl 
b/nbbuild/javadoctools/apichanges.xsl
index 9b5611206..709e39dd6 100644
--- a/nbbuild/javadoctools/apichanges.xsl
+++ b/nbbuild/javadoctools/apichanges.xsl
@@ -66,6 +66,7 @@ committed to the repository for legal reasons. You need to 
download it:
 
     <!-- Overridable parameters: -->
     <xsl:param name="issue-url-base" 
select="'https://netbeans.org/bugzilla/show_bug.cgi?id='"/>
+    <xsl:param name="apache-issue-url-base" 
select="'https://issues.apache.org/jira/browse/'"/>
     <xsl:param name="javadoc-url-base" select="'???'"/>
 
     <!-- Main document structure: -->
@@ -482,8 +483,14 @@ committed to the repository for legal reasons. You need to 
download it:
 
     <xsl:template match="issue">
         <a>
-            <xsl:attribute name="href"><xsl:value-of 
select="$issue-url-base"/><xsl:value-of select="@number"/></xsl:attribute>
+            <xsl:if test="contains(@number, 'NETBEANS')">
+                <xsl:attribute name="href"><xsl:value-of 
select="$apache-issue-url-base"/><xsl:value-of 
select="@number"/></xsl:attribute>
+            <xsl:value-of select="@number"/>
+            </xsl:if>
+            <xsl:if test="not(contains(@number, 'NETBEANS'))">
+                    <xsl:attribute name="href"><xsl:value-of 
select="$issue-url-base"/><xsl:value-of select="@number"/></xsl:attribute>
             #<xsl:value-of select="@number"/>
+            </xsl:if>
         </a>
     </xsl:template>
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to