CVS: TapestryBook/examples build.properties,NONE,1.1 .cvsignore,NONE,1.1 build.xml,1.1,1.2

Howard Lewis Ship <[email protected]> Sun, 22 Jun 2003 09:42:10 -0700
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv27669/examples

Modified Files:
	build.xml 
Added Files:
	build.properties .cvsignore 
Log Message:
Check in lots of updates, due to revisions and the new chapter 08.

--- NEW FILE: build.properties ---
tapestry.dist.dir=c:/workspace/jakarta-tapestry/
tomcat.dir = C:/Program Files/Apache Group/Tomcat 4.1

--- NEW FILE: .cvsignore ---
examples.war

Index: build.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build.xml	20 Feb 2003 15:13:53 -0000	1.1
--- build.xml	22 Jun 2003 16:42:08 -0000	1.2
***************
*** 2,63 ****
  <!-- $Id$ -->
  <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>
--- 2,57 ----
  <!-- $Id$ -->
  <project name="Examples" default="war">
! 
  	<property name="war.file" value="examples.war"/>
+ 	<property file="build.properties"/>
+ 	
  	<path id="project.class.path">
! 		<fileset dir="${tapestry.dist.dir}/lib">
  			<include name="*.jar"/>
+ 			<include name="**/*.jar"/>
  		</fileset>
+ 		<pathelement location="${tomcat.dir}/common/lib/servlet.jar"/>
  	</path>
+ 	
  	<target name="clean" description="Deletes derived files.">
! 		<delete dir="classes" quiet="true"/>
  		<delete file="${war.file}" quiet="true"/>
  	</target>
+ 	
  	<target name="compile" description="Compile Java classes.">
! 		<mkdir dir="classes"/>
! 		<javac srcdir="src" destdir="classes" debug="on"
  			classpathref="project.class.path"/>
  	</target>
+ 	
  	<target name="war" depends="compile"
  		description="Compile all classes and build the installed WAR.">
! 		<war warfile="${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"/>
! 			<classes dir="src">
  				<exclude name="**/*.java"/>
  				<exclude name="**/package.html"/>
  			</classes>
! 			<classes dir="conf"/>
! 			<lib dir="${tapestry.dist.dir}/lib">
! 			  <include name="tapestry*.jar"/>
! 			</lib>
! 			<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.">
! 		<copy file="${war.file}" todir="${tomcat.dir}/webapps"/>
! 		<delete dir="${tomcat.dir}/webapps/examples" quiet="yes"/>
  	</target>
  </project>



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php