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"> | |
9298e695 MAL |
10 | <!-- Search in the local Eclipse plugins directory for the Wikitext plugin --> |
11 | <fileset dir="${osgi.syspath}" erroronmissingdir="false"> | |
067490ab | 12 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> |
571556ce | 13 | <include name="com.google.guava_*.jar" /> |
067490ab AM |
14 | </fileset> |
15 | ||
067490ab AM |
16 | <!-- For Maven builds: use the compile_classpath --> |
17 | <pathelement path="${compile_classpath}" /> | |
18 | </path> | |
19 | ||
20 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" /> | |
21 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" /> | |
4fc71fbc MAL |
22 | <!-- Different location in more recent versions of Mylyn (Luna ?) --> |
23 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/ant/tasks.properties" /> | |
067490ab | 24 | |
73844f9c | 25 | <target name="build" description="Generate Eclipse help content for the Linux Tools TMF Developer Guide"> |
067490ab AM |
26 | <wikitext-to-eclipse-help markupLanguage="MediaWiki" |
27 | validate="true" | |
28 | failonvalidationerror="true" | |
29 | overwrite="true" | |
30 | multipleOutputFiles="true" | |
31 | navigationimages="true" | |
32 | title="${ug.title}" | |
33 | formatoutput="true" | |
34 | helpPrefix="doc"> | |
35 | <fileset dir="doc"> | |
73844f9c | 36 | <include name="Developer-Guide.mediawiki" /> |
067490ab AM |
37 | </fileset> |
38 | <stylesheet url="book.css" /> | |
39 | </wikitext-to-eclipse-help> | |
a9567d7b | 40 | <antcall target="test" /> |
067490ab AM |
41 | </target> |
42 | ||
43 | <target name="test" description="Verify that all of the HTML files are well-formed XML"> | |
d5efe032 | 44 | <!-- |
067490ab | 45 | Don't bother with DTD validation: we only care if the files are well-formed. |
d5efe032 | 46 | We therefore provide an empty DTD |
067490ab AM |
47 | --> |
48 | <xmlvalidate lenient="true"> | |
49 | <fileset dir="doc"> | |
50 | <include name="**/*.html" /> | |
51 | </fileset> | |
52 | <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location=".empty.dtd" /> | |
53 | </xmlvalidate> | |
54 | </target> | |
55 | ||
56 | <target name ="clean" description="Delete all generated files"> | |
a9567d7b | 57 | <delete failonerror="false"> |
067490ab AM |
58 | <fileset dir="doc" includes="**/*.html" /> |
59 | <fileset dir="doc" includes="**/*.xml" /> | |
60 | </delete> | |
61 | </target> | |
62 | ||
63 | </project> |