1
<?xml version="1.0" encoding="UTF-8"?>
3
Copyright (c) 2011 Red Hat, Inc.
4
All rights reserved. This program and the accompanying materials
5
are made available under the terms of the Eclipse Public License v1.0
6
which accompanies this distribution, and is available at
7
http://www.eclipse.org/legal/epl-v10.html
10
Red Hat - initial API and implementation
12
<project name="org.eclipse.linuxtools.gcov.docs" default="all">
14
Generate Eclipse help content for the Linux Tools gcov user guide
17
<property name="gcov.help.doc.url.base" value="http://wiki.eclipse.org"/>
18
<property name="gcov.wiki.url.base" value="${gcov.help.doc.url.base}/Linux_Tools_Project/GCov"/>
19
<property name="imageFolder" value="images"/>
21
<path id="wikitext.tasks.classpath">
22
<!-- Replace dir with the dir you have wikitext installed into.-->
23
<fileset dir="/usr/share/eclipse/dropins/mylyn-wikitext/eclipse/plugins">
24
<include name="org.eclipse.mylyn.wikitext.*core*.jar" />
27
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
28
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
30
<target name="all" description="Generate Eclipse help content for the Linux Tools gcov user guide">
31
<mediawiki-to-eclipse-help wikiBaseUrl="${gcov.help.doc.url.base}" title="GCov User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
33
<path name="Linux_Tools_Project/GCov/User_Guide" title="GCov Plug-in User Guide" generateToc="false"/>
34
<stylesheet url="book.css" />
36
= Updating This Document =
38
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
39
http://wiki.eclipse.org/Linux_Tools_Project/GCov/User_Guide
41
</mediawiki-to-eclipse-help>
42
<antcall target="test" />
45
<target name="test" description="verify that all of the HTML files are well-formed XML">
47
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
49
If validation fails it is because either:
51
* the userguide source code is poorly formed, or
52
* the WikiText MediaWiki parser has a bug
54
Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
55
or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block)
59
Don't bother with DTD validation: we only care if the files are well-formed.
60
We therefore provide an empty DTD
62
<echo file="tmp/__empty.dtd" message="" />
63
<xmlvalidate lenient="true">
64
<fileset dir="Linux_Tools_Project">
65
<include name="**/*.html" />
67
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />