Package org.apache.uima.bootstrap
Class UimaBootstrap
- java.lang.Object
-
- org.apache.uima.bootstrap.UimaBootstrap
-
public class UimaBootstrap extends java.lang.Object
Run 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.FilenameFilter
jarFilter
private static boolean
suppressClassPathDisplay
-
Constructor Summary
Constructors Constructor Description UimaBootstrap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
add(java.util.List<java.net.URL> urls, java.io.File cp)
private static void
addUrlsFromPath(java.lang.String p, java.util.List<java.net.URL> urls)
private static java.lang.ClassLoader
addUrlsToSystemLoader(java.net.URL[] urls)
private static java.net.URL[]
getUrls()
static void
main(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.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.net.MalformedURLException
java.io.IOException
java.net.URISyntaxException
-
getUrls
private static java.net.URL[] getUrls() throws java.net.MalformedURLException, java.io.IOException, java.net.URISyntaxException
- Throws:
java.net.MalformedURLException
java.io.IOException
java.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.MalformedURLException
java.io.IOException
java.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
-
-