Package weka.core
Class ClassloaderUtil
- java.lang.Object
-
- weka.core.ClassloaderUtil
-
- All Implemented Interfaces:
RevisionHandler
public class ClassloaderUtil extends Object implements RevisionHandler
Utility class that can add jar files to the classpath dynamically.- Version:
- $Revision$
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}org
-
-
Constructor Summary
Constructors Constructor Description ClassloaderUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddFile(File f)Add file to CLASSPATHstatic voidaddFile(String s)Add file to CLASSPATHstatic voidaddURL(URL u)Add URL to CLASSPATHStringgetRevision()Returns the revision string.
-
-
-
Method Detail
-
addFile
public static void addFile(String s) throws IOException
Add file to CLASSPATH- Parameters:
s- File name- Throws:
IOException- if something goes wrong when adding a file
-
addFile
public static void addFile(File f) throws IOException
Add file to CLASSPATH- Parameters:
f- File object- Throws:
IOException- if something goes wrong when adding a file
-
addURL
public static void addURL(URL u) throws IOException
Add URL to CLASSPATH- Parameters:
u- URL- Throws:
IOException- if something goes wrong when adding a url
-
getRevision
public String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
-