Groovy Documentation

kotka.gradle.utils
[Groovy] Class FileUtil

java.lang.Object
  kotka.gradle.utils.FileUtil

class FileUtil

A utility class to help working with files.

Authors:
Meikel Brandmeyer


Method Summary
static java.lang.Object file(java.io.File parent, java.lang.String... segments)

Creates a child file under parent.

static java.lang.Object file(java.lang.String parent, java.lang.String... segments)

Creates a child file under parent.

static void remove(java.io.File f)

Deletes the given file.

static void remove(java.lang.String f)

Deletes the given file.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

file

static java.lang.Object file(java.io.File parent, java.lang.String... segments)
Creates a child file under parent. It concatenates the given path segments together and return the inner most child entry.
Parameters:
parent - the parent file
segments - segments describing the path to the child entry
Returns:
the child entry


file

static java.lang.Object file(java.lang.String parent, java.lang.String... segments)
Creates a child file under parent. It concatenates the given path segments together and return the inner most child entry.
Parameters:
parent - the parent filename
segments - segments describing the path to the child entry
Returns:
the child entry


remove

static void remove(java.io.File f)
Deletes the given file. Directories are deleted recursively.
Parameters:
file - The file to be removed.


remove

static void remove(java.lang.String f)
Deletes the given file. Directories are deleted recursively.
Parameters:
file - The file to be removed.


 

Groovy Documentation