Commit | Line | Data |
---|---|---|
f7db5dd5 VP |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project name="org.eclipse.linuxtools.tmf.pcap.help" default="build" basedir="."> | |
3 | <description> | |
4 | Generate Eclipse help content for the Linux Tools Pcap User Guide | |
5 | </description> | |
6 | ||
7 | <property name="ug.title" value="Pcap Network Tracing User Guide" /> | |
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"> | |
f7db5dd5 VP |
12 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> |
13 | <include name="com.google.guava_*.jar" /> | |
14 | </fileset> | |
15 | ||
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" /> | |
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" /> | |
24 | ||
25 | <target name="build" description="Generate Eclipse help content for the Linux Tools Pcap User Guide"> | |
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"> | |
36 | <include name="User-Guide.mediawiki" /> | |
37 | </fileset> | |
38 | <stylesheet url="book.css" /> | |
39 | </wikitext-to-eclipse-help> | |
40 | <antcall target="test" /> | |
41 | </target> | |
42 | ||
43 | <target name="test" description="Verify that all of the HTML files are well-formed XML"> | |
44 | <!-- | |
45 | Don't bother with DTD validation: we only care if the files are well-formed. | |
46 | We therefore provide an empty DTD | |
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"> | |
57 | <delete failonerror="false"> | |
58 | <fileset dir="doc" includes="**/*.html" /> | |
59 | <fileset dir="doc" includes="**/*.xml" /> | |
60 | </delete> | |
61 | </target> | |
62 | ||
63 | </project> |