Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-09-09 17:45:11 +0000
committerEike Stepper2011-09-09 17:45:11 +0000
commit98df386ea84398f44e78c15995c26df91ec2a2cf (patch)
tree4fb46aab9a2bae2a558d63021b09398e8e8a4f38 /plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant
parent0bb4fba42de013403b5e332ec258c8a8899f393e (diff)
downloadcdo-98df386ea84398f44e78c15995c26df91ec2a2cf.tar.gz
cdo-98df386ea84398f44e78c15995c26df91ec2a2cf.tar.xz
cdo-98df386ea84398f44e78c15995c26df91ec2a2cf.zip
tutorials
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant65
1 files changed, 52 insertions, 13 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant b/plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant
index b26785ab7b..4687659df1 100644
--- a/plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant
+++ b/plugins/org.eclipse.emf.cdo.releng.doc/buildTemplate.ant
@@ -10,7 +10,9 @@
<property name="javadoc.project" value="plugins/${PROJECT-NAME}" />
<property file="${javadoc.project}/plugin.properties" />
<property name="javadoc.name" value="${pluginName}" />
- <property name="destdir" value="${javadoc.project}/javadoc" />
+ <property name="javadoc.destdir" value="${javadoc.project}/javadoc" />
+ <property name="article.destdir" value="${javadoc.project}/html" />
+ <property name="article.sources" value="${javadoc.project}/src" />
<property name="supplemental" value="/develop/bin/org.eclipse.emf.cdo.releng.doc.supplemental" />
<path id="javadoc.classpath">
@@ -32,28 +34,34 @@
</dirset>
</path>
- <fileset dir="${destdir}" id="desthtml">
+ <fileset dir="${javadoc.destdir}" id="desthtml">
<include name="**/*.html" />
</fileset>
<target name="clean">
- <delete includeemptydirs="true">
- <fileset dir="${destdir}" defaultexcludes="true">
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${javadoc.destdir}" defaultexcludes="true">
+ <include name="**/*" />
+ </fileset>
+ </delete>
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${article.destdir}" defaultexcludes="true">
<include name="**/*" />
</fileset>
</delete>
</target>
- <target name="build">
+ <target name="build.java">
<property name="warningsfile"
location="plugins/org.eclipse.emf.cdo.releng.doc/debug/${PROJECT-NAME}.warnings" />
- <javadoc destdir="${destdir}"
+ <javadoc destdir="${javadoc.destdir}"
encoding="ISO-8859-1"
classpathref="javadoc.classpath"
maxmemory="1024m"
source="1.5"
useexternalfile="true"
+ failonerror="true"
docfilessubdirs="true"
includenosourcepackages="true"
author="true"
@@ -63,11 +71,9 @@
windowtitle="${javadoc.name}"
doctitle="&lt;h1>${javadoc.name}&lt;/h1>"
overview="${javadoc.project}/overview.html"
- bottom="&lt;i>Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.&lt;/i>"
- failonerror="true">
+ bottom="&lt;i>Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.&lt;/i>">
- <doclet name="org.jboss.apiviz.APIviz"
- path="${supplemental}/bin">
+ <doclet name="org.jboss.apiviz.APIviz" path="${supplemental}/bin">
<param name="-nopackagediagram" />
<param name="-nosubtypes" />
<param name="-warningsfile" value="${warningsfile}" />
@@ -98,7 +104,7 @@
</javadoc>
<!-- COPY DOC FILES -->
- <copy todir="${destdir}/resources" verbose="true" failonerror="false">
+ <copy todir="${javadoc.destdir}/resources" verbose="true" failonerror="false">
<fileset dir="${javadoc.project}/resources" defaultexcludes="true">
<include name="**/*" />
<exclude name="README.txt" />
@@ -119,7 +125,7 @@
failonerror="true"
id="MakeHrefsRelative">
<classpath path="plugins/org.eclipse.emf.cdo.releng.doc/bin" />
- <arg value="${destdir}" />
+ <arg value="${javadoc.destdir}" />
</java>
<java classname="org.eclipse.emf.cdo.releng.doc.java.MovePackageDescriptions"
@@ -128,10 +134,43 @@
failonerror="true"
id="MovePackageDescriptions">
<classpath path="plugins/org.eclipse.emf.cdo.releng.doc/bin" />
- <arg value="${destdir}" />
+ <arg value="${javadoc.destdir}" />
</java>
</target>
+ <target name="build.article">
+ <mkdir dir="${article.destdir}" />
+ <copy todir="${article.destdir}" verbose="true" failonerror="false">
+ <fileset dir="${article.sources}" defaultexcludes="true">
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+
+ <javadoc encoding="ISO-8859-1"
+ classpathref="javadoc.classpath"
+ maxmemory="1024m"
+ source="1.5"
+ useexternalfile="true"
+ failonerror="true"
+ private="true">
+
+ <doclet name="org.eclipse.emf.cdo.releng.doc.article.ArticleDoclet"
+ path="plugins/org.eclipse.emf.cdo.releng.doc/bin;${supplemental}/bin">
+ <param name="-basefolder" value="${basedir}" />
+ <param name="-outputpath" value="plugins/org.eclipse.emf.cdo.doc/html" />
+ </doclet>
+
+ <fileset dir="${article.sources}" defaultexcludes="yes">
+ <include name="**/*.java" />
+ </fileset>
+
+ <package name="org.eclipse.emf.cdo.doc.connectors" />
+ <package name="org.eclipse.emf.cdo.doc.sessions" />
+ </javadoc>
+ </target>
+
+ <target name="build" depends="build.java" />
+
<target name="build.clean" depends="clean,build" />
</project>

Back to the top