You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by xa...@apache.org on 2007/07/05 16:20:25 UTC
svn commit: r553550 - in /incubator/ivy/site: ./ build.xml
Author: xavier
Date: Thu Jul 5 09:20:24 2007
New Revision: 553550
URL: http://svn.apache.org/viewvc?view=rev&rev=553550
Log:
add site generation
Added:
incubator/ivy/site/build.xml (with props)
Modified:
incubator/ivy/site/ (props changed)
Propchange: incubator/ivy/site/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Jul 5 09:20:24 2007
@@ -0,0 +1 @@
+target
Added: incubator/ivy/site/build.xml
URL: http://svn.apache.org/viewvc/incubator/ivy/site/build.xml?view=auto&rev=553550
==============================================================================
--- incubator/ivy/site/build.xml (added)
+++ incubator/ivy/site/build.xml Thu Jul 5 09:20:24 2007
@@ -0,0 +1,73 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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="generate-site"
+ xmlns:xooki="antlib:xooki">
+
+ <property name="target.dir" value="${basedir}/target" />
+
+ <target name="generate-site" depends="init-imported-history"
+ description="--> Generates site for publication">
+ <copy todir="${target.dir}">
+ <fileset dir="${basedir}" includes="images/**,style/**,samples/**,js/**" />
+ </copy>
+ <!-- requires java 6 jdk in path and Apache Ant 1.7 -->
+ <xooki:generate destDir="${target.dir}" checkUpToDate="true">
+ <fileset dir="${basedir}">
+ <include name="**/*.html"/>
+ <exclude name="template.html"/>
+ <exclude name="*Template.html"/>
+ <exclude name="presentations/**"/>
+ <exclude name="samples/**"/>
+ <exclude name="js/**"/>
+ <exclude name="**/xooki/**"/>
+ <exclude name="target/**"/>
+ </fileset>
+ </xooki:generate>
+ </target>
+
+ <target name="clean" description="--> clean generated site">
+ <delete dir="${target.dir}" />
+ </target>
+
+
+ <!--
+ INITIALIZE IMPORTED DOCUMENTATION OF HISTORY VERSIONS
+ Imported documentations need to have a special configuration javascript
+ in their home, so that they know they are imported and properly
+ display the whole TOC, and not only their own one.
+ The targets below are used to initialize those imported versions
+ with ad hoc configuration file. It should only be called once
+ per imported documentation version.
+ -->
+ <macrodef name="init-imported-version">
+ <attribute name="version" />
+ <sequential>
+ <echo file="history/@{version}/config.extra.js"
+ message="xooki.c.setImportLevel(2);" />
+ </sequential>
+ </macrodef>
+
+ <target name="init-imported-trunk">
+ <init-imported-version version="trunk" />
+ </target>
+
+ <target name="init-imported-history"
+ depends="init-imported-trunk"
+ description="--> initialize all imported documentation history"/>
+</project>
\ No newline at end of file
Propchange: incubator/ivy/site/build.xml
------------------------------------------------------------------------------
svn:eol-style = native