CVS: TapestryBook/petstore .cvsignore,NONE,1.1 jetty.xml,NONE,1.1 petshop.sql,NONE,1.1 build.xml,NONE,1.1
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/petstore
In directory sc8-pr-cvs1:/tmp/cvs-serv19059/petstore
Added Files:
.cvsignore jetty.xml petshop.sql build.xml
Log Message:
Add start of petstore application.
--- NEW FILE: .cvsignore ---
classes
--- 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>/petstore</Arg>
<Arg>context</Arg>
<Set name="DefaultsDescriptor">../common/webdefault.xml</Set>
</Call>
</Configure>
--- NEW FILE: petshop.sql ---
// Scratch pad for DDL SQL
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/02/07 16:44:58 hship Exp $ -->
<project name="Tapestry PetStore" default="compile">
<property name="root.dir" value=".."/>
<property file="${root.dir}/common/common.properties"/>
<property file="${common.dir}/build.properties"/>
<path id="project.class.path">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<path id="hibernate-tools.class.path">
<path refid="project.class.path"/>
<pathelement location="${classes.dir}"/>
<fileset dir="${hibernate.dir}">
<include name="*.jar"/>
<include name="**/*.jar"/>
</fileset>
</path>
<fileset id="hibernate.mapping.files" dir="${src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
<target name="clean" description="Deletes derived files.">
<delete dir="${classes.dir}" 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="schema-export"
description="Run SchemaExport."
depends="compile">
<pathconvert refid="hibernate.mapping.files" property="hibernate.mappings" pathsep=" "/>
<java classname="cirrus.hibernate.tools.SchemaExport" fork="true">
<arg line="${hibernate.mappings} --format"/>
<jvmarg value="-Dhibernate.dialect=cirrus.hibernate.sql.MckoiDialect"/>
<jvmarg value="-Dhibernate.connection.driver_class=com.mckoi.JDBCDriver"/>
<jvmarg value="-Dhibernate.connection.url=jdbc:mckoi://localhost/"/>
<jvmarg value="-Dhibernate.connection.username=admin"/>
<jvmarg value="-Dhibernate.connection.password=secret"/>
<classpath refid="hibernate-tools.class.path" />
</java>
</target>
</project>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com