Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
JENKINS-8833: Added convenience method to add a project.
  • Loading branch information
uhafner committed Jul 6, 2011
1 parent 014b29f commit b665e52c8d0385a891aec642041004ff2695d874
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/main/java/hudson/plugins/analysis/core/ParserResult.java
@@ -106,7 +106,6 @@ public ParserResult(final Workspace workspace) {
}
}


/**
* Creates a new instance of {@link ParserResult}.
*
@@ -119,6 +118,17 @@ public ParserResult(final Collection<FileAnnotation> annotations) {
addAnnotations(annotations);
}

/**
* Adds the warnings of the specified project to this project.
*
* @param additionalProject the project to add
*/
public void addProject(final ParserResult additionalProject) {
addAnnotations(additionalProject.getAnnotations());
addErrors(additionalProject.getErrorMessages());
addModules(additionalProject.getModules());
}

/**
* Finds a file with relative filename and replaces the name with the absolute path.
*

0 comments on commit b665e52

Please sign in to comment.