1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<project name="org.eclipse.linuxtools.valgrind.doc" default="all">
4
4
Generate Eclipse help content for the Linux Tools Valgrind user guide
7
<property name="help.doc.url.base" value="http://wiki.eclipse.org" />
9
<path id="wikitext.tasks.classpath">
10
<!-- Replace dir with the dir you have wikitext installed into.-->
11
<fileset dir="/usr/share/eclipse/dropins/mylyn/eclipse/plugins">
12
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
16
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
17
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
19
<target name="all" description="Generate Eclipse help content for the Linux Tools Valgrind user guide">
20
<mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}" title="Valgrind User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*, Infobox">
22
<path name="Linux_Tools_Project/Valgrind/User_Guide" title="Valgrind User Guide" generateToc="false" />
23
<stylesheet url="book.css" />
25
= Updating This Document =
27
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
28
http://wiki.eclipse.org/Linux_Tools_Project/Valgrind/User_Guide .
30
</mediawiki-to-eclipse-help>
31
<antcall target="test" />
34
<target name="test" description="verify that all of the HTML files are well-formed XML">
7
<property name="help.doc.url.base" value="http://wiki.eclipse.org" />
9
<path id="wikitext.tasks.classpath">
10
<!-- Replace dir with the dir you have wikitext installed into.-->
11
<fileset dir="/usr/share/eclipse/dropins/mylyn/eclipse/plugins">
12
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
16
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
17
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
19
<target name="all" description="Generate Eclipse help content for the Linux Tools Valgrind user guide">
20
<mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}" title="Valgrind User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*, Infobox">
22
<path name="Linux_Tools_Project/Valgrind/User_Guide" title="Valgrind User Guide" generateToc="false" />
23
<stylesheet url="book.css" />
25
= Updating This Document =
27
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
28
http://wiki.eclipse.org/Linux_Tools_Project/Valgrind/User_Guide .
30
</mediawiki-to-eclipse-help>
31
<antcall target="test" />
34
<target name="test" description="verify that all of the HTML files are well-formed XML">
36
36
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
38
38
If validation fails it is because either:
40
40
* the userguide source code is poorly formed, or
41
41
* the WikiText MediaWiki parser has a bug
43
43
Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
44
44
or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block)
48
Don't bother with DTD validation: we only care if the files are well-formed.
49
We therefore provide an empty DTD
51
<echo file="tmp/__empty.dtd" message="" />
52
<xmlvalidate lenient="true">
53
<fileset dir="Linux_Tools_Project">
54
<include name="**/*.html" />
56
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
48
Don't bother with DTD validation: we only care if the files are well-formed.
49
We therefore provide an empty DTD
51
<echo file="tmp/__empty.dtd" message="" />
52
<xmlvalidate lenient="true">
53
<fileset dir="Linux_Tools_Project">
54
<include name="**/*.html" />
56
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />