org.virbo.autoplot
Class Util
java.lang.Object
org.virbo.autoplot.Util
public class Util
- extends java.lang.Object
Constructor Summary |
Util()
|
Method Summary |
static boolean |
deleteFileTree(java.io.File root)
deletes all files and folders below root, and root, just as "rm -r" would. |
static java.util.List<java.lang.String> |
getBuildInfos()
searches class path for META-INF/version.txt, returns nice strings |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
strjoin(java.util.Collection<java.lang.String> c,
java.lang.String delim)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getBuildInfos
public static java.util.List<java.lang.String> getBuildInfos()
throws java.io.IOException
- searches class path for META-INF/version.txt, returns nice strings
- Returns:
- one line per jar
- Throws:
java.io.IOException
deleteFileTree
public static boolean deleteFileTree(java.io.File root)
throws java.lang.IllegalArgumentException
- deletes all files and folders below root, and root, just as "rm -r" would.
TODO: check links
- Returns:
- true if the operation was successful.
- Throws:
java.lang.IllegalArgumentException
- if it is unable to delete a file
strjoin
public static java.lang.String strjoin(java.util.Collection<java.lang.String> c,
java.lang.String delim)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException