You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2001/11/10 12:38:23 UTC

cvs commit: jakarta-struts/contrib/scaffold/WEB-INF web.xml status.txt Document.txt build.xml

husted      01/11/10 03:38:23

  Added:       contrib/scaffold/WEB-INF web.xml status.txt Document.txt
                        build.xml
  Log:
  Add "scaffold" package to contrib folder. Scaffold is a collection of
  utility classes designed to be useful in more than one application.
  
  Revision  Changes    Path
  1.1                  jakarta-struts/contrib/scaffold/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  
  <web-app>
  
  
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
      <init-param>
        <param-name>application</param-name>
        <param-value>ApplicationResources</param-value>
      </init-param>
      <init-param>
        <param-name>config</param-name>
        <param-value>/WEB-INF/conf/struts-config.xml</param-value>
      </init-param>
      <init-param>
        <param-name>debug</param-name>
        <param-value>2</param-value>
      </init-param>
      <init-param>
        <param-name>detail</param-name>
        <param-value>2</param-value>
      </init-param>
      <init-param>
        <param-name>validate</param-name>
        <param-value>true</param-value>
      </init-param>
      <load-on-startup>2</load-on-startup>
    </servlet>
  
  
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
      <servlet-name>action</servlet-name>
      <url-pattern>/do/*</url-pattern>
    </servlet-mapping>
  
  
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
  
    <!-- Struts Tag Library Descriptors -->
    <taglib>
      <taglib-uri>/tags/struts-bean</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
    </taglib>
  
    <taglib>
      <taglib-uri>/tags/struts-html</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
    </taglib>
  
    <taglib>
      <taglib-uri>/tags/struts-logic</taglib-uri>
      <taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
    </taglib>
  
  </web-app>
  
  
  
  1.1                  jakarta-struts/contrib/scaffold/WEB-INF/status.txt
  
  Index: status.txt
  ===================================================================
  [SCAFFOLD]
  
  
  TODO 
  - i18n exception messages.
  - Alternative configurations for connection pool.
  
  StatementUtils
   * :TODO: Refactor executeUpdate methods like getCollection methods.
  
  
  09-Nov-2001
  -----------
  + RequestSetUtil: Add coversion of DECIMAL to Double.
  
  
  08-Nov-2001
  -----------
  + http: Add ContinueAction.
  + http: Fix RelayAction. Change HelperAction to use ; for seperator. Will skip empty entries.
  
  
  07-Nov-2001
  -----------
  + Model: Add ModelAbstractException to use with unimplemented methods.
  
  
  06-Nov-2001
  -----------
  + ResultSetUtils: getCollection will now throw SQLException if either parameter null.
  + StatementUtils: Refactor getCollection to accept an array of replacement parameters.
  + http/MasterDetailHelper: Uses two helpers to provide master/detail layout.
  + http/HelperAction, ModelHelper: Refactor to accept multiple helpers and pass in array.
  + ConvertUtils: Add several methods for number and date handling.
  
  
  05-Nov-2001
  -----------
  + Rename ModelResultHelper as ModelHelper. Better design.
  
  
  27-Oct-2001
  -----------
  + sql/StatementUtils: move from Artimus. update for new connection parameter.
  + sql/ConnectionPool: update to accept resource name as parameter. 
  + text/ConvertUtils: initial version.
  + http/RelayAction: initial version -- doesn't seem to work.
  
  
  25-Oct-2001
  -----------
  + text/Merge: initial version. adapt from Polls.
  + http/HttpClient,SocketUtil: move from Polls.
  
  
  24-Oct-2001
  -----------
  + QueryUtils,QueryBeanBase,QueryResultBase,LuceneUtils: refactor to use QME.
  + QueryMapException: initial version.
  + QueryResult: Add TOKEN constant.
  + query/*: Move messages from Bean to Result.
  + lang/Tokens: initial version.
  + build.xml: Add WAR to deployment target.
  
  
  23-Oct-2001
  -----------
  + Refactor ChainedException into .lang, and .util/Query* into .query package.
  + ChainedException: Add isCause and getCauseString methods.
  
  
  21-Oct-2001
  -----------
  + Remove ; replaced by Query* suite.
  + QueryUtils: initial version.
  
  
  20-Oct-2001
  -----------
  + Query*: Enhance to replace functionality of AccessBean suite.
  
  
  19-Oct-2001
  -----------
  + QueryException,QueryBean,QueryBeanBase,QueryResult,QueryResultBean: Initial version. 
  
  
  18-Oct-2001
  -----------
  + AccessAction: intial version; Access class refactored to use HelperAction.
  + HelperAction: initial version.
  
  13-Oct-2001
  -----------
  + initial version of app, based on working package
  
  
  
  1.1                  jakarta-struts/contrib/scaffold/WEB-INF/Document.txt
  
  Index: Document.txt
  ===================================================================
  <p>The struts-blank application in the distribution provides 
  the appropriate file structure. You can rename this and then 
  autodeploy it on your server. </p>
  <p>If your source is below a directory named "WEB-INF/src", here's a simple build.xml that you can put in your 
  WEB-INF</p>
  <p><pre>
  &lt;project name="myProject" basedir="." default="compile"&gt;
  &lt;property name="project.version" value="1.0"/&gt;
  
      &lt;!-- Build working classpath --&gt;
      &lt;path id="project.class.path"&gt;
          &lt;pathelement path ="lib/struts.jar"/&gt;
          &lt;pathelement path ="classes"/&gt;
          &lt;pathelement path ="${classpath}"/&gt;
      &lt;/path&gt;
  
      &lt;target name="prepare"&gt;
          &lt;tstamp/&gt;
      &lt;/target&gt;
  
      &lt;target name="compile" depends="prepare"&gt;
          &lt;!-- Remove jikes if you must use javac instead --&gt;
          &lt;property name="build.compiler" value="jikes"/&gt;
          &lt;javac srcdir="src" destdir="classes"&gt;
              &lt;classpath refid="project.class.path"/&gt;
          &lt;/javac&gt;     
      &lt;/target&gt;
  
  &lt;/project&gt;
  </pre>
  </p>
  <p>I generally WAR the applications myself, with</p>
  <p><pre>jar cvf myProject.war *</pre></p>
  <p>from the root directory of the applicaton</p>
  <p>The Ant WAR tag has some convenience options for 
  building 
  <p>For more on build files, visit the jGuru Ant forum. </p>
  <p>HTH - Ted</p>
  
  
  
  1.1                  jakarta-struts/contrib/scaffold/WEB-INF/build.xml
  
  Index: build.xml
  ===================================================================
  <!-- 
  @author Ted Husted
  @version $Revision: 1.1 $ $Date: 2001/11/10 11:38:23 $
  -->
  <project name="scaffold" basedir="." default="project.deploy">
  <property name="dist.name" value="scaffold"/>
  <property name="project.title" value="Scaffold"/>
  <property name="project.version" value="1.0"/>
  
  
      <!-- Build working classpath -->
      <path id="project.class.path">
          <pathelement path ="lib/commons-digester.jar"/>
          <pathelement path ="lib/lucene.jar"/>
          <pathelement path ="lib/poolman.jar"/>
          <pathelement path ="lib/struts-101.jar"/>
          <pathelement path ="classes"/>
          <pathelement path ="${classpath}"/>
      </path>
  
      <target name="prepare">
          <tstamp/>
      </target>
  
      <target name="conf">
          <!-- Copy any configuration files -->
          <copy todir="classes">
              <fileset dir="src/conf"/>
          </copy>
      </target>
  
      <target name="compile" depends="prepare,conf">
          <!-- Remove jikes if you must use javac instead -->
          <property name="build.compiler" value="jikes"/>
          <javac srcdir="src" destdir="classes">
              <classpath refid="project.class.path"/>
          </javac>     
      </target>
  
      <!-- Remove classes directory for clean build -->
      <target name="clean" 
        description="Prepare for clean build">
        <delete dir="classes"/>
        <mkdir    dir="classes"/>
      </target>
  
      <!-- Build Javadoc documentation -->
      <target name="javadoc"
       description="Generate JavaDoc API docs">
          
          <delete dir="./doc/api"/>
          <mkdir dir="./doc/api"/>
          <javadoc sourcepath="src/java"
              destdir="./doc/api"
              classpath="lib/commons-digester.jar:lib/struts-101.jar:lib/poolman.jar:lib/lucene.jar:"
              packagenames="org.apache.scaffold.*"
              author="true"
              private="true"
              version="true"
              windowtitle="Scaffold API Documentation"
              doctitle="&lt;h1&gt;${project.title} Documentation (Version ${project.version})&lt;/h1&gt;"
              bottom="Copyright &#169; 2001 - Apache Software Foundation"/>
      </target>
  
  
      <!-- Build binary distribution -->
      <target name="dist" depends="compile"
          description="Create binary distribution">
        <delete dir="./dist"/>
        <mkdir    dir="./dist"/>
        <copy     file="../LICENSE"
                  todir="./dist"/>
        <jar    jarfile="./dist/${dist.name}.jar"
                basedir="./classes"
                manifest="../META-INF/MANIFEST.MF"/>
        <war    warfile="./dist/${dist.name}.war"
                webxml="../WEB-INF/web.xml"
                manifest="../META-INF/MANIFEST.MF"
                basedir="../"
                excludes="WEB-INF/dist,WEB-INF/web.xml,META-INF/MANIFEST.MF"/>
      </target>
  
  
      <!-- Build entire project -->
      <target name="project" depends="clean,prepare,compile,javadoc,dist"/>
  
  
      <!-- Copy to known local projects -->
      <target name="project.deploy" depends="project">
        <copy     file="./dist/${dist.name}.jar"
                  todir="../../artimus/WEB-INF/lib"/>
  
      </target>
  
  </project>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>