org.hudsonci.maven.model.state
Class MavenProjectDTOHelper

java.lang.Object
  extended by org.hudsonci.maven.model.state.MavenProjectDTOHelper

public class MavenProjectDTOHelper
extends Object

Helper for MavenProjectDTO. The id used within the system should always be generated from this helper because there are inconsistencies with MavenSession.getId and MavenProject.getId .

Since:
2.1.0
Author:
Jamie Whitehouse

Constructor Summary
MavenProjectDTOHelper()
           
 
Method Summary
static String asId(MavenCoordinatesDTO source)
           
static String asId(MavenProjectDTO source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenProjectDTOHelper

public MavenProjectDTOHelper()
Method Detail

asId

public static String asId(MavenProjectDTO source)
Returns:
the project id as groupId:artifactId:packaging:version

asId

public static String asId(MavenCoordinatesDTO source)
Returns:
the project id as groupId:artifactId:packaging:version


Copyright © 2004-2011 Hudson. All Rights Reserved.