org.apache.maven.plugin.ide

Class IdeUtils

public class IdeUtils extends Object

Version: $Id: IdeUtils.java 390800 2006-04-02 08:49:59Z fgiust $

Author: Trygve Laugstøl Fabrizio Giustina

Method Summary
static StringgetCanonicalPath(File file)
static StringgetDependencyVersion(String[] artifactNames, Set artifacts, int len)
Extracts the version of the first matching dependency in the given list.
static StringgetPluginSetting(MavenProject project, String artifactId, String optionName, String defaultValue)
static ArtifactresolveArtifactWithClassifier(String groupId, String artifactId, String version, String classifier, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteRepos, Log log)
static StringtoRelativeAndFixSeparator(File basedir, File fileToAdd, boolean replaceSlashesWithDashes)

Method Detail

getCanonicalPath

public static String getCanonicalPath(File file)

getDependencyVersion

public static String getDependencyVersion(String[] artifactNames, Set artifacts, int len)
Extracts the version of the first matching dependency in the given list.

Parameters: artifactNames artifact names to compare against for extracting version artifacts Collection of dependencies for our project len expected length of the version sub-string

Returns:

getPluginSetting

public static String getPluginSetting(MavenProject project, String artifactId, String optionName, String defaultValue)

UNKNOWN: there should be a better way to do this

resolveArtifactWithClassifier

public static Artifact resolveArtifactWithClassifier(String groupId, String artifactId, String version, String classifier, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteRepos, Log log)

toRelativeAndFixSeparator

public static String toRelativeAndFixSeparator(File basedir, File fileToAdd, boolean replaceSlashesWithDashes)
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.