CVS: TapestryBook/examples-library .cvsignore,NONE,1.1 build.xml,NONE,1.1

Howard Lewis Ship <[email protected]> Sun, 13 Jul 2003 15:42:17 -0700
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/examples-library
In directory sc8-pr-cvs1:/tmp/cvs-serv3466/examples-library

Added Files:
	.cvsignore build.xml 
Log Message:
Move the examples and bannerads libraries into a new examples-library subproject.

--- NEW FILE: .cvsignore ---
target

--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/07/13 22:42:15 hship Exp $ -->
<project name="Tapestry In Action -- Library" default="jar">

	<!-- Customize this to match the desired name. -->
	
	<property name="project.name" value="examples-library"/>
	
	<!-- 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="jar.file" value="${target.dir}/${project.name}.jar"/>
	
	<!-- 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="ext/*.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="jar" depends="compile"
		description="Compile all classes and build the JAR.">
		<jar destfile="${jar.file}">
	 		
	 		<!-- Pick up compiled classes.  These go into WEB-INF/classes.  -->
	 		
			<fileset dir="${classes.dir}"/>
						
			<!-- Pick up properties files and such from the Java source directory. -->
			
			<fileset dir="${src.dir}">
				<exclude name="**/*.java"/>
				<exclude name="**/package.html"/>
			</fileset>
			
		</jar>
	</target>
	
	<target name="install" depends="jar"
		description="Deploy the JAR into lib directory.">
				
		<property name="install.dir" location="../lib"/>
		<mkdir dir="${install.dir}"/>
		<copy file="${jar.file}" todir="${install.dir}"/>
	</target>
</project>



-------------------------------------------------------
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