CVS: TapestryBook/hangman1 build.xml,NONE,1.1 .cvsignore,NONE,1.1 jetty.xml,1.2,1.3

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/hangman1
In directory sc8-pr-cvs1:/tmp/cvs-serv16601/hangman1

Modified Files:
	jetty.xml 
Added Files:
	build.xml .cvsignore 
Log Message:
Update DOCTYPEs for specifications.

--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<!-- $Id: build.xml,v 1.1 2003/02/07 16:39:03 hship Exp $ -->

<project name="Tapestry Shell Project" default="war">

	<property name="root.dir" value=".."/>
  
	<property file="${root.dir}/common/common.properties"/>
  
    <property file="${common.dir}/build.properties"/>
 
  
  	<!-- XXX change to name. -->
  	
  	<property name="war.file" value="hangman1.war"/>
  
  	<path id="project.class.path">
  		<fileset dir="${lib.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.file}" webxml="context/WEB-INF/web.xml">

      <fileset dir="context">
        <exclude name="WEB-INF/web.xml"/>
      </fileset>

      <classes dir="${classes.dir}"/>
      <classes dir="${src.dir}">
        <exclude name="**/*.java"/>
        <exclude name="**/package.html"/>
      </classes>
    </war>
  </target>

  <target name="run" description="Run the Tutorial 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: .cvsignore ---
classes
hangman1.war

Index: jetty.xml
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/hangman1/jetty.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** jetty.xml	19 Jan 2003 13:26:04 -0000	1.2
--- jetty.xml	7 Feb 2003 16:39:02 -0000	1.3
***************
*** 1,45 ****
! <?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>/hangman1</Arg> 
!   	<Arg>context</Arg> 
!     <Set name="DefaultsDescriptor">../common/webdefault.xml</Set> 
!   </Call>  
! 
  </Configure>
--- 1,37 ----
! <?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>/hangman1</Arg>
! 		<Arg>context</Arg>
! 		<Set name="DefaultsDescriptor">../common/webdefault.xml</Set>
! 	</Call>
  </Configure>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.