org.apache.maven.dotnet
Class PathUtil

java.lang.Object
  extended by org.apache.maven.dotnet.PathUtil

public final class PathUtil
extends java.lang.Object

This class provides methods for obtaining the location of artifacts.


Constructor Summary
PathUtil()
           
 
Method Summary
static java.io.File getGlobalAssemblyCacheFileFor(org.apache.maven.artifact.Artifact artifact, java.io.File gacRepository)
          Returns the path of the artifact within the global assembly cache.
static java.io.File getMavenLocalRepositoryFileFor(org.apache.maven.artifact.Artifact artifact, java.io.File localRepository)
          Returns the path of the artifact within the local repository using the default repository layout.
static java.io.File getPrivateApplicationBaseFileFor(org.apache.maven.artifact.Artifact artifact, java.io.File localRepository)
          Returns the path of the artifact within the private application base.
static java.io.File getUserAssemblyCacheFileFor(org.apache.maven.artifact.Artifact artifact, java.io.File localRepository)
          Returns the path of the artifact within the user assembly cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtil

public PathUtil()
Method Detail

getGlobalAssemblyCacheFileFor

public static java.io.File getGlobalAssemblyCacheFileFor(org.apache.maven.artifact.Artifact artifact,
                                                         java.io.File gacRepository)
Returns the path of the artifact within the global assembly cache.

Parameters:
artifact - the artifact to find the path of. This value should not be null.
gacRepository - the root directory of the GAC. This value should not be null.
Returns:
the path of the artifact within the global assembly cache or null if either of the specified parameters is null

getMavenLocalRepositoryFileFor

public static java.io.File getMavenLocalRepositoryFileFor(org.apache.maven.artifact.Artifact artifact,
                                                          java.io.File localRepository)
Returns the path of the artifact within the local repository using the default repository layout.

Parameters:
artifact - the artifact to find the path of. This value should not be null.
localRepository - the local repository. This value should not be null.
Returns:
the path of the artifact within the local maven repository or null if either of the specified parameters is null

getPrivateApplicationBaseFileFor

public static java.io.File getPrivateApplicationBaseFileFor(org.apache.maven.artifact.Artifact artifact,
                                                            java.io.File localRepository)
Returns the path of the artifact within the private application base.

Parameters:
artifact - the artifact to find the path of. This value should not be null.
localRepository - the local repository. This value should not be null.
Returns:
the path of the artifact within the private application base or null if either of the specified parameters is null

getUserAssemblyCacheFileFor

public static java.io.File getUserAssemblyCacheFileFor(org.apache.maven.artifact.Artifact artifact,
                                                       java.io.File localRepository)
Returns the path of the artifact within the user assembly cache.

Parameters:
artifact - the artifact to find the path of. This value should not be null.
localRepository - the local repository. This value should not be null.
Returns:
the path of the artifact within the user assembly cache or null if either of the specified parameters is null


Copyright © 2007 NMaven. All Rights Reserved.