Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
JENKINS-8833: Added convenience method to add a project.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jul 6, 2011
1 parent 014b29f commit b665e52
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/hudson/plugins/analysis/core/ParserResult.java
Expand Up @@ -106,7 +106,6 @@ public ParserResult(final Workspace workspace) {
}
}


/**
* Creates a new instance of {@link ParserResult}.
*
Expand All @@ -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.
*
Expand Down

0 comments on commit b665e52

Please sign in to comment.