org.apache.maven.archetype.common.util
Class PathUtils

java.lang.Object
  extended by org.apache.maven.archetype.common.util.PathUtils

public class PathUtils
extends java.lang.Object

Author:
rafale

Constructor Summary
PathUtils()
           
 
Method Summary
static java.lang.String convertPathForOS(java.lang.String path)
          This method converts all \ or / chars to File.separatorChar.
static java.lang.String getDirectory(java.lang.String file, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtils

public PathUtils()
Method Detail

convertPathForOS

public static java.lang.String convertPathForOS(java.lang.String path)
This method converts all \ or / chars to File.separatorChar.

Parameters:
path -
Returns:

getDirectory

public static java.lang.String getDirectory(java.lang.String file,
                                            int level)


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.