[EMAIL PROTECTED] wrote:

Upayavira, thank you very much! :-)



Try the below build file, and let me know how you get on. Try it with Cocoon 2.1.3. The Ant task in 2.1.1 is old, and I do not know its status.

Regards, Upayavira

<?xml version="1.0"?>
<project default="cocoon" basedir="." name="Apache Cocoon">

   <property name="cocoon.context" 
value="d:/documents/cocoon/cocoonTask/cocoon-2.1/build/webapp"/>
   <path id="cp">
     <dirset dir="${cocoon.context}/WEB-INF/classes"/>
     <fileset dir="${cocoon.context}/WEB-INF/lib" includes="*.jar"/>
     <fileset dir="lib/optional" includes="servlet*.jar"/>
   </path>

<taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask" classpathref="cp"/>
<target name="cocoon">


<cocoon verbose="true" classpathref="cp"
follow-links="true" precompile-only="false" confirm-extensions="false"
md5-compare="true"
context-dir="${cocoon.context}"
config-file="WEB-INF/cocoon.xconf"
work-dir="work"
dest-dir="dest"
checksums-uri="work/checksums"
default-filename="index.html"
accept="*/*">

<broken-links type="xml" file="brokenlinks.xml"
generate="false"
extension=".error"/>
<logging log-kit="${cocoon.context}/WEB-INF/logkit.xconf" logger="cli" level="DEBUG" />


<include pattern="**"/>
<exclude pattern="docs/apidocs/**"/>

<uri type="replace" src-prefix="samples/" src="hello-world/hello.html"
dest="build/dest/hello-world.html"/>
<uris name="docs" follow-links="true">
<uri type="append" src-prefix="docs/" src="index.html"
dest="build/dest/" />


</uris>
<uris name="samples" follow-links="false"
src-prefix="samples/"
dest="build/dest/examples/"
type="append"
md5-compare="true"
>
<uri src=""/>
<uri src="hello-world/hello.html"/>
<uri src="hello-world/hello.xml"/>
</uris>

</cocoon>
</target>
</project>




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



Reply via email to