<!--
=
= Copyright 2003-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.
=
-->
<project default="site" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:util="jelly:util">
    
    <property file="${basedir}/build.properties"/>
    <property file="${basedir}/project.properties"/>
    
    <property name="maven.license.licenseFile" 
        value="${basedir}/../LICENSE.txt"/>
    <property name="maven.javadoc.stylesheet" 
        value="${basedir}/etc/stylesheet.css"/>
    
    <preGoal name="attributes:site">
        <attainGoal name="license"/>
    </preGoal>
    
    <goal name="attributes:site">
        <echo>---</echo>
        <attainGoal name="xdoc:generate-from-pom"/>
        <attainGoal name="xdoc:transform"/>
    </goal>
    
    <preGoal name="xdoc:copy-user-resources">
        <copy todir="${basedir}/target/docs" filtering="no">
            <fileset dir="${basedir}/etc/">
                <include name="ant_demo/**"/>
                <exclude name="**/CVS/*"/>
            </fileset>
        </copy>
        <zip destfile="${basedir}/target/docs/maven_demo.zip">
            <fileset dir="${basedir}/etc/"
                includes="maven_demo/maven.xml,maven_demo/project.*,maven_demo/src/**"
                excludes="**/CVS/*"/>
        </zip>
    </preGoal>
</project>