com.liferay.maven.plugins.util
Class FileUtil

java.lang.Object
  extended by com.liferay.maven.plugins.util.FileUtil

public class FileUtil
extends Object

Author:
Brian Wing Shun Chan

Constructor Summary
FileUtil()
           
 
Method Summary
static void copyDirectory(File source, File destination)
           
static void copyFile(File source, File destination)
           
static void delete(File file)
           
static String getExtension(String fileName)
           
static void mkdirs(String pathName)
           
static boolean move(File source, File destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

copyDirectory

public static void copyDirectory(File source,
                                 File destination)
                          throws IOException
Throws:
IOException

copyFile

public static void copyFile(File source,
                            File destination)
                     throws IOException
Throws:
IOException

delete

public static void delete(File file)
                   throws IOException
Throws:
IOException

getExtension

public static String getExtension(String fileName)

mkdirs

public static void mkdirs(String pathName)

move

public static boolean move(File source,
                           File destination)


Copyright © 2013. All Rights Reserved.