de.smartics.maven.util
Class PathUtils

Package class diagram package PathUtils
java.lang.Object
  extended by de.smartics.maven.util.PathUtils

public final class PathUtils
     
     
extends Object

Utilities for handling paths Maven.

Author:
Robert Reiner

Method Summary
static boolean exists(List<String> roots)
          Checks if any elements of the list of directory roots exists.
static String getUpPath(String relativePath)
           
static List<String> toClassPath(List<Artifact> artifacts)
          Builds a class path from the list of artifacts.
static String toClassPathString(List<Artifact> artifacts, char pathSeparator)
          Builds a class path string from the list of artifacts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toClassPathString

public static String toClassPathString(List<Artifact> artifacts,
                                       char pathSeparator)
Builds a class path string from the list of artifacts.

Parameters:
artifacts - the artifacts to include into the class path.
pathSeparator - the separator to put between the path elements.
Returns:
the generated class path string.

toClassPath

public static List<String> toClassPath(List<Artifact> artifacts)
Builds a class path from the list of artifacts.

Parameters:
artifacts - the artifacts to include into the class path.
Returns:
the generated class path elements ( Strings).

exists

public static boolean exists(List<String> roots)
Checks if any elements of the list of directory roots exists.

Parameters:
roots - the directory roots check for existence.
Returns:
true if at least one of the roots exists, false otherwise.

getUpPath

public static String getUpPath(String relativePath)


Copyright © 2006-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.