diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-21 07:50:17 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-21 07:50:17 +0000 |
commit | 2ae32b04b9d771118a7cafc1d7edec86fbe9c3c0 (patch) | |
tree | f61529f71e1fabbbfd91f3df29e60e5418327db2 /site/tags/site-090106-pre667/build.xml | |
parent | aaf9a30afeb4390cc0bb4fdfca435e5c331e2df6 (diff) |
Moving site tags
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882847 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'site/tags/site-090106-pre667/build.xml')
-rw-r--r-- | site/tags/site-090106-pre667/build.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/site/tags/site-090106-pre667/build.xml b/site/tags/site-090106-pre667/build.xml new file mode 100644 index 0000000000..e54ec81114 --- /dev/null +++ b/site/tags/site-090106-pre667/build.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<project name="site" default="docs" basedir="."> + + <!-- Initialization properties --> + <property name="project.name" value="site"/> + + <!-- The source directory for our XML source documents which are + to be sytlized and transformed into XHTML. --> + <property name="docs.src" value="site-author"/> + + <!-- The destination directory for content generated from our XML + sources. --> + <property name="docs.dest" value="site-publish"/> + + <path id="classpath"> + <fileset dir="./lib"> + <include name="**/*.jar"/> + </fileset> + </path> + + <target name="prepare"> + <available classname="org.apache.velocity.anakia.AnakiaTask" + property="AnakiaTask.present"> + <classpath refid="classpath"/> + </available> + </target> + + <target depends="prepare" name="prepare-error" unless="AnakiaTask.present"> + <echo> + AnakiaTask is not present! Please check to make sure that + velocity.jar is in your classpath. + </echo> + </target> + + <target name="docs" depends="prepare-error" if="AnakiaTask.present"> + <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"> + <classpath refid="classpath"/> + </taskdef> + <anakia basedir="${docs.src}" destdir="${docs.dest}/" + extension=".html" style="./site.vsl" + projectFile="stylesheets/project.xml" + excludes="**/stylesheets/** empty.xml" + includes="**/*.xml" + lastModifiedCheck="true" + templatePath="${docs.src}/stylesheets" + > + </anakia> + + <copy todir="${docs.dest}/" filtering="no"> + <fileset dir="${docs.src}/"> + <!-- Ignore the Anakia style sheet used for processing + of the xdocs, and the unprocessed xdocs themselves, + but copy all other content to the directory which is + checked out on the server. --> + <exclude name="**/*.xml"/> + <exclude name="**/stylesheets/**"/> + <!-- Editor-specific ignores. --> + <exclude name="**/*~"/> + <exclude name="**/.#*"/> + </fileset> + </copy> + + </target> +</project> |