CVS: TapestryBook/hangman2 .cvsignore,NONE,1.1 build.xml,NONE,1.1 jetty.xml,1.1,NONE
Howard Lewis Ship <[email protected]> Sat, 12 Jul 2003 08:51:54 -0700
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/hangman2
In directory sc8-pr-cvs1:/tmp/cvs-serv24761/hangman2
Added Files:
.cvsignore build.xml
Removed Files:
jetty.xml
Log Message:
Reorganize more examples for common build file.
--- NEW FILE: .cvsignore ---
target
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/07/12 15:51:52 hship Exp $ -->
<project name="Tapestry In Action -- Hangman, version 2" default="war">
<!-- Customize this to match the desired name. -->
<property name="project.name" value="hangman2"/>
<!-- Find out where other project's distributions are. -->
<property file="../common/build.properties"/>
<!-- All derived files end up somewhere under target. -->
<property name="target.dir" value="target"/>
<property name="src.dir" value="src/java"/>
<property name="context.dir" value="src/context"/>
<property name="conf.dir" value="src/conf"/>
<property name="classes.dir" value="${target.dir}/classes"/>
<property name="war.file" value="${target.dir}/${project.name}.war"/>
<!-- We expect Tomcat to be available. -->
<property name="servlet.jar" value="${tomcat.dir}/common/lib/servlet.jar"/>
<path id="project.class.path">
<fileset dir="${tapestry.dist.dir}/lib">
<!-- The Tapestry JARs -->
<include name="*.jar"/>
<!-- Dependencies of Tapestry. -->
<include name="**/*.jar"/>
</fileset>
<pathelement location="${servlet.jar}"/>
</path>
<target name="clean" description="Deletes derived files.">
<delete dir="${target.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="war" depends="compile"
description="Compile all classes and build the WAR.">
<war warfile="${war.file}" webxml="${context.dir}/WEB-INF/web.xml">
<!-- Copy everything in the context directory to the root of the WAR, including
everything in WEB-INF, except for the web.xml, which the <war> task
strangely demands be seperate. -->
<fileset dir="${context.dir}">
<exclude name="WEB-INF/web.xml"/>
</fileset>
<!-- Pick up compiled classes. These go into WEB-INF/classes. -->
<classes dir="${classes.dir}"/>
<!-- Pick up properties files and such from the Java source directory. -->
<classes dir="${src.dir}">
<exclude name="**/*.java"/>
<exclude name="**/package.html"/>
</classes>
<!-- There isn't a way to flatten, so we need to do this XXX times. -->
<lib dir="${tapestry.dist.dir}/lib">
<include name="*.jar"/>
</lib>
<!-- Pick up the main Tapestry dependencies. -->
<lib dir="${tapestry.dist.dir}/lib/ext">
<include name="*.jar"/>
</lib>
<!-- lib dir="${tapestry.dist.dir}/lib/runtime">
<include name="*.jar"/>
</lib-->
</war>
</target>
<target name="deploy" depends="war"
description="Deploy the WAR into Tomcat.">
<!-- You can deploy elsewhere by setting deploy.dir in the build.properties file. -->
<property name="deploy.dir" value="${tomcat.dir}/webapps"/>
<copy file="${war.file}" todir="${deploy.dir}"/>
</target>
</project>
--- jetty.xml DELETED ---
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1