1
<?xml version="1.0" encoding="UTF-8"?>
3
Copyright (c) 2009 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
13
<project name="org.eclipse.linuxtools.rpm.ui.editor.doc" default="all">
15
Generate Eclipse help content for the Linux Tools Specfile Editor user guide
18
<property name="specfile.help.doc.url.base" value="http://wiki.eclipse.org" />
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 Specfile Editor user guide">
31
<mediawiki-to-eclipse-help wikiBaseUrl="${specfile.help.doc.url.base}" title="Specfile Editor User Guide" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
33
<path name="Linux_Tools_Project/SpecfileEditor/User_Guide" title="Specfile Editor 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/SpecfileEditor/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" />