Commit | Line | Data |
---|---|---|
067490ab AM |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project name="org.eclipse.linuxtools.tmf.help" default="build" basedir="."> | |
3 | <description> | |
73844f9c | 4 | Generate Eclipse help content for the Linux Tools TMF Developer Guide |
067490ab AM |
5 | </description> |
6 | ||
73844f9c | 7 | <property name="ug.title" value="TMF Developer Guide" /> |
067490ab AM |
8 | |
9 | <path id="wikitext.tasks.classpath"> | |
10 | <!-- Search in the local Eclipse installation directory for the Wikitext plugin --> | |
11 | <fileset dir="${eclipse.home}/plugins" erroronmissingdir="false"> | |
12 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> | |
13 | </fileset> | |
14 | ||
15 | <!-- Search in the system-wide installation directory (Debian) --> | |
16 | <fileset dir="/usr/share/eclipse/dropins/mylyn-wikitext/eclipse/plugins" erroronmissingdir="false"> | |
17 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> | |
18 | </fileset> | |
19 | ||
20 | <!-- For Maven builds: use the compile_classpath --> | |
21 | <pathelement path="${compile_classpath}" /> | |
22 | </path> | |
23 | ||
24 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" /> | |
25 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" /> | |
26 | ||
73844f9c | 27 | <target name="build" description="Generate Eclipse help content for the Linux Tools TMF Developer Guide"> |
067490ab AM |
28 | <wikitext-to-eclipse-help markupLanguage="MediaWiki" |
29 | validate="true" | |
30 | failonvalidationerror="true" | |
31 | overwrite="true" | |
32 | multipleOutputFiles="true" | |
33 | navigationimages="true" | |
34 | title="${ug.title}" | |
35 | formatoutput="true" | |
36 | helpPrefix="doc"> | |
37 | <fileset dir="doc"> | |
73844f9c | 38 | <include name="Developer-Guide.mediawiki" /> |
067490ab AM |
39 | </fileset> |
40 | <stylesheet url="book.css" /> | |
41 | </wikitext-to-eclipse-help> | |
a9567d7b | 42 | <antcall target="test" /> |
067490ab AM |
43 | </target> |
44 | ||
45 | <target name="test" description="Verify that all of the HTML files are well-formed XML"> | |
46 | <!-- | |
47 | Don't bother with DTD validation: we only care if the files are well-formed. | |
48 | We therefore provide an empty DTD | |
49 | --> | |
50 | <xmlvalidate lenient="true"> | |
51 | <fileset dir="doc"> | |
52 | <include name="**/*.html" /> | |
53 | </fileset> | |
54 | <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location=".empty.dtd" /> | |
55 | </xmlvalidate> | |
56 | </target> | |
57 | ||
58 | <target name ="clean" description="Delete all generated files"> | |
a9567d7b | 59 | <delete failonerror="false"> |
067490ab AM |
60 | <fileset dir="doc" includes="**/*.html" /> |
61 | <fileset dir="doc" includes="**/*.xml" /> | |
62 | </delete> | |
63 | </target> | |
64 | ||
65 | </project> |