|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hudsonci.maven.eventspy_30.MavenProjectConverter
public class MavenProjectConverter
Converts MavenProjects and their BuildSummarys to corresponding DTOs.
| Method Summary | |
|---|---|
static MavenCoordinatesDTO |
asCoordinates(org.apache.maven.project.MavenProject mavenProject)
|
static BuildSummaryDTO |
convertBuildSummary(org.apache.maven.execution.BuildSummary buildSummary)
If the summary is null the result will be BuildResultDTO.SKIPPED. |
static MavenProjectDTO |
convertMavenProject(org.apache.maven.project.MavenProject mavenProject)
|
static Collection<ProfileDTO> |
convertProfiles(Collection<ResolvedProfile> profiles)
|
static BuildResultDTO |
convertToBuildResult(org.apache.maven.execution.BuildSummary buildSummary)
If the summary is null the result will be BuildResultDTO.SKIPPED. |
static ArrayList<MavenProjectDTO> |
extractFrom(org.apache.maven.execution.MavenExecutionResult event)
|
static void |
updateWithBuildResult(MavenProjectDTO projectDTO,
BuildResultDTO resultDTO)
This will replace any existing summary associated with the project. |
static void |
updateWithBuildSummary(MavenProjectDTO projectDTO,
org.apache.maven.execution.BuildSummary buildSummary)
Add the converted build summary to the project. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ArrayList<MavenProjectDTO> extractFrom(org.apache.maven.execution.MavenExecutionResult event)
public static MavenProjectDTO convertMavenProject(org.apache.maven.project.MavenProject mavenProject)
public static MavenCoordinatesDTO asCoordinates(org.apache.maven.project.MavenProject mavenProject)
public static void updateWithBuildSummary(MavenProjectDTO projectDTO,
org.apache.maven.execution.BuildSummary buildSummary)
BuildResultDTO.SKIPPED.
This will replace any existing summary associated with the project.
public static void updateWithBuildResult(MavenProjectDTO projectDTO,
BuildResultDTO resultDTO)
public static BuildSummaryDTO convertBuildSummary(org.apache.maven.execution.BuildSummary buildSummary)
BuildResultDTO.SKIPPED.
public static BuildResultDTO convertToBuildResult(org.apache.maven.execution.BuildSummary buildSummary)
BuildResultDTO.SKIPPED.
If a translation can not be matched the result will be BuildResultDTO.UNKNOWN.
public static Collection<ProfileDTO> convertProfiles(Collection<ResolvedProfile> profiles)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||