org.codehaus.mojo.sysdeo.ide
Class IdeUtils

java.lang.Object
  extended by org.codehaus.mojo.sysdeo.ide.IdeUtils

public class IdeUtils
extends Object

Version:
$Id: IdeUtils.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Trygve Laugstøl, Fabrizio Giustina

Method Summary
static String getCanonicalPath(File file)
           
static String getDependencyVersion(String[] artifactNames, Set artifacts, int len)
          Extracts the version of the first matching dependency in the given list.
static String getPluginSetting(org.apache.maven.project.MavenProject project, String artifactId, String optionName, String defaultValue)
           
static org.apache.maven.artifact.Artifact resolveArtifactWithClassifier(String groupId, String artifactId, String version, String classifier, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, List remoteRepos, org.apache.maven.plugin.logging.Log log)
           
static String toRelativeAndFixSeparator(File basedir, File fileToAdd, boolean replaceSlashesWithDashes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCanonicalPath

public static String getCanonicalPath(File file)
                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

toRelativeAndFixSeparator

public static String toRelativeAndFixSeparator(File basedir,
                                               File fileToAdd,
                                               boolean replaceSlashesWithDashes)
                                        throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getPluginSetting

public static String getPluginSetting(org.apache.maven.project.MavenProject project,
                                      String artifactId,
                                      String optionName,
                                      String defaultValue)

resolveArtifactWithClassifier

public static org.apache.maven.artifact.Artifact resolveArtifactWithClassifier(String groupId,
                                                                               String artifactId,
                                                                               String version,
                                                                               String classifier,
                                                                               org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                                                               org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
                                                                               org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
                                                                               List remoteRepos,
                                                                               org.apache.maven.plugin.logging.Log log)

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:


Copyright © 2011 Codehaus. All Rights Reserved.