blob: b82c4764276d9a3b635cf63f4b9167038b859551 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!--
Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Lukas Ladenberger - initial API and implementation
<project name="org.eclipse.mylyn.wikitext.example" default="all">
Generate Eclipse help content for the RMF user guide
<property name="help.doc.url.base" value=""/>
<property name="wiki.url.base" value="${help.doc.url.base}/RMF"/>
<property name="imageFolder" value="images"/>
<path id="wikitext.tasks.classpath">
<fileset dir="lib">
<include name="org.eclipse.mylyn.wikitext.*core*.jar"/>
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/"/>
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/"/>
<target name="init">
<mkdir dir="tmp"/>
<target name="clean" depends="init">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="tmp"/>
<target name="all" depends="generate-help, test"/>
<target name="generate-help" depends="init" description="Generate Eclipse help content for the RMF user guide">
<path name="RMF/User_Guide/Tutorial" title="ProR Tutorial" generateToc="true"/>
<path name="RMF/User_Guide/Reference" title="ProR Reference" generateToc="true"/>
<path name="RMF/User_Guide/Presentations" title="ProR Presentations Plugins" generateToc="true"/>
<path name="RMF/FAQ" title="ProR FAQ" generateToc="true"/>
<path name="RMF/User_Guide/Glossary" title="ProR Glossary" generateToc="true"/>
= Updating This Document =
This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
<target name="test" depends="init" description="verify that all of the HTML files are well-formed XML">
<echo level="info">
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
If validation fails it is because either:
* the userguide source code is poorly formed, or
* the WikiText MediaWiki parser has a bug
Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block)
Don't bother with DTD validation: we only care if the files are well-formed.
We therefore provide an empty DTD
<mkdir dir="tmp"/>
<echo file="tmp/__empty.dtd" message=""/>
<xmlvalidate lenient="true">
<fileset dir="RMF">
<include name="**/*.xml"/>
<fileset dir="RMF">
<include name="**/*.html"/>
<fileset dir=".">
<include name="*toc.xml"/>
<dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd"/>