Author: ekoneil
Date: Thu Sep  8 14:33:02 2005
New Revision: 279638

URL: http://svn.apache.org/viewcvs?rev=279638&view=rev
Log:
Documentation clarification for the controls-spring sample.  Add text about the 
directories in which to run the commands to build / deploy the sample.

Also change the destination directory for the .war file so it's out of the 
webapp.

BB: self
Test: build.dist


Added:
    beehive/trunk/samples/controls-spring/README.txt
      - copied, changed from r279564, 
beehive/trunk/samples/controls-spring/README.TXT
Removed:
    beehive/trunk/samples/controls-spring/README.TXT
Modified:
    beehive/trunk/samples/controls-spring/web/WEB-INF/src/build.xml

Copied: beehive/trunk/samples/controls-spring/README.txt (from r279564, 
beehive/trunk/samples/controls-spring/README.TXT)
URL: 
http://svn.apache.org/viewcvs/beehive/trunk/samples/controls-spring/README.txt?p2=beehive/trunk/samples/controls-spring/README.txt&p1=beehive/trunk/samples/controls-spring/README.TXT&r1=279564&r2=279638&rev=279638&view=diff
==============================================================================
--- beehive/trunk/samples/controls-spring/README.TXT (original)
+++ beehive/trunk/samples/controls-spring/README.txt Thu Sep  8 14:33:02 2005
@@ -1,21 +1,36 @@
-This sample directory contains examples of integrating Beehive Controls with 
the Spring Framework.  It uses the bean definition, instantiation, and 
configuration services of Spring to use JavaBeans that have been authored as 
Controls.
+Beehive Controls + Spring Framework Sample
+==========================================
 
-DIRECTORIES:
+This sample directory contains examples of integrating Beehive Controls with 
the Spring Framework.  
+It uses the bean definition, instantiation, and configuration services of 
Spring to use JavaBeans 
+that have been authored as Controls.
 
-* external - contains the Spring jar file used by the sample.  This is the 
full Spring jar from the 1.1.5 distribution.  This sample has also been tested 
with the 1.2 Spring JAR.  
+Directories
+===========
 
-* integration - contains the implementation of the ControlFactory SPI 
interface for controls, that will use Spring to instantiate and configure 
Controls.
+* external/ - contains the Spring jar file used by the sample.  This is the 
full Spring jar from 
+the 1.1.5 distribution.  This sample has also been tested with the 1.2 Spring 
JAR.  
 
-* web - sample webapp that uses Spring and Controls together.  The sample 
includes a basic Control type with properties modeling a Person that can nested 
children, two corresponding implementations (AdultImpl/MinorImpl), and provides 
a sample Spring bean definition (application.xml) and web application (web.xml) 
configuration files that show how configure Spring/Controls to be used 
together.  A simple JSP page (familyTree.jsp) demonstrates how the defined 
beans can be instantiated and used.
+* integration/ - contains the implementation of the ControlFactory SPI 
interface for controls, that 
+will use Spring to instantiate and configure Controls.
 
-BUILDING:
+* web/ - sample webapp that uses Spring and Controls together.  The sample 
includes a basic Control type 
+with properties modeling a Person that can nested children, two corresponding 
implementations (AdultImpl/MinorImpl), 
+and provides a sample Spring bean definition (application.xml) and web 
application (web.xml) configuration files 
+that show how configure Spring/Controls to be used together.  A simple JSP 
page (familyTree.jsp) demonstrates 
+how the defined beans can be instantiated and used.
 
-The Spring integration jar can be built using the following commands:
+Building
+========
+
+The Spring integration jar can be built using the following commands 
+from the samples/controls-spring directory:
 
     cd integration
     ant build
 
-The sample webapp can be built and deployed to Tomcat using:
+The sample webapp can be built and deployed to Tomcat using the following
+commands from the samples/controls-spring directory:
 
     cd web/WEB-INF/src
     ant build
@@ -25,3 +40,7 @@
 Once deployed, the demo JSP page can be accessed at:
 
     /springControls/familyTree.jsp
+
+This JSP will show a tree of people that is configured using the 
applicationContext.xml file
+stored in web/WEB-INF.  This tree is generated by walking down the PersonBean 
types that
+are declared in the Spring config file.

Modified: beehive/trunk/samples/controls-spring/web/WEB-INF/src/build.xml
URL: 
http://svn.apache.org/viewcvs/beehive/trunk/samples/controls-spring/web/WEB-INF/src/build.xml?rev=279638&r1=279637&r2=279638&view=diff
==============================================================================
--- beehive/trunk/samples/controls-spring/web/WEB-INF/src/build.xml (original)
+++ beehive/trunk/samples/controls-spring/web/WEB-INF/src/build.xml Thu Sep  8 
14:33:02 2005
@@ -65,7 +65,7 @@
   </target>
 
     <target name="war" description="Build a compressed WAR file that can be 
deployed to an application container">
-        <property name="archive.dir" location="${basedir}/.."/>
+        <property name="archive.dir" location="${basedir}/../../.."/>
 
         <war destfile="${archive.dir}/${context.path}.war" 
webxml="${webapp.dir}/WEB-INF/web.xml">
             <fileset dir="${webapp.dir}">


Reply via email to