Package org.apache.uima.bootstrap
Class UimaBootstrap
- java.lang.Object
-
- org.apache.uima.bootstrap.UimaBootstrap
-
public class UimaBootstrap extends java.lang.ObjectRun an arbitrary "main" method in a class, after adding classes to the classpath that are specified as libraries, or as jar files Uses arguments: -Dorg.apache.uima.jarpath=XXXX where XXXX is a string of file paths to directories connected using File.pathSeparator; each directory's contained JARs will be added to the class path. If the directory has no Jars, then it is put in the class path directly. The paths can also contain jar files. The paths added are added in an arbitrary order. The normal parent-first delegation is done The first argument is taken to be the name of the class to launch; that is passed the rest of the arguments.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.io.FilenameFilterjarFilterprivate static booleansuppressClassPathDisplay
-
Constructor Summary
Constructors Constructor Description UimaBootstrap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidadd(java.util.List<java.net.URL> urls, java.io.File cp)private static voidaddUrlsFromPath(java.lang.String p, java.util.List<java.net.URL> urls)private static java.lang.ClassLoaderaddUrlsToSystemLoader(java.net.URL[] urls)private static java.net.URL[]getUrls()static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.net.MalformedURLException, java.io.IOException, java.net.URISyntaxException- Throws:
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.net.MalformedURLExceptionjava.io.IOExceptionjava.net.URISyntaxException
-
getUrls
private static java.net.URL[] getUrls() throws java.net.MalformedURLException, java.io.IOException, java.net.URISyntaxException- Throws:
java.net.MalformedURLExceptionjava.io.IOExceptionjava.net.URISyntaxException
-
addUrlsFromPath
private static void addUrlsFromPath(java.lang.String p, java.util.List<java.net.URL> urls) throws java.net.MalformedURLException, java.io.IOException, java.net.URISyntaxException- Throws:
java.net.MalformedURLExceptionjava.io.IOExceptionjava.net.URISyntaxException
-
add
private static void add(java.util.List<java.net.URL> urls, java.io.File cp) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
addUrlsToSystemLoader
private static java.lang.ClassLoader addUrlsToSystemLoader(java.net.URL[] urls) throws java.io.IOException- Throws:
java.io.IOException
-
-