| 1 | |
| 2 | |
| 3 | {{{ |
| 4 | # This file controls what file are to be put on classpath or command line. |
| 5 | |
| 6 | # |
| 7 | |
| 8 | # Format is as follows: |
| 9 | |
| 10 | # Each line contains entry for one JAR file. |
| 11 | |
| 12 | # Format of line: |
| 13 | |
| 14 | # |
| 15 | |
| 16 | # SUBJECT [ [!] CONDITION [AND|OR] ]* |
| 17 | |
| 18 | # |
| 19 | |
| 20 | # where SUBJECT: |
| 21 | |
| 22 | # ends with ".class" is the Main class to run. |
| 23 | |
| 24 | # ends with ".xml" is a configuration file for the command line |
| 25 | |
| 26 | # ends with "/" is a directory from which add all jar and zip files from. |
| 27 | |
| 28 | # ends with "/*" is a directory from which add all unconsidered jar and zip files from. |
| 29 | |
| 30 | # Containing = are used to assign system properties. |
| 31 | |
| 32 | # all other subjects are treated as files to be added to the classpath. |
| 33 | |
| 34 | # |
| 35 | |
| 36 | # Subjects may include system properties with $(propertyname) syntax. |
| 37 | |
| 38 | # |
| 39 | |
| 40 | # Files starting with "/" are considered absolute, all others are relative to |
| 41 | |
| 42 | # the home directory. |
| 43 | |
| 44 | # |
| 45 | |
| 46 | # CONDITION is one of: |
| 47 | |
| 48 | # always |
| 49 | |
| 50 | # never |
| 51 | |
| 52 | # available classname # true if class on classpath |
| 53 | |
| 54 | # property name # true of set |
| 55 | |
| 56 | # java OPERATOR version # java version compared to literal |
| 57 | |
| 58 | # nargs OPERATOR number # number of command line args compared to literal |
| 59 | |
| 60 | # OPERATOR := one of "<",">","<=",">=","==","!=" |
| 61 | |
| 62 | # |
| 63 | |
| 64 | # CONTITIONS can be combined with AND OR or !, with AND being the assume |
| 65 | |
| 66 | # operator for a list of CONDITIONS. |
| 67 | |
| 68 | # Classpath operations are evaluated on the fly, so once a class or jar is |
| 69 | |
| 70 | # added to the classpath, subsequent available conditions will see that class. |
| 71 | |
| 72 | # |
| 73 | }}} |
| 74 | |
| 75 | {{{ |
| 76 | |
| 77 | #!text |
| 78 | |
| 79 | $(jetty.class.path) always |
| 80 | |
| 81 | |
| 82 | |
| 83 | org.mortbay.log.LogFactory.noDiscovery=true ! property org.mortbay.log.LogFactory.noDiscovery |
| 84 | |
| 85 | javax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder java > 1.4 |
| 86 | |
| 87 | |
| 88 | |
| 89 | # Try different settings of jetty.home until the jetty.jar is found. |
| 90 | |
| 91 | jetty.home=. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar |
| 92 | |
| 93 | jetty.home=.. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar |
| 94 | |
| 95 | jetty.home=/home/jetty ! exists $(jetty.home)/lib/org.mortbay.jetty.jar |
| 96 | |
| 97 | jetty.home=/C:/jetty ! exists $(jetty.home)/lib/org.mortbay.jetty.jar |
| 98 | |
| 99 | jetty.home=. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar |
| 100 | |
| 101 | |
| 102 | |
| 103 | # The main class to run |
| 104 | |
| 105 | org.mortbay.jetty.Server.class |
| 106 | |
| 107 | # override class with old property name |
| 108 | |
| 109 | $(start.class).class |
| 110 | |
| 111 | # override class with preferred property name |
| 112 | |
| 113 | $(main.class).class |
| 114 | |
| 115 | |
| 116 | |
| 117 | # The default configuration files |
| 118 | |
| 119 | $(jetty.home)/etc/admin.xml nargs == 0 |
| 120 | |
| 121 | $(jetty.home)/etc/jetty.xml nargs == 0 |
| 122 | |
| 123 | |
| 124 | |
| 125 | # Set the jetty classpath |
| 126 | |
| 127 | $(jetty.home)/lib/org.mortbay.jetty.jar java >= 1.4 |
| 128 | |
| 129 | $(jetty.home)/lib/javax.servlet.jar always |
| 130 | |
| 131 | |
| 132 | |
| 133 | # Add JMX jars |
| 134 | |
| 135 | $(jetty.home)/lib/org.mortbay.jmx.jar java >= 1.4 |
| 136 | |
| 137 | |
| 138 | |
| 139 | # Always use xercesImpl from ext if it is present |
| 140 | |
| 141 | $(jetty.home)/ext/xercesImpl.jar ! available org.apache.xerces.jaxp.DocumentBuilderImpl |
| 142 | |
| 143 | |
| 144 | |
| 145 | # Add the XML support jars if needed. |
| 146 | |
| 147 | $(jetty.home)/ext/xmlParserAPIs-2.5.jar ! available org.w3c.dom.DOMError |
| 148 | |
| 149 | $(jetty.home)/ext/xml-apis.jar ! available org.w3c.dom.Document |
| 150 | |
| 151 | |
| 152 | |
| 153 | # Set the classpath for the supporting cast |
| 154 | |
| 155 | $(jetty.home)/ext/ant.jar ! available org.apache.tools.ant.Main |
| 156 | |
| 157 | $(jetty.home)/ext/jasper-runtime.jar ! available org.apache.jasper.Constants |
| 158 | |
| 159 | $(jetty.home)/ext/jasper-compiler.jar ! available org.apache.jasper.JspCompilationContext |
| 160 | |
| 161 | $(jetty.home)/ext/jnet.jar ! available javax.net.SocketFactory |
| 162 | |
| 163 | $(jetty.home)/ext/jsse.jar ! available javax.net.ssl.SSLServerSocket |
| 164 | |
| 165 | $(jetty.home)/ext/jcert.jar ! available javax.security.cert.X509Certificate |
| 166 | |
| 167 | # Add anything in ext we have not yet considered. |
| 168 | |
| 169 | $(jetty.home)/ext/* |
| 170 | |
| 171 | |
| 172 | |
| 173 | # Try some standard locations for anything missing. |
| 174 | |
| 175 | /usr/share/java/ant.jar ! available org.apache.tools.ant.Main |
| 176 | |
| 177 | $(java.home)/lib/tools.jar ! available com.sun.tools.javac.Main |
| 178 | |
| 179 | $(java.home)/../lib/tools.jar ! available com.sun.tools.javac.Main |
| 180 | |
| 181 | |
| 182 | |
| 183 | # Add a resources directory if it is there |
| 184 | |
| 185 | $(jetty.home)/resources/ |
| 186 | |
| 187 | }}} |