Hi,

Your not the only one:-)
After you have built Cocoon as Chris suggested you can look over this
attached build.xml.  I keep it parallel to cocoon-2.1 (i.e. cocoon-2.1/..).
Look it over; It's a work in progress.  I intended to use the optional ant
interactive task but never got it downloaded and working.  Also wanted to
make some xsl's to make it smarter.

This build.xml grabs most of what is needed;  it grabs myapp sample but uses
the main sitemap(which you'll need to edit for starting the home page) and
configuration.  Also you'll need to come up with your own script for
building the new webapp(Can be very small now that you have all the cocoon
jars already built) or copy all of it's pieces into say tomcat/webapps and
edited and test files as you build on to the new webapp there.

If this proves useful and/or you have ideas how this should work, let me
know.

Roger
----- Original Message ----- 
From: "Robert Simmons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 8:22 AM
Subject: AW: Empty Webapp build?


Actually, I dont want to create just another directory. This is for a
production project and I dont want any of the cocoon docs or examples or any
of that. I want it totally blank.

I find it .... strange ... that I should be the only cocoon user to want
that. There should be a build target. Of course I said this in February last
year so Id assume they would have put it in by now.

-- Robert

-----Urspr�ngliche Nachricht-----
Von: Chris Clark [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 27. August 2003 14:13
An: [EMAIL PROTECTED]
Betreff: RE: Empty Webapp build?


If you check the install.txt file you'll see that there is a
build.properties file wherein you can specify what to exclude.

Note: depending on what version you're using, you may or may not have any
luck with this.  (e.g. in 2.1m2 you can't exclude the deprecated package as
it gets used by other components you need.)

If you just want a blank project, you can create a subdirectory under
webapp.  The default sitemap.xmap sitting in webapp has code to automount
any subdirectories you create.  The only "catch" is that you'll see your
directory name in the URL.

e.g.  http://localhost:8888/your-dir/

Cheers,
Chris

> -----Original Message-----
> From: Robert Simmons [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2003 7:33 AM
> To: Cocoon Users (E-Mail)
> Subject: Empty Webapp build?
>
> Greetings,
>
> Is there a target that will allow me to build cocoon without the
> documentation or examples? I want to build a BLANK web site with the basic
> sitemap for starting a new project.
>
> -- Robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<!--


              For generating an empty Cocoon based webapp.



Build Tools
..............................................................................

Generation is based on Apache Ant, which is a Java building tool
used in Apache projects.
For more information refer to "http://ant.apache.org/";.

The only thing that you have to make sure, is that the "JAVA_HOME" environment
property should be set to match the JVM you want to use. 

In the init target below, set your project name and vitals

Building Instructions
..............................................................................

First, make sure your current working directory is where this file is located.
Then type:

  [unix]  ./build.sh generate
  [win32] .\build.bat generate

This action will compile the sources to the 'classes' directory.

Build Targets
..............................................................................

To display the available targets type:

  [unix]  ./build.sh  help
  [win32] .\build.bat help

 
 $Id: build.xml,v 1.128 2003/05/19 12:49:25 deweese Exp $

-->

<project default="help" basedir=".">

  <!-- Initializations .................................................... -->
  <target name="init-args" unless="args">
    <property name="args" value=""/>
  </target>

  <target name="init" depends="init-args">
    <tstamp/>
    <property name="Project"  value="AIM webapp"/>
    <property name="project"  value="newapp"/>
    <property name="year"     value="2003"/>
    <property name="version"  value="1.0"/>
    <property name="revisionType" value="beta"/>
    <property name="revisionNumber" value="5" />

    <property file="build.properties"/>
    <property name="debug"       value="off"/>
    <property name="optimize"    value="on"/>
    <property name="deprecation" value="on"/>

    <property name="src"             value="sources"/>
    <property name="resources"       value="resources"/>
    <property name="testsrc"         value="test-sources"/>
    <property name="testresources"   value="test-resources"/>
    <property name="dest"            value="classes"/>
    <property name="build"           value="${project}"/>
    <property name="docs"            value="${build}/docs"/>
    <property name="lib"             value="lib"/>
    <property name="samples"         value="samples"/>
    <property name="package-prefix"  value="org/apache/${project}"/>

    <property name="class-prefix"    value="org.apache.${project}"/>

    <property name="xdocs"           value="xdocs"/>
    <property name="skins"           value="xdocs/skins"/>
    <property name="stylebook-class" value="org.apache.stylebook.StyleBook"/>

    <property name="site"            value="../xml-site/targets/${project}"/>
    <property name="site-skin"       value="${skins}/xml.apache.org/"/>
    <property name="print-skin"      value="${skins}/printer/"/>

    <property name="test-reports"    value="test-reports" />
    <property name="test-references" value="test-references" />
    <property name="test-resources"  value="test-resources" />

    <!--available property="rhino.present" classname="org.mozilla.javascript.Context">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jpython.present" classname="org.python.util.PythonInterpreter">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jacl.present" classname="tcl.lang.Interp">
      <classpath refid="libs-classpath"/>
    </available-->

  </target>

  <!--path id="libs-classpath">
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
  </path-->

  <!--path id="libs-build-classpath">
    <fileset dir="lib/build">
      <include name="stylebook*.jar"/>
      <include name="xalan*.jar"/>
    </fileset>
    <fileset dir="lib">
      <include name="xerces*.jar"/>
      <include name="xml-apis.jar"/>
    </fileset>
  </path-->


  <!-- Help ............................................................... -->
  <target name       ="help"
          depends    ="init"
          description="Displays the usage">
    <echo message=""/>
    <echo message="${project} build file"/>
    <echo message=""/>
    <echo message=" Available targets are:"/>
    <echo message=""/>
    <echo message="   generate      --> grabs the skeleton pieces from cocoon and sets up a webapp project"/>
    <echo message=""/>
    <echo message=" See the comments in the build.xml file for more details."/>
    <echo message=""/>
    <echo message=""/>
  </target>

  <!-- Generate .............................................................. -->
  <target name="generate" depends ="init">
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/src"/>
    <mkdir dir="${build}/src/webapp"/>
    <copy todir="${build}/src/webapp">
      <fileset dir="cocoon-2.1/src/webapp/samples/myapp">
          <exclude name="*.xmap"/>

	</fileset>
    </copy>
    <mkdir dir="${build}/lib"/>
    <mkdir dir="${build}/lib/core"/>
    <mkdir dir="${build}/lib/endorsed"/>
    <mkdir dir="${build}/lib/local"/>
    <mkdir dir="${build}/lib/optional"/>
    <copy todir="${build}/lib">
      <fileset dir="cocoon-2.1/lib">
          <include name="*.xml"/>
       </fileset>
    </copy>
    <copy todir="${build}/lib/core">
      <fileset dir="cocoon-2.1/lib/core"/>
       <fileset dir="cocoon-2.1/build/webapp/WEB-INF/lib">
          <include name="cocoon-*.jar"/>
       </fileset>
   </copy>
    <copy todir="${build}/lib/endorsed">
      <fileset dir="cocoon-2.1/lib/endorsed"/>
   </copy>
    <copy todir="${build}/lib/local">
      <fileset dir="cocoon-2.1/lib/local"/>
   </copy>
    <copy todir="${build}/lib/optional">
      <fileset dir="cocoon-2.1/lib/optional"/>
   </copy>
   
    <mkdir dir="${build}/src/webapp/WEB-INF"/>
    <mkdir dir="${build}/src/webapp/WEB-INF/classes"/>
    <mkdir dir="${build}/src/webapp/WEB-INF/db"/>
    <mkdir dir="${build}/src/webapp/WEB-INF/deli"/>
    <mkdir dir="${build}/src/webapp/WEB-INF/entities"/>
    <mkdir dir="${build}/src/webapp/WEB-INF/lib"/>
    <copy todir="${build}/src/webapp">
      <fileset dir="cocoon-2.1/build/webapp/">
          <include name="*.xmap"/>
      </fileset >
    </copy>
    <copy todir="${build}/src/webapp/WEB-INF">
      <fileset dir="cocoon-2.1/build/webapp/WEB-INF">
          <include name="*.xconf"/>
          <include name="*.xml"/>
          <include name="*.mf"/>
      </fileset >
    </copy>
    <copy todir="${build}/src/webapp/WEB-INF/classes">
      <fileset dir="cocoon-2.1/build/webapp/WEB-INF/classes"/>
    </copy>
    <copy todir="${build}/src/webapp/WEB-INF/db">
      <fileset dir="cocoon-2.1/build/webapp/WEB-INF/db"/>
    </copy>
    <copy todir="${build}/src/webapp/WEB-INF/deli">
      <fileset dir="cocoon-2.1/build/webapp/WEB-INF/deli"/>
    </copy>
    <copy todir="${build}/src/webapp/WEB-INF/entities">
      <fileset dir="cocoon-2.1/build/webapp/WEB-INF/entities"/>
    </copy>
    <copy todir="${build}/src/webapp/resources">
      <fileset dir="cocoon-2.1/build/webapp/resources"/>
    </copy>
    <copy todir="${build}/src/webapp/stylesheets">
      <fileset dir="cocoon-2.1/build/webapp/stylesheets"/>
    </copy>
    <copy todir="${build}/src/webapp/stylesheets">
      <fileset dir="cocoon-2.1/build/webapp/samples/stylesheets"/>
      <fileset dir="cocoon-2.1/build/webapp/samples/common/style/xsl/html"/>
    </copy>
  </target>


</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to