|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.ClassloaderUtil
public class ClassloaderUtil
Utility class that can add jar files to the classpath dynamically.
Constructor Summary | |
---|---|
ClassloaderUtil()
|
Method Summary | |
---|---|
static void |
addFile(java.io.File f)
Add file to CLASSPATH |
static void |
addFile(java.lang.String s)
Add file to CLASSPATH |
static void |
addURL(java.net.URL u)
Add URL to CLASSPATH |
java.lang.String |
getRevision()
Returns the revision string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassloaderUtil()
Method Detail |
---|
public static void addFile(java.lang.String s) throws java.io.IOException
s
- File name
java.io.IOException
- if something goes wrong when adding a filepublic static void addFile(java.io.File f) throws java.io.IOException
f
- File object
java.io.IOException
- if something goes wrong when adding a filepublic static void addURL(java.net.URL u) throws java.io.IOException
u
- URL
java.io.IOException
- if something goes wrong when adding a urlpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |