|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.taskdefs.AntTaskUtil
public final class AntTaskUtil
Provides utility functions for Ant task.
| Method Summary | |
|---|---|
static void |
ensureDirectory(File directory)
Ensure the directory exists for a given directory name. |
static void |
ensureDirectoryForFile(File targetFile)
Ensure the directory exists for a given file. |
static void |
renderDotFiles(org.apache.tools.ant.Task task,
File dotDir,
boolean failOnError)
Render dot files. |
static void |
renderGnuplotFiles(org.apache.tools.ant.Task task,
File gnuplotDir,
boolean failOnError)
Render .gnuplot files. |
static String |
stripFileExtension(String fileWithExtension)
Strip file extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void ensureDirectory(File directory)
throws org.apache.tools.ant.BuildException
directory - the directory name that is required.
org.apache.tools.ant.BuildException - if the directories cannot be created.
public static void ensureDirectoryForFile(File targetFile)
throws org.apache.tools.ant.BuildException
targetFile - the file for which the directories are
required.
org.apache.tools.ant.BuildException - if the directories cannot be created.public static String stripFileExtension(String fileWithExtension)
fileWithExtension - the file with extension
public static void renderDotFiles(org.apache.tools.ant.Task task,
File dotDir,
boolean failOnError)
task - the taskdotDir - the dot dirfailOnError - the fail on error
public static void renderGnuplotFiles(org.apache.tools.ant.Task task,
File gnuplotDir,
boolean failOnError)
task - the taskgnuplotDir - the gnuplot dirfailOnError - the fail on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||