org.mortbay.start.start.config Maven / Gradle / Ivy
The newest version!
# This file controls what file are to be put on classpath or command line.
#
# Format is as follows:
# Each line contains entry for one JAR file.
# Format of line:
#
# 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.
#
# Files starting with "/" are considered absolute, all others are relative to
# the home directory.
#
# CONDITION is one of:
# always
# never
# available classname
# java OPERATOR version
# nargs OPERATOR number
# 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.
#
$(jetty.class.path) always
# Try different settings of jetty.home until the jetty.jar is found.
jetty.home=.. ! exists $(jetty.home)/lib/jetty/org.mortbay.jetty.jar
jetty.home=. ! exists $(jetty.home)/lib/jetty/org.mortbay.jetty.jar
#jetty.home=/C:/jetty ! exists $(jetty.home)/lib/jetty/org.mortbay.jetty.jar
#jetty.home=. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar
#jetty.home=. ! exists $(jetty.home)/lib/jetty/org.mortbay.jetty.jar
#jetty.home=/home/jetty ! exists $(jetty.home)/lib/jetty/org.mortbay.jetty.jar
# The main class to run
org.mortbay.jetty.Server.class
$(start.class).class
# The default configuration files
$(jetty.home)/documents/admin.xml nargs == 0
$(jetty.home)/documents/jetty.xml nargs == 0
# Add extra resources directory if it is there.
$(jetty.home)/lib always
$(jetty.home)/extra/resources/ always
# Set the jetty classpath
$(jetty.home)/lib/jetty/org.mortbay.jetty.jar java >= 1.4
$(jetty.home)/extra/lib/org.mortbay.jetty-jdk1.2.jar java < 1.4 AND java >= 1.2
$(jetty.home)/lib/servlet.jar always
# Add JMX jars
#$(jetty.home)/lib/org.mortbay.jmx.jar java >= 1.4
#$(jetty.home)/extra/lib/org.mortbay.jmx-jdk1.2.jar java < 1.4 AND java >= 1.2
# Always use xercesImpl from ext if it is present
$(jetty.home)/lib/xercesImpl.jar ! available org.apache.xerces.jaxp.DocumentBuilderImpl.class
# Add the XML support jars if needed.
$(jetty.home)/lib/xmlParserAPIs.jar ! available org.w3c.dom.DOMError
$(jetty.home)/lib/xml-apis.jar always
# Set the classpath for the supporting cast
$(jetty.home)/lib/jetty/ant.jar ! available org.apache.tools.ant.Main
#$(jetty.home)/ext/jmxri.jar ! available javax.management.MBeanServer
#$(jetty.home)/ext/jmxtools.jar ! available com.sun.jdmk.comm.CommunicatorServer
$(jetty.home)/lib/jetty/jasper-runtime.jar ! available org.apache.jasper.Constants
$(jetty.home)/lib/jetty/jasper-compiler.jar ! available org.apache.jasper.JspCompilationContext
#$(jetty.home)/ext/jnet.jar ! available javax.net.SocketFactory
#$(jetty.home)/ext/jsse.jar ! available javax.net.ssl.SSLServerSocket
$(jetty.home)/lib/jcert.jar ! available javax.security.cert.X509Certificate
# Add anything in ext we have not yet considered.
#$(jetty.home)/ext/*
# And anything in extra lib
#$(jetty.home)/extra/lib/*
# And anything in extra ext
#$(jetty.home)/extra/ext/*
# Try some standard locations for anything missing.
/usr/share/java/jmxri.jar ! available javax.management.MBeanServer
/usr/share/java/jmxtools.jar ! available com.sun.jdmk.comm.CommunicatorServer
$(java.home)/lib/tools.jar ! available com.sun.tools.javac.Main
$(java.home)/../lib/tools.jar ! available com.sun.tools.javac.Main