cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 37121 - in cocoon/branches/new-kernel: . sources/javadoc sources/javadoc/j2ee-1.4 sources/javadoc/j2se-1.4
Date Fri, 27 Aug 2004 11:10:29 GMT
Author: pier
Date: Fri Aug 27 04:10:27 2004
New Revision: 37121

Added:
   cocoon/branches/new-kernel/build.properties
   cocoon/branches/new-kernel/build.xml
   cocoon/branches/new-kernel/sources/javadoc/j2ee-1.4/
   cocoon/branches/new-kernel/sources/javadoc/j2ee-1.4/package-list
      - copied unchanged from rev 37119, cocoon/branches/new-kernel/sources/javadoc/package-list-j2ee-1.4
   cocoon/branches/new-kernel/sources/javadoc/j2se-1.4/
   cocoon/branches/new-kernel/sources/javadoc/j2se-1.4/package-list
      - copied unchanged from rev 37119, cocoon/branches/new-kernel/sources/javadoc/package-list-j2se-1.4
   cocoon/branches/new-kernel/sources/javadoc/overview.html
Removed:
   cocoon/branches/new-kernel/sources/javadoc/package-list-j2ee-1.4
   cocoon/branches/new-kernel/sources/javadoc/package-list-j2se-1.4
Log:
Create JavaDOCs in build process

Added: cocoon/branches/new-kernel/build.properties
==============================================================================
--- (empty file)
+++ cocoon/branches/new-kernel/build.properties	Fri Aug 27 04:10:27 2004
@@ -0,0 +1,3 @@
+project.name=Apache Cocoon Kernel
+project.version=0.1
+project.url=http://cocoon.apache.org/

Added: cocoon/branches/new-kernel/build.xml
==============================================================================
--- (empty file)
+++ cocoon/branches/new-kernel/build.xml	Fri Aug 27 04:10:27 2004
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="Apache Cocoon Kernel" default="javadoc">
+
+    <description>Apache Cocoon Kernel</description>
+
+    <property file="build.properties"/>   
+
+    <property name="source.dir"             value="${basedir}/sources"/>
+    <property name="source.classes.dir"     value="${source.dir}/classes"/>
+    <property name="source.javadoc.dir"     value="${source.dir}/javadoc"/>
+
+    <property name="build.dir"              value="${basedir}/build"/>
+    <property name="build.classes.dir"      value="${build.dir}/classes"/>
+    <property name="build.javadoc.dir"      value="${build.dir}/javadoc"/>
+
+    <path id="classpath">
+        <fileset dir="${basedir}/lib">
+            <include name="*.jar"/>
+            <exclude name="**/.*"/>
+            <include name="**/*~"/>
+        </fileset>
+    </path>
+
+    <target name="prepare" description="Initialize the build environment">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.classes.dir}"/>
+        <mkdir dir="${build.javadoc.dir}"/>
+    </target>
+
+    <target name="javadoc" depends="prepare" description="Build API documentation">
+        <copy filtering="true" tofile="${build.javadoc.dir}/overview.tmp.html"
+                file="${source.javadoc.dir}/overview.html">
+            <filterset>
+                <filtersfile file="build.properties"/>
+            </filterset>
+        </copy>
+
+        <javadoc destdir="${build.javadoc.dir}" classpathref="classpath" author="true"
+                version="true" windowtitle="${project.name} ${project.version}"
+                overview="${build.javadoc.dir}/overview.tmp.html" additionalparam="-breakiterator">
+            <packageset dir="${source.classes.dir}"/>
+            <link packagelistloc="${source.javadoc.dir}/j2se-1.4"
+                    offline="true" href="http://java.sun.com/j2se/1.4/docs/api"/>   
+            <link packagelistloc="${source.javadoc.dir}/j2ee-1.4"
+                    offline="true" href="http://java.sun.com/j2ee/1.4/docs/api"/>   
+        </javadoc>
+        <delete file="${build.javadoc.dir}/overview.tmp.html"/>
+    </target>
+
+</project>

Added: cocoon/branches/new-kernel/sources/javadoc/overview.html
==============================================================================
--- (empty file)
+++ cocoon/branches/new-kernel/sources/javadoc/overview.html	Fri Aug 27 04:10:27 2004
@@ -0,0 +1,8 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+  <BODY>
+    <P>
+      Please visit the <A href="@project.url@">@project.name@ main website</A>
for more information.
+    </P>
+  </BODY>
+</HTML>

Mime
View raw message