org.mortbay.start
Class Main
java.lang.Object
|
+--org.mortbay.start.Main
- public class Main
- extends java.lang.Object
Main start class.
This class is intended to be the main class listed in the MANIFEST.MF of
the start.jar archive. It allows an application to be started with the
command "java -jar start.jar".
The behaviour of Main is controlled by the "org/mortbay/start/start.config"
file obtained as a resource. The format of each line is this file
is:
SUBJECT [ [!] CONDITION [AND|OR] ]*
where SUBJECT:
ends with ".class" is the Main class to run.
ends with ".xml" is a configuration file for the command line
ends with "/" is a directory from which add all jar and zip files from.
ends with "/*" is a directory from which add all unconsidered jar and zip files from.
Containing = are used to assign system properties.
all other subjects are treated as files to be added to the classpath.
Subjects may include system properties with $(propertyname) syntax.
File subjects starting with "/" are considered absolute, all others are relative to
the home directory.
CONDITION is one of:
always
never
available package.class
java OPERATOR n.n
nargs OPERATOR n
OPERATOR := one of "<",">","<=",">=","==","!="
CONTITIONS can be combined with AND OR or !, with AND being the assume
operator for a list of CONDITIONS.
Classpath operations are evaluated on the fly, so once a class or jar is
added to the classpath, subsequent available conditions will see that class.
- Version:
- $Revision: 1.6 $
- Author:
- Jan Hlavaty (hlavac@code.cz), Greg Wilkins
Constructor Summary |
Main()
|
Method Summary |
static void |
invokeMain(java.lang.ClassLoader classloader,
java.lang.String classname,
java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
|
void |
run(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main()
main
public static void main(java.lang.String[] args)
invokeMain
public static void invokeMain(java.lang.ClassLoader classloader,
java.lang.String classname,
java.lang.String[] args)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException,
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
run
public void run(java.lang.String[] args)
Copyright ? 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.