Commit | Line | Data |
---|---|---|
2b042910 BH |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project name="org.eclipse.linuxtools.tracing.rcp.help" default="build"> | |
3 | <description> | |
4 | Generate Eclipse help content for the Linux Tools Trace Viewer user guide | |
5 | </description> | |
6 | ||
7 | <!-- Set correct values --> | |
8 | <property name="help.doc.url.base" value="http://wiki.eclipse.org" /> | |
9 | <property name="ug.path" value="Linux_Tools_Project/Trace_Viewer/User_Guide" /> | |
10 | <property name="ug.title" value="Trace Viewer User Guide" /> | |
11 | ||
12 | <path id="wikitext.tasks.classpath"> | |
13 | <!-- Search in the local Eclipse installation directory for the Wikitext plugin --> | |
14 | <fileset dir="${eclipse.home}/plugins" erroronmissingdir="false"> | |
15 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> | |
16 | </fileset> | |
17 | ||
18 | <!-- Search in the system-wide installation directory (Debian) --> | |
19 | <fileset dir="/usr/share/eclipse/dropins/mylyn-wikitext/eclipse/plugins" erroronmissingdir="false"> | |
20 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> | |
21 | </fileset> | |
22 | ||
23 | <!-- For Maven builds: use the compile_classpath --> | |
24 | <pathelement path="${compile_classpath}" /> | |
25 | </path> | |
26 | ||
27 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" /> | |
28 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" /> | |
29 | ||
30 | <target name="build" description="Generate Eclipse help content for the Linux Tools Trace Viewer User Guide"> | |
31 | <wikitext-to-eclipse-help markupLanguage="MediaWiki" | |
32 | validate="true" | |
33 | failonvalidationerror="true" | |
34 | overwrite="true" | |
35 | multipleOutputFiles="true" | |
36 | navigationimages="true" | |
37 | title="${ug.title}" | |
38 | formatoutput="true" | |
39 | helpPrefix="doc"> | |
40 | <fileset dir="./doc"> | |
41 | <include name="User-Guide.mediawiki" /> | |
42 | </fileset> | |
43 | <stylesheet url="book.css" /> | |
44 | </wikitext-to-eclipse-help> | |
45 | <antcall target="test" /> | |
46 | </target> | |
47 | ||
48 | <target name="test" description="Verify that all of the HTML files are well-formed XML"> | |
49 | <!-- | |
50 | Don't bother with DTD validation: we only care if the files are well-formed. | |
51 | We therefore provide an empty DTD | |
52 | --> | |
53 | <xmlvalidate lenient="true"> | |
54 | <fileset dir="doc"> | |
55 | <include name="**/*.html" /> | |
56 | </fileset> | |
57 | <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location=".empty.dtd" /> | |
58 | </xmlvalidate> | |
59 | </target> | |
60 | ||
61 | ||
62 | <!-- If you need a proxy for the "download" target, set it here --> | |
63 | <!-- | |
64 | <setproxy proxyhost="host" proxyport="port"/> | |
65 | --> | |
66 | ||
67 | <target name="download" description="Download the current contents of the LTTng User Guide from the Eclipse wiki"> | |
68 | <mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}" title="${ug.title}" formatoutput="true" dest="." templateExcludes="*eclipseproject*"> | |
69 | <path name="${ug.path}" title="${ug.title}" generateToc="false" /> | |
70 | <stylesheet url="book.css" /> | |
71 | <pageAppendum> | |
72 | = Updating This Document = | |
73 | ||
74 | This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit | |
75 | http://wiki.eclipse.org/Linux_Tools_Project/LTTng2/User_Guide. | |
76 | </pageAppendum> | |
77 | </mediawiki-to-eclipse-help> | |
78 | </target> | |
79 | ||
80 | <target name ="clean" description="Delete all generated files"> | |
81 | <delete failonerror="false" includeemptydirs="true"> | |
82 | <!-- Files under doc/ (generated locally) --> | |
83 | <fileset dir="doc" includes="**/*.html" /> | |
84 | <fileset dir="doc" includes="**/*.xml" /> | |
85 | ||
86 | <!-- Files downloaded from the Eclipse wiki --> | |
87 | <fileset dir="Linux_Tools_Project" /> | |
88 | <fileset file="toc.xml" /> | |
89 | </delete> | |
90 | </target> | |
91 | ||
92 | </project> |