Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTran Le2012-08-28 18:01:49 -0400
committerTran Le2012-08-28 18:29:30 -0400
commit340318de33df661946a8a5cbecd9918b7fdc6551 (patch)
tree13b995d80202c23c43c8047b7cbb70d359088ac5 /org.eclipse.jpt.doc.isv/buildDoc.xml
parent3f09be219e0653795d242d51ab08ec31d4057011 (diff)
downloadwebtools.dali-340318de33df661946a8a5cbecd9918b7fdc6551.tar.gz
webtools.dali-340318de33df661946a8a5cbecd9918b7fdc6551.tar.xz
webtools.dali-340318de33df661946a8a5cbecd9918b7fdc6551.zip
Added Javadoc generation.v201208282228
Diffstat (limited to 'org.eclipse.jpt.doc.isv/buildDoc.xml')
-rw-r--r--org.eclipse.jpt.doc.isv/buildDoc.xml86
1 files changed, 86 insertions, 0 deletions
diff --git a/org.eclipse.jpt.doc.isv/buildDoc.xml b/org.eclipse.jpt.doc.isv/buildDoc.xml
new file mode 100644
index 0000000000..a58334d2b6
--- /dev/null
+++ b/org.eclipse.jpt.doc.isv/buildDoc.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2012 Oracle. All rights reserved.
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0, which accompanies this distribution
+ and is available at http://www.eclipse.org/legal/epl-v10.html.
+
+ Contributors:
+ Oracle - initial API and implementation
+ -->
+
+<project name="JPT Doc ISV Build" default="all" basedir="." >
+
+ <target name="init">
+ <available file="${basedir}/index" property="index.present"/>
+ </target>
+
+ <target name="all" depends="init" unless="index.present">
+ <!-- <antcall target="convertSchemaToHtml" /> -->
+ <antcall target="generateJavadoc" />
+<!-- <antcall target="build.index" /> /-->
+ <!--antcall target="createDocZip" /-->
+ </target>
+
+ <target name="build.index" description="Builds search index for the plug-in: org.eclipse.jpt.doc.isv." if="eclipse.running">
+ <help.buildHelpIndex manifest="${basedir}/plugin.xml" destination="${basedir}"/>
+ </target>
+
+ <target name="getJavadocPath">
+ <available file="${java.home}/../bin/javadoc.exe" property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
+ <available file="${java.home}/../bin/javadoc" property="javadoc" value="${java.home}/../bin/javadoc" />
+ </target>
+
+
+ <target name="generateJavadoc" depends="getJavadocPath" if="javadoc">
+
+ <property name="optionsFile" value="jptOptions.tmp.txt" />
+ <copy file="jptOptions.txt" tofile="${optionsFile}" overwrite="true" />
+
+ <condition property="argsListDelimiter" value=":">
+ <os family="unix" />
+ </condition>
+ <condition property="argsListDelimiter" value=";">
+ <os family="windows" />
+ </condition>
+
+ <replaceregexp file="${basedir}/${optionsFile}" flags="g" match="(\r\n?|\n);" replace="${argsListDelimiter}" />
+ <replace file="${basedir}/${optionsFile}" token="@rt@" value="${bootclasspath}" />
+
+
+ <!--scrub isv plugin directories of any preexisting doc content-->
+ <delete dir="index-files"/>
+ <delete dir="org"/>
+ <delete dir="resources"/>
+
+ <exec dir="." executable="${javadoc}" output="doc.bin.log">
+ <arg line="@${basedir}/${optionsFile} -J-Xmx1000M" />
+ </exec>
+ </target>
+
+ <target name="buildJptDoc" unless="jpt.index.present">
+ <ant antfile="buildDoc.xml" dir="../org.eclipse.jpt.doc.isv" />
+ </target>
+
+ <target name="createDocZip">
+ <zip zipfile="${basedir}/doc.zip"
+ basedir="${basedir}"
+ includes="schema.css, book.css, notices.html, about.html, concepts/**, guide/**, tips/**, reference/**, tasks/**, whatsNew/**, images/**"
+ />
+ </target>
+
+</project>
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Back to the top