| <?xml version="1.0"?> |
| <!-- |
| Copyright 1999-2004 The Apache Software Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| <project name="standalone"> |
| <!-- |
| ant include file for "standalone-demo" build |
| --> |
| |
| <target name="standalone-demo" depends="webapp" description="build webapp and copy files for standalone demo"> |
| |
| <!-- setup --> |
| <mkdir dir="${build.standalone.demo}"/> |
| <property name="readme.txt" value="${build.standalone.demo}/readme-standalone.txt"/> |
| |
| <!-- copy files that cocoon.sh needs to run so that they can be moved out of the build tree easily --> |
| <copy todir="${build.standalone.demo}"> |
| <fileset dir="."> |
| <include name="${lib.endorsed}/**"/> |
| <include name="${tools.loader.dest}/**"/> |
| <include name="${tools.jetty}/**"/> |
| <include name="cocoon.sh"/> |
| <include name="cocoon.bat"/> |
| </fileset> |
| </copy> |
| |
| <!-- fix permissions and line endings --> |
| <chmod perm="+x" file="${build.standalone.demo}/cocoon.sh"/> |
| <fixcrlf srcdir="${build.standalone.demo}" includes="**.sh" eol="lf"/> |
| <fixcrlf srcdir="${build.standalone.demo}" includes="**.bat" eol="crlf"/> |
| |
| <!-- create readme.txt for users --> |
| <echo file="${readme.txt}"> |
| Cocoon standalone-demo |
| ---------------------- |
| After building this version with "build standalone-demo" from the main Cocoon distribution |
| directory, copying the ${build.standalone.demo} and ${build.webapp} directories |
| somewhere else provides you with a simple standalone Cocoon installation, meant for |
| test and demo purposes. |
| |
| To start this standalone demo use either "./cocoon.sh servlet" or "cocoon.bat servlet" in the |
| standalone-demo directory. |
| |
| The webapp directory must be found as "../webapp" for this to work: |
| |
| common-parent-directory |
| | |
| +----------- standalone-demo |
| +----------- webapp |
| |
| Note that the version of the jetty servlet engine that is included with this demo |
| is not the full version. For production uses, we recommend that you get a complete |
| servlet engine and install it according to your needs. |
| |
| Have fun! |
| Your friendly neighbourhood Cocoon team. |
| </echo> |
| |
| <!-- all done --> |
| <echo>--- standalone-demo build ready! ----------------------------------------- |
| See ${readme.txt} for more info. |
| -------------------------------------------------------------------------- |
| </echo> |
| |
| </target> |
| </project> |