CVS: TapestryBook/examples build.xml,NONE,1.1 jetty.xml,NONE,1.1
Howard Lewis Ship <[email protected]> Thu, 20 Feb 2003 07:13:56 -0800
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv16370/examples
Added Files:
build.xml jetty.xml
Log Message:
Checkpoint.
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/02/20 15:13:53 hship Exp $ -->
<project name="Examples" default="war">
<property name="root.dir" value=".."/>
<property file="${root.dir}/common/common.properties"/>
<property file="${common.dir}/build.properties"/>
<property name="war.file" value="examples.war"/>
<path id="project.class.path">
<fileset dir="${lib.war.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean" description="Deletes derived files.">
<delete dir="${classes.dir}" quiet="true"/>
<delete file="${war.file}" quiet="true"/>
</target>
<target name="compile" description="Compile Java classes.">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
classpathref="project.class.path"/>
</target>
<target name="war" depends="compile"
description="Compile all classes and build the installed WAR.">
<war warfile="${war.dir}/${war.file}" webxml="context/WEB-INF/web.xml">
<fileset dir="context">
<exclude name="WEB-INF/web.xml"/>
<exclude name="**/Thumbs.db"/>
</fileset>
<classes dir="${classes.dir}"/>
<classes dir="${src.dir}">
<exclude name="**/*.java"/>
<exclude name="**/package.html"/>
</classes>
<lib dir="${lib.war.dir}"/>
</war>
</target>
<target name="run" description="Run the Example application."
depends="compile">
<java classname="org.mortbay.jetty.Server" fork="true">
<classpath>
<!-- Favor files in src over copies in classes -->
<pathelement location="${src.dir}"/>
<pathelement location="${root.dir}/config"/>
<path refid="project.class.path"/>
<pathelement location="${lib.ext.dir}/${jetty.jar}"/>
<pathelement location="${lib.ext.dir}/${log4j.jar}"/>
<pathelement location="${classes.dir}"/>
</classpath>
<arg value="jetty.xml"/>
<!-- Enable debugging on port 20150 -->
<jvmarg line="-showversion -Xdebug -Xnoagent"/>
<jvmarg
line="-Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=20150"
/>
<sysproperty key="java.compiler" value="NONE"/>
<sysproperty key="net.sf.tapestry.disable-caching" value="true"/>
<sysproperty key="net.sf.tapestry.enable-reset-service" value="true"
/>
<sysproperty key="org.mortbay.util.FileResource.checkAliases"
value="false"/>
</java>
</target>
</project>
--- NEW FILE: jetty.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- jetty.xml,v 1.1 2002/07/08 21:46:10 hship Exp -->
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN"
"http://jetty.mortbay.org/configure_1_2.dtd">
<Configure class="org.mortbay.jetty.Server">
<Call name="instance" class="org.mortbay.util.Log">
<Call name="disableLog"/>
<Call name="add">
<Arg>
<New class="org.mortbay.util.OutputStreamLogSink">
<Call name="start"/>
</New>
</Arg>
</Call>
</Call>
<Call name="addListener">
<Arg>
<New class="org.mortbay.http.SocketListener">
<Set name="Port">8080</Set>
<Set name="MinThreads">1</Set>
<Set name="MaxThreads">10</Set>
<Set name="MaxIdleTimeMs">30000</Set>
<Set name="MaxReadTimeMs">10000</Set>
<Set name="MaxStopTimeMs">5000</Set>
<Set name="LowResourcePersistTimeMs">2000</Set>
<Set name="confidentialPort">8443</Set>
</New>
</Arg>
</Call>
<!-- By moving web.xml into WEB-INF, the context directory ends up with the
approximate format of an exploded WAR. -->
<Call name="addWebApplication">
<Arg>/examples</Arg>
<Arg>context</Arg>
<Set name="DefaultsDescriptor">../common/webdefault.xml</Set>
</Call>
</Configure>
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge