org.hudsonci.maven.model.state
Class ArtifactDTOHelper

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

public class ArtifactDTOHelper
extends Object

Helper for ArtifactDTO.

Since:
2.1.0
Author:
Jamie Whitehouse

Constructor Summary
ArtifactDTOHelper()
           
 
Method Summary
static File getFile(ArtifactDTO artifact)
          Creates a File for the artifacts location if available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactDTOHelper

public ArtifactDTOHelper()
Method Detail

getFile

public static File getFile(ArtifactDTO artifact)
Creates a File for the artifacts location if available. An artifact may not have a file location when it has been recorded for use but not found in a Maven repo, hence not resolved to the local repository/file system.

Returns:
a File representing the artifacts location or null if the artifact has no file location.


Copyright © 2004-2011 Hudson. All Rights Reserved.