|
Jetty example source code file (jetty.serverdef)
The Jetty jetty.serverdef source code<?xml version="1.0" encoding="UTF-8"?> <tns:ServerRuntime xmlns:tns="http://eclipse.org/jst/server/generic/ServerTypeDefinition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://eclipse.org/jst/server/generic/ServerTypeDefinition ServerTypeDefinitionSchema.xsd " name="Jetty6.x" version="v6.x"> <property id="jettyHome" label="Jetty Home:" type="directory" context="runtime" default="/your_server_root/jetty" /> <property id="jettyConfig" label="Config Files:" type="string" context="server" default="${jettyHome}/etc/jetty.xml"/> <property id="serverAddress" label="Host:" type="string" context="server" default="127.0.0.1" /> <property id="port" label="Port:" type="string" context="server" default="8080"/> <property id="stopPort" label="Stop Port" type="string" context="server" default="8079"/> <property id="deployDir" label="Deploy Directory:" type="string" context="server" default="${jettyHome}/webapps"/> <property id="supportAnnotations" label="Annotation Support:" type="boolean" context="server" default="false"/> <port> <no>${port} <name>Http <protocol>http </port> <module> <type>jst.web <publishDir>${deployDir} <publisherReference>org.eclipse.jst.server.generic.antpublisher </module> <start> <mainClass>org.mortbay.start.Main <workingDirectory>${jettyHome} <programArguments>${jettyConfig} <vmParameters>-Djetty.home=${jettyHome} -Djetty.port=${port} -Djetty.host=${serverAddress} -DSTOP.PORT=${stopPort} -DSTOP.KEY=secret <classpathReference>jetty.start </start> <stop> <mainClass>org.mortbay.start.Main <workingDirectory>${jettyHome} <programArguments>--stop <vmParameters>-Djetty.home="${jettyHome}" -DSTOP.PORT="${stopPort}" -DSTOP.KEY=secret <classpathReference>jetty.shutdown </stop> <publisher id="org.eclipse.jst.server.generic.antpublisher"> <publisherdata> <dataname>build.file <datavalue>/buildfiles/build.xml </publisherdata> <publisherdata> <dataname>target.publish.jst.web <datavalue>deploy.j2ee.web </publisherdata> <publisherdata> <dataname>target.unpublish.jst.web <datavalue>undeploy.j2ee.web </publisherdata> </publisher> <classpath id="jetty.start" > <archive path="${jettyHome}/start.jar" /> </classpath> <classpath id="jetty.shutdown" > <archive path="${jettyHome}/start.jar" /> </classpath> </tns:ServerRuntime> Other Jetty examples (source code examples)Here is a short list of links related to this Jetty jetty.serverdef source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.