Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup for Checkstyle and mvn warning suppression

  • Loading branch information...
commit 0733af3a954a20ed4de10e936d8ca3995123f811 1 parent 512a517
Thomas Deruyter authored
View
6 pom.xml
@@ -9,7 +9,7 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>summary_report</artifactId>
<name>Hudson Summary Display Plugin</name>
- <version>1.16</version>
+ <version>1.0-SNAPSHOT</version>
<packaging>hpi</packaging>
<description>Extend build and project page with extended results in XML format</description>
<url>http://wiki.jenkins-ci.org/display/JENKINS/Hudson+Summary+Display+Plugin</url>
@@ -89,6 +89,10 @@
<url>https://github.com/jenkinsci/summary_report</url>
</scm>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
<repositories>
<repository>
View
259 src/main/java/hudson/plugins/summary_report/ACIPluginBuildAction.java
@@ -38,135 +38,142 @@
import org.kohsuke.stapler.StaplerProxy;
import org.xml.sax.SAXException;
-public class ACIPluginBuildAction implements Action, Serializable, StaplerProxy {
+public class ACIPluginBuildAction
+ implements Action, Serializable, StaplerProxy {
- /**
+ /**
*
*/
private static final long serialVersionUID = 1L;
public static final String URL_NAME = "aciResult";
- private AbstractBuild<?, ?> build;
- private String result;
- private Report report;
- private ArrayList< ArrayList<String> > fileError;
-
-
-
- public ACIPluginBuildAction(AbstractBuild<?, ?> build, ArrayList<String> files) throws InterruptedException, ParserConfigurationException, SAXException, URISyntaxException, IOException {
- this.build = build;
- this.report = new Report();
- this.fileError = new ArrayList< ArrayList<String> >();
-
- for (int i = 0; i < files.size(); i++) {
-
- String current_report = files.get(i);
-
- String path = "file:"+build.getArtifactsDir().getAbsolutePath() +File.separatorChar+ current_report;
-
- URI xml = new URI(path);
-
-
- ParserXml parseur = new ParserXml(xml);
-
- String resParse = parseur.parse();
- if(resParse.equals("")){
- this.report.addSection(parseur.result());
- }else{
- ArrayList<String> list = new ArrayList<String>();
- list.add("#FF0000");//titleColor
- list.add("Parsing File Error");//fieldName
- list.add("#000000");//detailColor
-
- String str = build.getArtifactsDir().getName();
- str = str.replace("archive",build.getNumber()+"/artifact");
-
- list.add(str+File.separatorChar+current_report);//href project page
-
- str = build.getArtifactsDir().getName();
- str = str.replace("archive","artifact");
-
- list.add(str+File.separatorChar+current_report);//href build page
-
- list.add("Cause : "+resParse);//fieldValue
- fileError.add(list);
- }
- }
-
- }
-
- public Report getReport() {
- return report;
- }
-
- public ArrayList< ArrayList<String> > getFileError() {
- return fileError;
- }
-
- public String getSummary() {
- StringBuilder builder = new StringBuilder();
- return builder.toString();
- }
-
- public String getDetails() {
- StringBuilder builder = new StringBuilder();
- return builder.toString();
- }
-
- public String getResult() {
- return this.result;
- }
-
- AbstractBuild<?, ?> getBuild() {
- return this.build;
- }
-
- public Object getTarget() {
- return this.result;
- }
-
- String getPreviousResult() {
- ACIPluginBuildAction previousAction = this.getPreviousAction();
- String previousResult = null;
- if (previousAction != null) {
- previousResult = previousAction.getResult();
- }
- return previousResult;
- }
-
- ACIPluginBuildAction getPreviousAction() {
- AbstractBuild<?, ?> previousBuild = this.build.getPreviousBuild();
- if (previousBuild != null) {
- return previousBuild.getAction(ACIPluginBuildAction.class);
- }
- return null;
- }
-
- public String getProjectName() {
- String str = build.getParent().getName();
- str = str.replace(".", "dot");
- return str;
- }
-
- public int getBuildNumber() {
- return build.getNumber();
- }
- /**
- * The three functions getIconFileName,getDisplayName,getUrlName
- * create a link to a new page with url : http://{root}/job/{job name}/URL_NAME
- * for the page of the build
- */
- public String getIconFileName() {
- //return "/plugin/summary_report/icons/summary_report.png";
- return null;
- }
-
- public String getDisplayName() {
- //return "ACIAction";
- return null;
- }
-
- public String getUrlName() {
- //return URL_NAME;
- return null;
- }
+ private AbstractBuild<?, ?> build;
+ private String result;
+ private Report report;
+ private ArrayList<ArrayList<String>> fileError;
+
+ public ACIPluginBuildAction(AbstractBuild<?, ?> build,
+ ArrayList<String> files) throws InterruptedException,
+ ParserConfigurationException, SAXException, URISyntaxException,
+ IOException {
+ this.build = build;
+ this.report = new Report();
+ this.fileError = new ArrayList<ArrayList<String>>();
+
+ for (int i = 0; i < files.size(); i++) {
+
+ String current_report = files.get(i);
+
+ String path = "file:" + build.getArtifactsDir().getAbsolutePath()
+ + File.separatorChar + current_report;
+
+ URI xml = new URI(path);
+
+ ParserXml parseur = new ParserXml(xml);
+
+ String resParse = parseur.parse();
+ if (resParse.equals("")) {
+ this.report.addSection(parseur.result());
+ } else {
+ ArrayList<String> list = new ArrayList<String>();
+ list.add("#FF0000");// titleColor
+ list.add("Parsing File Error");// fieldName
+ list.add("#000000");// detailColor
+
+ String str = build.getArtifactsDir().getName();
+ str = str.replace("archive", build.getNumber() + "/artifact");
+
+ list.add(str + File.separatorChar + current_report);// href
+ // project
+ // page
+
+ str = build.getArtifactsDir().getName();
+ str = str.replace("archive", "artifact");
+
+ list.add(str + File.separatorChar + current_report);// href
+ // build
+ // page
+
+ list.add("Cause : " + resParse);// fieldValue
+ fileError.add(list);
+ }
+ }
+
+ }
+
+ public Report getReport() {
+ return report;
+ }
+
+ public ArrayList<ArrayList<String>> getFileError() {
+ return fileError;
+ }
+
+ public String getSummary() {
+ StringBuilder builder = new StringBuilder();
+ return builder.toString();
+ }
+
+ public String getDetails() {
+ StringBuilder builder = new StringBuilder();
+ return builder.toString();
+ }
+
+ public String getResult() {
+ return this.result;
+ }
+
+ AbstractBuild<?, ?> getBuild() {
+ return this.build;
+ }
+
+ public Object getTarget() {
+ return this.result;
+ }
+
+ String getPreviousResult() {
+ ACIPluginBuildAction previousAction = this.getPreviousAction();
+ String previousResult = null;
+ if (previousAction != null) {
+ previousResult = previousAction.getResult();
+ }
+ return previousResult;
+ }
+
+ ACIPluginBuildAction getPreviousAction() {
+ AbstractBuild<?, ?> previousBuild = this.build.getPreviousBuild();
+ if (previousBuild != null) {
+ return previousBuild.getAction(ACIPluginBuildAction.class);
+ }
+ return null;
+ }
+
+ public String getProjectName() {
+ String str = build.getParent().getName();
+ str = str.replace(".", "dot");
+ return str;
+ }
+
+ public int getBuildNumber() {
+ return build.getNumber();
+ }
+
+ /**
+ * The three functions getIconFileName,getDisplayName,getUrlName create a
+ * link to a new page with url : http://{root}/job/{job name}/URL_NAME for
+ * the page of the build
+ */
+ public String getIconFileName() {
+ // return "/plugin/summary_report/icons/summary_report.png";
+ return null;
+ }
+
+ public String getDisplayName() {
+ // return "ACIAction";
+ return null;
+ }
+
+ public String getUrlName() {
+ // return URL_NAME;
+ return null;
+ }
}
View
20 src/main/java/hudson/plugins/summary_report/ACIPluginDescriptor.java
@@ -31,16 +31,16 @@
@Extension
public class ACIPluginDescriptor extends BuildStepDescriptor<Publisher> {
- public ACIPluginDescriptor(){
- super(ACIPluginPublisher.class);
- }
+ public ACIPluginDescriptor() {
+ super(ACIPluginPublisher.class);
+ }
- public boolean isApplicable(Class<? extends AbstractProject> jobType) {
- return true;
- }
+ public boolean isApplicable(Class<? extends AbstractProject> jobType) {
+ return true;
+ }
- @Override
- public String getDisplayName() {
- return "Publish ACI reports";
- }
+ @Override
+ public String getDisplayName() {
+ return "Publish ACI reports";
+ }
}
View
120 src/main/java/hudson/plugins/summary_report/ACIPluginPublisher.java
@@ -29,7 +29,6 @@
import hudson.model.Action;
import hudson.model.BuildListener;
-
import hudson.tasks.BuildStepMonitor;
import hudson.tasks.Recorder;
import java.io.File;
@@ -46,62 +45,65 @@
public class ACIPluginPublisher extends Recorder {
- /* The list name of the files to parse */
- private String name;
-
- @DataBoundConstructor
- public ACIPluginPublisher(String name) {
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public Action getProjectAction(AbstractProject<?, ?> project) {
- return new ACIPluginProjectAction(project);
- }
-
- @Override
- public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
-
- /**
- * Define if we must parse multiple file by searching for , in the name var
- */
- String[] files = name.split(",");
-
- ArrayList<String> filesToParse = new ArrayList<String>();
- for (int i = 0; i < files.length; i++) {
- FileSet fileSet = new FileSet();
- File workspace = build.getArtifactsDir();
- fileSet.setDir(workspace);
- fileSet.setIncludes(files[i].trim());
- Project antProject = new Project();
- fileSet.setProject(antProject);
- String[] tmp_files = fileSet.getDirectoryScanner(antProject).getIncludedFiles();
-
- for (int j = 0; j < tmp_files.length; j++) {
-
- filesToParse.add(tmp_files[j]);
- }
-
- }
-
- try {
- ACIPluginBuildAction buildAction;
- buildAction = new ACIPluginBuildAction(build, filesToParse);
- build.addAction(buildAction);
- } catch (ParserConfigurationException ex) {
- } catch (SAXException ex) {
- } catch (URISyntaxException ex) {
- }
-
- return true;
-
- }
-
- public BuildStepMonitor getRequiredMonitorService() {
- return BuildStepMonitor.BUILD;
- }
+ /* The list name of the files to parse */
+ private String name;
+
+ @DataBoundConstructor
+ public ACIPluginPublisher(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public Action getProjectAction(AbstractProject<?, ?> project) {
+ return new ACIPluginProjectAction(project);
+ }
+
+ @Override
+ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher,
+ BuildListener listener) throws IOException, InterruptedException {
+
+ /**
+ * Define if we must parse multiple file by searching for , in the name
+ * var
+ */
+ String[] files = name.split(",");
+
+ ArrayList<String> filesToParse = new ArrayList<String>();
+ for (int i = 0; i < files.length; i++) {
+ FileSet fileSet = new FileSet();
+ File workspace = build.getArtifactsDir();
+ fileSet.setDir(workspace);
+ fileSet.setIncludes(files[i].trim());
+ Project antProject = new Project();
+ fileSet.setProject(antProject);
+ String[] tmp_files = fileSet.getDirectoryScanner(antProject)
+ .getIncludedFiles();
+
+ for (int j = 0; j < tmp_files.length; j++) {
+
+ filesToParse.add(tmp_files[j]);
+ }
+
+ }
+
+ try {
+ ACIPluginBuildAction buildAction;
+ buildAction = new ACIPluginBuildAction(build, filesToParse);
+ build.addAction(buildAction);
+ } catch (ParserConfigurationException ex) {
+ } catch (SAXException ex) {
+ } catch (URISyntaxException ex) {
+ }
+
+ return true;
+
+ }
+
+ public BuildStepMonitor getRequiredMonitorService() {
+ return BuildStepMonitor.BUILD;
+ }
}
View
96 src/main/java/hudson/plugins/summary_report/report/Accordion.java
@@ -27,60 +27,64 @@
public class Accordion {
- private String status;
- private String accordionName;
- private ArrayList<Object> objectList;
+ private String status;
+ private String accordionName;
+ private ArrayList<Object> objectList;
- public Accordion(){
- objectList = new ArrayList<Object>();
- status = "accordion";
- }
+ public Accordion() {
+ objectList = new ArrayList<Object>();
+ status = "accordion";
+ }
- /**
- * @return the status
- */
- public String getStatus(){
- return status;
- }
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
- /**
- * @param status the status to set
- */
- public void setStatus(String status){
- this.status = status;
+ /**
+ * @param status
+ * the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
- }
- /**
- * @return the accordionName
- */
- public String getAccordionName(){
- return accordionName;
- }
+ }
- /**
- * @param accordionName the accordionName to set
- */
- public void setAccordionName(String accordionName){
- this.accordionName = accordionName;
+ /**
+ * @return the accordionName
+ */
+ public String getAccordionName() {
+ return accordionName;
+ }
- }
+ /**
+ * @param accordionName
+ * the accordionName to set
+ */
+ public void setAccordionName(String accordionName) {
+ this.accordionName = accordionName;
- /**
- * @return the objectList
- */
- public ArrayList<Object> getObjectList(){
- return objectList;
- }
+ }
- /**
- * @param objectList the objectList to set
- */
- public void setObjectList(ArrayList<Object> objectList){
- this.objectList = objectList;
- }
+ /**
+ * @return the objectList
+ */
+ public ArrayList<Object> getObjectList() {
+ return objectList;
+ }
- public void addObject(Object obj){
- this.objectList.add(obj);
- }
+ /**
+ * @param objectList
+ * the objectList to set
+ */
+ public void setObjectList(ArrayList<Object> objectList) {
+ this.objectList = objectList;
+ }
+
+ public void addObject(Object obj) {
+ this.objectList.add(obj);
+ }
}
View
235 src/main/java/hudson/plugins/summary_report/report/Field.java
@@ -25,117 +25,126 @@
public class Field {
- private String status;
- private String fieldName;
- private String fieldValue;
- private String cdata;
- private String href;
- private String titleColor;
- private String detailColor;
-
- public Field() {
- status = "field";
- }
-
- /**
- * @return the status
- */
- public String getStatus(){
- return status;
- }
-
- /**
- * @param status the status to set
- */
- public void setStatus(String status){
- this.status = status;
-
- }
-
- /**
- * @return the fieldName
- */
- public String getFieldName(){
- return fieldName;
- }
-
- /**
- * @param fieldName the fieldName to set
- */
- public void setFieldName(String fieldName){
- this.fieldName = fieldName;
-
- }
-
- /**
- * @return the fieldValue
- */
- public String getFieldValue(){
- return fieldValue;
- }
-
- /**
- * @param fieldValue the fieldValue to set
- */
- public void setFieldValue(String fieldValue){
- this.fieldValue = fieldValue;
-
- }
-
- /**
- * @return the cdata
- */
- public String getCdata(){
- return cdata;
- }
-
- /**
- * @param cdata the cdata to set
- */
- public void setCdata(String cdata){
- if (this.cdata == null) this.cdata = cdata;
- else this.cdata = this.cdata + cdata;
- }
-
- /**
- * @return the ref
- */
- public String getHref() {
- return href;
- }
-
- /**
- * @param href the ref to set
- */
- public void setHref(String href) {
- this.href = href;
- }
-
- /**
- * @return the titleColor
- */
- public String getTitleColor() {
- return titleColor;
- }
-
- /**
- * @param titleColor the titleColor to set
- */
- public void setTitleColor(String titleColor) {
- this.titleColor = titleColor;
- }
-
- /**
- * @return the detailColor
- */
- public String getDetailColor() {
- return detailColor;
- }
-
- /**
- * @param detailColor the detailColor to set
- */
- public void setDetailColor(String detailColor) {
- this.detailColor = detailColor;
- }
+ private String status;
+ private String fieldName;
+ private String fieldValue;
+ private String cdata;
+ private String href;
+ private String titleColor;
+ private String detailColor;
+
+ public Field() {
+ status = "field";
+ }
+
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * @param status
+ * the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
+
+ }
+
+ /**
+ * @return the fieldName
+ */
+ public String getFieldName() {
+ return fieldName;
+ }
+
+ /**
+ * @param fieldName
+ * the fieldName to set
+ */
+ public void setFieldName(String fieldName) {
+ this.fieldName = fieldName;
+
+ }
+
+ /**
+ * @return the fieldValue
+ */
+ public String getFieldValue() {
+ return fieldValue;
+ }
+
+ /**
+ * @param fieldValue
+ * the fieldValue to set
+ */
+ public void setFieldValue(String fieldValue) {
+ this.fieldValue = fieldValue;
+
+ }
+
+ /**
+ * @return the cdata
+ */
+ public String getCdata() {
+ return cdata;
+ }
+
+ /**
+ * @param cdata
+ * the cdata to set
+ */
+ public void setCdata(String cdata) {
+ if (this.cdata == null)
+ this.cdata = cdata;
+ else
+ this.cdata = this.cdata + cdata;
+ }
+
+ /**
+ * @return the ref
+ */
+ public String getHref() {
+ return href;
+ }
+
+ /**
+ * @param href
+ * the ref to set
+ */
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ /**
+ * @return the titleColor
+ */
+ public String getTitleColor() {
+ return titleColor;
+ }
+
+ /**
+ * @param titleColor
+ * the titleColor to set
+ */
+ public void setTitleColor(String titleColor) {
+ this.titleColor = titleColor;
+ }
+
+ /**
+ * @return the detailColor
+ */
+ public String getDetailColor() {
+ return detailColor;
+ }
+
+ /**
+ * @param detailColor
+ * the detailColor to set
+ */
+ public void setDetailColor(String detailColor) {
+ this.detailColor = detailColor;
+ }
}
View
177 src/main/java/hudson/plugins/summary_report/report/Section.java
@@ -27,90 +27,95 @@
public class Section {
- private String sectionName;
- private String line;
- private String column;
- private ArrayList<Object> objectList;
- private String fontColor;
-
- public Section(){
- objectList = new ArrayList<Object>();
- }
-
- /**
- * @return the sectionName
- */
- public String getSectionName(){
- return sectionName;
- }
-
- /**
- * @param sectionName the sectionName to set
- */
- public void setSectionName(String sectionName){
- this.sectionName = sectionName;
- }
-
- /**
- * @return the line
- */
- public String getLine(){
- return line;
- }
-
- /**
- * @param line the line to set
- */
- public void setLine(String line){
- this.line = line;
-
- }
-
- /**
- * @return the column
- */
- public String getColumn(){
- return column;
- }
-
- /**
- * @param column the column to set
- */
- public void setColumn(String column){
- this.column = column;
-
- }
-
- /**
- * @return the objectList
- */
- public ArrayList<Object> getObjectList(){
- return objectList;
- }
-
- /**
- * @param objectList the objectList to set
- */
- public void setObjectList(ArrayList<Object> objectList){
- this.objectList = objectList;
- }
-
- public void addObject(Object obj){
- this.objectList.add(obj);
- }
-
- /**
- * @return the fontColor
- */
- public String getfontColor(){
- return fontColor;
- }
-
- /**
- * @param fontColor the fontColor to set
- */
- public void setFontColor(String fontColor){
- this.fontColor = fontColor;
-
- }
+ private String sectionName;
+ private String line;
+ private String column;
+ private ArrayList<Object> objectList;
+ private String fontColor;
+
+ public Section() {
+ objectList = new ArrayList<Object>();
+ }
+
+ /**
+ * @return the sectionName
+ */
+ public String getSectionName() {
+ return sectionName;
+ }
+
+ /**
+ * @param sectionName
+ * the sectionName to set
+ */
+ public void setSectionName(String sectionName) {
+ this.sectionName = sectionName;
+ }
+
+ /**
+ * @return the line
+ */
+ public String getLine() {
+ return line;
+ }
+
+ /**
+ * @param line
+ * the line to set
+ */
+ public void setLine(String line) {
+ this.line = line;
+
+ }
+
+ /**
+ * @return the column
+ */
+ public String getColumn() {
+ return column;
+ }
+
+ /**
+ * @param column
+ * the column to set
+ */
+ public void setColumn(String column) {
+ this.column = column;
+
+ }
+
+ /**
+ * @return the objectList
+ */
+ public ArrayList<Object> getObjectList() {
+ return objectList;
+ }
+
+ /**
+ * @param objectList
+ * the objectList to set
+ */
+ public void setObjectList(ArrayList<Object> objectList) {
+ this.objectList = objectList;
+ }
+
+ public void addObject(Object obj) {
+ this.objectList.add(obj);
+ }
+
+ /**
+ * @return the fontColor
+ */
+ public String getfontColor() {
+ return fontColor;
+ }
+
+ /**
+ * @param fontColor
+ * the fontColor to set
+ */
+ public void setFontColor(String fontColor) {
+ this.fontColor = fontColor;
+
+ }
}
View
102 src/main/java/hudson/plugins/summary_report/report/Tab.java
@@ -27,62 +27,64 @@
public class Tab {
- private String status;
- private String tabName;
- private ArrayList<Object> objectList;
+ private String status;
+ private String tabName;
+ private ArrayList<Object> objectList;
-
- public Tab(){
- objectList = new ArrayList<Object>();
- status = "tab";
- }
+ public Tab() {
+ objectList = new ArrayList<Object>();
+ status = "tab";
+ }
- /**
- * @return the status
- */
- public String getStatus(){
- return status;
- }
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
- /**
- * @param status the status to set
- */
- public void setStatus(String status){
- this.status = status;
+ /**
+ * @param status
+ * the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
- }
-
- /**
- * @return the tabName
- */
- public String getTabName(){
- return tabName;
- }
+ }
- /**
- * @param tabName the tabName to set
- */
- public void setTabName(String tabName){
- this.tabName = tabName;
+ /**
+ * @return the tabName
+ */
+ public String getTabName() {
+ return tabName;
+ }
- }
-
- /**
- * @return the objectList
- */
- public ArrayList<Object> getObjectList(){
- return objectList;
- }
+ /**
+ * @param tabName
+ * the tabName to set
+ */
+ public void setTabName(String tabName) {
+ this.tabName = tabName;
- /**
- * @param objectList the objectList to set
- */
- public void setObjectList(ArrayList<Object> objectList){
- this.objectList = objectList;
- }
+ }
+
+ /**
+ * @return the objectList
+ */
+ public ArrayList<Object> getObjectList() {
+ return objectList;
+ }
+
+ /**
+ * @param objectList
+ * the objectList to set
+ */
+ public void setObjectList(ArrayList<Object> objectList) {
+ this.objectList = objectList;
+ }
+
+ public void addObject(Object obj) {
+ this.objectList.add(obj);
+ }
- public void addObject(Object obj){
- this.objectList.add(obj);
- }
-
}
View
99 src/main/java/hudson/plugins/summary_report/report/Table.java
@@ -26,61 +26,64 @@
import java.util.ArrayList;
public class Table {
-
- private String status;
- private ArrayList<Tr> trList;
- private String sorttable;
-
- public Table(){
- trList = new ArrayList<Tr>();
- status = "table";
- }
- /**
- * @return the status
- */
- public String getStatus(){
- return status;
- }
+ private String status;
+ private ArrayList<Tr> trList;
+ private String sorttable;
- /**
- * @param status the status to set
- */
- public void setStatus(String status){
- this.status = status;
+ public Table() {
+ trList = new ArrayList<Tr>();
+ status = "table";
+ }
- }
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
- /**
- * @return the trList
- */
- public ArrayList<Tr> getTrList(){
- return trList;
- }
+ /**
+ * @param status
+ * the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
- /**
- * @param trList the trList to set
- */
- public void setTrList(ArrayList<Tr> trList){
- this.trList = trList;
- }
+ }
- /**
- * @return the sorttable
- */
- public String getSorttable(){
- return sorttable;
- }
+ /**
+ * @return the trList
+ */
+ public ArrayList<Tr> getTrList() {
+ return trList;
+ }
- /**
- * @param sorttable the sorttable to set
- */
- public void setSorttable(String sorttable){
- this.sorttable = sorttable;
+ /**
+ * @param trList
+ * the trList to set
+ */
+ public void setTrList(ArrayList<Tr> trList) {
+ this.trList = trList;
+ }
- }
+ /**
+ * @return the sorttable
+ */
+ public String getSorttable() {
+ return sorttable;
+ }
- public void addTr(Tr tr) {
- this.trList.add(tr);
- }
+ /**
+ * @param sorttable
+ * the sorttable to set
+ */
+ public void setSorttable(String sorttable) {
+ this.sorttable = sorttable;
+
+ }
+
+ public void addTr(Tr tr) {
+ this.trList.add(tr);
+ }
}
View
69 src/main/java/hudson/plugins/summary_report/report/Tabs.java
@@ -27,46 +27,47 @@
public class Tabs {
- private String status;
- private ArrayList<Tab> tabList;
+ private String status;
+ private ArrayList<Tab> tabList;
+ public Tabs() {
+ tabList = new ArrayList<Tab>();
+ status = "tabs";
+ }
- public Tabs(){
- tabList = new ArrayList<Tab>();
- status = "tabs";
- }
+ /**
+ * @return the status
+ */
+ public String getStatus() {
+ return status;
+ }
- /**
- * @return the status
- */
- public String getStatus(){
- return status;
- }
+ /**
+ * @param status
+ * the status to set
+ */
+ public void setStatus(String status) {
+ this.status = status;
- /**
- * @param status the status to set
- */
- public void setStatus(String status){
- this.status = status;
+ }
- }
+ /**
+ * @return the tabList
+ */
+ public ArrayList<Tab> getTabList() {
+ return tabList;
+ }
- /**
- * @return the tabList
- */
- public ArrayList<Tab> getTabList(){
- return tabList;
- }
+ /**
+ * @param tabList
+ * the tabList to set
+ */
+ public void setTabList(ArrayList<Tab> tabList) {
+ this.tabList = tabList;
+ }
- /**
- * @param tabList the tabList to set
- */
- public void setTabList(ArrayList<Tab> tabList){
- this.tabList = tabList;
- }
-
- public void addTab(Tab obj){
- this.tabList.add(obj);
- }
+ public void addTab(Tab obj) {
+ this.tabList.add(obj);
+ }
}
View
260 src/main/java/hudson/plugins/summary_report/report/Td.java
@@ -24,128 +24,140 @@
package hudson.plugins.summary_report.report;
public class Td {
- private String tdValue;
- private String bgColor;
- private String fontColor;
- private String fontAttribute;
- private String href;
- private String width;
- private String align;
- private String cdata;
-
- public Td(){
- this.width="100";
- this.align="left";
- }
-
- /**
- * @return the tdValue
- */
- public String getTdValue() {
- return tdValue;
- }
-
- /**
- * @param tdValue the tdValue to set
- */
- public void setTdValue(String tdValue) {
- this.tdValue = tdValue;
- }
-
- /**
- * @return the bgColor
- */
- public String getBgColor() {
- return bgColor;
- }
-
- /**
- * @param bgColor the bgColor to set
- */
- public void setBgColor(String bgColor) {
- this.bgColor = bgColor;
- }
-
- /**
- * @return the fontColor
- */
- public String getFontColor() {
- return fontColor;
- }
-
- /**
- * @param fontColor the fontColor to set
- */
- public void setFontColor(String fontColor) {
- this.fontColor = fontColor;
- }
-
- /**
- * @return the fontAttribute
- */
- public String getFontAttribute() {
- return fontAttribute;
- }
-
- /**
- * @param fontAttribute the fontAttribute to set
- */
- public void setFontAttribute(String fontAttribute) {
- this.fontAttribute = fontAttribute;
- }
-
- /**
- * @return the ref
- */
- public String getHref() {
- return href;
- }
-
- /**
- * @param href the ref to set
- */
- public void setHref(String href) {
- this.href = href;
- }
- /**
- * @return the width
- */
- public String getWidth() {
- return width;
- }
-
- /**
- * @param width the width to set
- */
- public void setWidth(String width) {
- this.width = width;
- }
- /**
- * @return the align
- */
- public String getAlign() {
- return align;
- }
-
- /**
- * @param align the alignment to set
- */
- public void setAlign(String align) {
- this.align = align;
- }
-
- /**
- * @return the cdata
- */
- public String getCdata(){
- return cdata;
- }
-
- /**
- * @param cdata the cdata to set
- */
- public void setCdata(String cdata){
- if (this.cdata == null) this.cdata = cdata;
- else this.cdata = this.cdata + cdata;
- }
+ private String tdValue;
+ private String bgColor;
+ private String fontColor;
+ private String fontAttribute;
+ private String href;
+ private String width;
+ private String align;
+ private String cdata;
+
+ public Td() {
+ this.width = "100";
+ this.align = "left";
+ }
+
+ /**
+ * @return the tdValue
+ */
+ public String getTdValue() {
+ return tdValue;
+ }
+
+ /**
+ * @param tdValue
+ * the tdValue to set
+ */
+ public void setTdValue(String tdValue) {
+ this.tdValue = tdValue;
+ }
+
+ /**
+ * @return the bgColor
+ */
+ public String getBgColor() {
+ return bgColor;
+ }
+
+ /**
+ * @param bgColor
+ * the bgColor to set
+ */
+ public void setBgColor(String bgColor) {
+ this.bgColor = bgColor;
+ }
+
+ /**
+ * @return the fontColor
+ */
+ public String getFontColor() {
+ return fontColor;
+ }
+
+ /**
+ * @param fontColor
+ * the fontColor to set
+ */
+ public void setFontColor(String fontColor) {
+ this.fontColor = fontColor;
+ }
+
+ /**
+ * @return the fontAttribute
+ */
+ public String getFontAttribute() {
+ return fontAttribute;
+ }
+
+ /**
+ * @param fontAttribute
+ * the fontAttribute to set
+ */
+ public void setFontAttribute(String fontAttribute) {
+ this.fontAttribute = fontAttribute;
+ }
+
+ /**
+ * @return the ref
+ */
+ public String getHref() {
+ return href;
+ }
+
+ /**
+ * @param href
+ * the ref to set
+ */
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ /**
+ * @return the width
+ */
+ public String getWidth() {
+ return width;
+ }
+
+ /**
+ * @param width
+ * the width to set
+ */
+ public void setWidth(String width) {
+ this.width = width;
+ }
+
+ /**
+ * @return the align
+ */
+ public String getAlign() {
+ return align;
+ }
+
+ /**
+ * @param align
+ * the alignment to set
+ */
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ /**
+ * @return the cdata
+ */
+ public String getCdata() {
+ return cdata;
+ }
+
+ /**
+ * @param cdata
+ * the cdata to set
+ */
+ public void setCdata(String cdata) {
+ if (this.cdata == null)
+ this.cdata = cdata;
+ else
+ this.cdata = this.cdata + cdata;
+ }
}
View
42 src/main/java/hudson/plugins/summary_report/report/Tr.java
@@ -25,29 +25,29 @@
import java.util.ArrayList;
-
public class Tr {
- private ArrayList<Td> tdList;
-
- public Tr(){
- tdList = new ArrayList<Td>();
- }
+ private ArrayList<Td> tdList;
+
+ public Tr() {
+ tdList = new ArrayList<Td>();
+ }
- /**
- * @return the tdList
- */
- public ArrayList<Td> getTdList(){
- return tdList;
- }
+ /**
+ * @return the tdList
+ */
+ public ArrayList<Td> getTdList() {
+ return tdList;
+ }
- /**
- * @param tdList the tdList to set
- */
- public void setTdList(ArrayList<Td> tdList){
- this.tdList = tdList;
- }
+ /**
+ * @param tdList
+ * the tdList to set
+ */
+ public void setTdList(ArrayList<Td> tdList) {
+ this.tdList = tdList;
+ }
- public void addTd(Td td) {
- this.tdList.add(td);
- }
+ public void addTd(Td td) {
+ this.tdList.add(td);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.