[Cherbot-commit] SF.net SVN: cherbot: [21] trunk/build.xml
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2006-10-28 23:47:10
|
Revision: 21
http://svn.sourceforge.net/cherbot/?rev=21&view=rev
Author: christianhujer
Date: 2006-10-28 16:47:04 -0700 (Sat, 28 Oct 2006)
Log Message:
-----------
Added documentation to build system.
Modified Paths:
--------------
trunk/build.xml
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2006-10-28 23:28:35 UTC (rev 20)
+++ trunk/build.xml 2006-10-28 23:47:04 UTC (rev 21)
@@ -1,16 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE project [
+ <!ENTITY catalogForAnt SYSTEM "src/doc/dtd/catalogForAnt.xml">
+]>
<project default="createJar">
<description>
CherBot
</description>
- <property file="ftp.properties" />
+ <property file="developer.properties" />
<property file="project.properties" />
<tstamp><format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC"/></tstamp>
<exec executable="svnversion" outputproperty="build.number" />
+ <path id="xsltpath">
+ <fileset dir="lib" includes="**/*.jar" />
+ </path>
+ <taskdef name="megaxslt" classpathref="xsltpath" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" />
+ <taskdef name="rgzip" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.rgzip.RGZipTask" />
+ &catalogForAnt;
+
<target
name = "compile"
description = "Compile sandbox"
@@ -38,6 +48,64 @@
</target>
<target
+ name = "editorialDoc"
+ description = "Creates the editorial part of the project documentation."
+ >
+ <mkdir dir="dest/doc" />
+ <megaxslt
+ srcdir="src/doc"
+ destdir="dest/doc"
+ includes="**/*.xhtml"
+ validatesource="true"
+ validatedest="true"
+ ending="xhtml"
+ transformerFactoryImplementationClassName="net.sf.saxon.TransformerFactoryImpl"
+ >
+ <xmlcatalog refid="commonDTDs" />
+ <transformation stylesheet="src/doc/transform.xslt" />
+ <transformation stylesheet="src/doc/cleanupXhtml11.xslt" />
+ </megaxslt>
+ <megaxslt
+ srcdir="dest/doc"
+ destdir="dest/doc"
+ includes="**/*.xhtml"
+ validatesource="true"
+ validatedest="false"
+ ending="html"
+ converttocanonical="true"
+ transformerFactoryImplementationClassName="net.sf.saxon.TransformerFactoryImpl"
+ >
+ <xmlcatalog refid="commonDTDs" />
+ <transformation stylesheet="src/doc/xhtml2html.xslt" />
+ </megaxslt>
+ <copy
+ todir="dest/doc"
+ >
+ <fileset dir="src/doc">
+ <include name="**/.htaccess" />
+ <include name="**/*.html" />
+ <include name="dtd/**/*.mod" />
+ <include name="dtd/**/*.dtd" />
+ <include name="dtd/**/*.xml" />
+ <include name="**/*.css" />
+ <include name="**/*.png" />
+ <include name="robots.txt" />
+ <exclude name="**/.xvpics/*.png" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target
+ name = "uploadDoc"
+ description = "uploads the latest editorial documentation."
+ depends = "editorialDoc"
+ >
+ <exec executable="rsync" failonerror="true">
+ <arg line="-auzv --exclude=api/*/ -e ssh dest/doc/ ${user.rsync.username}@${user.rsync.host}:${user.rsync.dir}/htdocs/" />
+ </exec>
+ </target>
+
+ <target
name = "createJar"
description = "creates a jar archive containing the CherBot"
depends = "compile"
@@ -53,6 +121,7 @@
</manifest>
<fileset dir="classes" />
</jar>
+
</target>
<target
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|