Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-10-16 15:48:40 +0000
committerEike Stepper2012-10-16 15:48:40 +0000
commit3585529aa42d0a7feb8a08d9015feaa145a9c978 (patch)
tree78fefc57384066464a01dea634cc8dfb13cd5b8f
parente6f07cba163a8762ec42017f88c1012fa8e06721 (diff)
downloadcdo-3585529aa42d0a7feb8a08d9015feaa145a9c978.tar.gz
cdo-3585529aa42d0a7feb8a08d9015feaa145a9c978.tar.xz
cdo-3585529aa42d0a7feb8a08d9015feaa145a9c978.zip
[391874] [Releng] Generate API reports during Hudson build drops/I20121016-1200
https://bugs.eclipse.org/bugs/show_bug.cgi?id=391874
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/Api2Html.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/Api2Html.java b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/Api2Html.java
index f6c570d599..ef313a000e 100644
--- a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/Api2Html.java
+++ b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/Api2Html.java
@@ -114,11 +114,11 @@ public class Api2Html extends DefaultHandler
{
componentID = message.substring("The API component ".length());
componentID = componentID.substring(0, componentID.indexOf(' '));
- componentID = componentID.replace('_', '(') + ")";
if (message.endsWith("added"))
{
componentChange = "The API component has been added";
+ componentID = componentID.replace('_', '(') + ")";
}
else if (message.endsWith("removed"))
{
@@ -451,7 +451,7 @@ public class Api2Html extends DefaultHandler
{
out.print(indent + "<div class='" + getClass().getSimpleName().toLowerCase()
+ "'><a href=\"javascript:toggle('node" + id + "')\"><img src='" + (isCollapsed() ? PLUS : MINUS)
- + "' id='img_node" + id + "'></a> ");
+ + "' id='img_node" + id + "'></a>");
super.generate(out, "");
out.println("</div>");
@@ -540,7 +540,13 @@ public class Api2Html extends DefaultHandler
@Override
public String getText()
{
- return super.getText() + "&nbsp;" + componentVersion;
+ String text = super.getText();
+ if (componentVersion != null)
+ {
+ text += "&nbsp;" + componentVersion;
+ }
+
+ return text;
}
@Override

Back to the top