alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Jetty example source code file (start.config)

This example Jetty source code file (start.config) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Jetty tags/keywords

and, and, condition, each, files, format, look, look, operator, operator, or, subject, the, the

The Jetty start.config source code

# 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 to add all jar and zip files. 
#   ends with "/*" is a directory from which to add all unconsidered jar and zip files.
#   ends with "/**" is a directory from which to recursively add all unconsidered jar and zip files.
#   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        # true if class on classpath
#   property name              # true of set
#   java OPERATOR version      # java version compared to literal
#   nargs OPERATOR number      # number of command line args compared to literal
#   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
$(jetty.lib)/**                                  exists $(jetty.lib)


jetty.home=/usr/share/jetty6                     always 

# The main class to run
org.mortbay.xml.XmlConfiguration.class
$(start.class).class

# The default configuration files
$(jetty.home)/etc/jetty.xml                      nargs == 0

# Set the jetty classpath
/usr/share/java/jetty6-servlet-2.5-api.jar       always
/usr/share/java/jetty6-core/jetty6-util.jar      always
/usr/share/java/jetty6-core/jetty6.jar           always
/usr/share/java/jetty6-plus/jetty6-html.jar      always

# Look for Jetty's build of glassfish
/usr/share/java/jetty6-jsp-2.1/jsp-api-2.1.jar   ! available javax.servlet.jsp.JspPage
/usr/share/java/jetty6-jsp-2.1/jsp-2.1.jar       ! available org.apache.jasper.servlet.JspServlet
/usr/share/java/ant.jar                          ! available org.apache.tools.ant.Main

# Look for Jasper JSP
/usr/share/java/tomcat6-jsp-2.1-api.jar          ! available javax.servlet.jsp.JspPage
/usr/share/java/tomcat6/jasper.jar               ! available org.apache.jasper.servlet.JspServlet
/usr/share/tomcat6/bin/tomcat-juli.jar           ! available org.apache.juli.logging.LogFactory
/usr/share/java/tomcat6/el-api.jar               ! available javax.el.ExpressionFactory
/usr/share/java/tomcat6/jasper-el.jar            ! available org.apache.el.ExpressionFactoryImpl

# Loog for the eclipse compiler
/usr/share/java/ecj.jar                          ! available org.eclipse.jdt.core.JDTCompilerAdapter
/usr/share/java/jdtcore.jar                      ! available org.eclipse.jdt.core.JavaCore

# Add a resources directory if it is there
$(jetty.home)/resources/

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty start.config source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.