~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to rpm/org.eclipse.linuxtools.rpm.ui.editor.doc/build-helper.xml

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!--
 
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
 
8
   
 
9
    Contributors:
 
10
        Red Hat - initial API and implementation
 
11
 -->
 
12
 
 
13
<project name="org.eclipse.linuxtools.rpm.ui.editor.doc" default="all">
 
14
        <description>
 
15
            Generate Eclipse help content for the Linux Tools Specfile Editor user guide
 
16
    </description>
 
17
 
 
18
        <property name="specfile.help.doc.url.base" value="http://wiki.eclipse.org" />
 
19
        <property name="imageFolder" value="images" />
 
20
 
 
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" />
 
25
                </fileset>
 
26
        </path>
 
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" />
 
29
 
 
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*">
 
32
 
 
33
                        <path name="Linux_Tools_Project/SpecfileEditor/User_Guide" title="Specfile Editor User Guide" generateToc="false" />
 
34
                        <stylesheet url="book.css" />
 
35
                        <pageAppendum>
 
36
= Updating This Document =
 
37
 
 
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 .
 
40
                                         </pageAppendum>
 
41
                </mediawiki-to-eclipse-help>
 
42
                <antcall target="test" />
 
43
        </target>
 
44
 
 
45
        <target name="test" description="verify that all of the HTML files are well-formed XML">
 
46
                <echo level="info">
 
47
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
 
48
                        
 
49
If validation fails it is because either:
 
50
                        
 
51
* the userguide source code is poorly formed, or
 
52
* the WikiText MediaWiki parser has a bug
 
53
                        
 
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)
 
56
                </echo>
 
57
 
 
58
                <!-- 
 
59
                Don't bother with DTD validation: we only care if the files are well-formed.
 
60
                We therefore provide an empty DTD 
 
61
                -->
 
62
                <echo file="tmp/__empty.dtd" message="" />
 
63
                <xmlvalidate lenient="true">
 
64
                        <fileset dir="Linux_Tools_Project">
 
65
                                <include name="**/*.html" />
 
66
                        </fileset>
 
67
                        <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
 
68
                </xmlvalidate>
 
69
                <delete dir="tmp" />
 
70
        </target>
 
71
</project>