13
13
<project name="org.eclipse.linuxtools.gprof.docs" default="all">
15
15
Generate Eclipse help content from the Eclipsepedia wiki
18
<property name="gprof.help.doc.url.base" value="http://wiki.eclipse.org"/>
19
<property name="gprof.wiki.url.base" value="${gprof.help.doc.url.base}/Linux_Tools_Project/GProf"/>
20
<property name="imageFolder" value="images"/>
22
<path id="wikitext.tasks.classpath">
23
<!-- Replace dir with the dir you have wikitext installed into.-->
24
<fileset dir="/usr/share/eclipse/dropins/mylyn/eclipse/plugins">
25
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
29
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
30
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
32
<target name="all" description="Generate Eclipse help content for the Linux Tools Gprof user guide">
33
<mediawiki-to-eclipse-help wikiBaseUrl="${gprof.help.doc.url.base}" title="GProf User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
35
<path name="Linux_Tools_Project/GProf/User_Guide" title="GProf User Guide" generateToc="false" />
36
<stylesheet url="book.css" />
38
= Updating This Document =
40
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
41
http://wiki.eclipse.org/Linux_Tools_Project/GProf/User_Guide .
43
</mediawiki-to-eclipse-help>
44
<antcall target="test" />
47
<target name="test" description="verify that all of the HTML files are well-formed XML">
18
<property name="gprof.help.doc.url.base" value="http://wiki.eclipse.org"/>
19
<property name="gprof.wiki.url.base" value="${gprof.help.doc.url.base}/Linux_Tools_Project/GProf"/>
20
<property name="imageFolder" value="images"/>
22
<path id="wikitext.tasks.classpath">
23
<!-- Replace dir with the dir you have wikitext installed into.-->
24
<fileset dir="/usr/share/eclipse/dropins/mylyn/eclipse/plugins">
25
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
29
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
30
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
32
<target name="all" description="Generate Eclipse help content for the Linux Tools Gprof user guide">
33
<mediawiki-to-eclipse-help wikiBaseUrl="${gprof.help.doc.url.base}" title="GProf User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
35
<path name="Linux_Tools_Project/GProf/User_Guide" title="GProf User Guide" generateToc="false" />
36
<stylesheet url="book.css" />
38
= Updating This Document =
40
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
41
http://wiki.eclipse.org/Linux_Tools_Project/GProf/User_Guide .
43
</mediawiki-to-eclipse-help>
44
<antcall target="test" />
47
<target name="test" description="verify that all of the HTML files are well-formed XML">
49
49
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
51
51
If validation fails it is because either:
53
53
* the userguide source code is poorly formed, or
54
54
* the WikiText MediaWiki parser has a bug
56
56
Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
57
57
or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block)
61
Don't bother with DTD validation: we only care if the files are well-formed.
62
We therefore provide an empty DTD
64
<echo file="tmp/__empty.dtd" message="" />
65
<xmlvalidate lenient="true">
66
<fileset dir="Linux_Tools_Project">
67
<include name="**/*.html" />
69
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
61
Don't bother with DTD validation: we only care if the files are well-formed.
62
We therefore provide an empty DTD
64
<echo file="tmp/__empty.dtd" message="" />
65
<xmlvalidate lenient="true">
66
<fileset dir="Linux_Tools_Project">
67
<include name="**/*.html" />
69
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />