~ubuntu-branches/ubuntu/wily/eclipse-linuxtools/wily

« back to all changes in this revision

Viewing changes to gprof/org.eclipse.linuxtools.gprof.docs/build-doc.xml

  • Committer: Package Import Robot
  • Author(s): Jakub Adam, Jakub Adam, tony mancill
  • Date: 2014-10-11 11:44:05 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20141011114405-yazjvxfzzhmi5sgj
Tags: 3.1.0-1
[ Jakub Adam ]
* New upstream release (Closes: #761524).
* Refreshed d/patches.
* Don't build removed feature org.eclipse.linuxtools.tools.launch
  - merged into org.eclipse.linuxtools.profiling.
* Use javac target 1.7.
* Build new feature org.eclipse.linuxtools.dataviewers.feature
  - required by Valgrind integration.
* Build-depend on eclipse-remote-services-api and eclipse-cdt-autotools.
* Bump Standards-Version to 3.9.6.
* Override incompatible-java-bytecode-format - linuxtools needs Java 7.
* Remove unused codeless-jar override.

[ tony mancill ]
* Tweak short package description to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 -->
12
12
 
13
13
<project name="org.eclipse.linuxtools.gprof.docs" default="all">
14
 
        <description>
 
14
    <description>
15
15
            Generate Eclipse help content from the Eclipsepedia wiki
16
16
    </description>
17
17
 
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"/>
21
 
 
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" />
26
 
                </fileset>
27
 
        </path>
28
 
 
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" />
31
 
 
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*">
34
 
 
35
 
                        <path name="Linux_Tools_Project/GProf/User_Guide" title="GProf User Guide" generateToc="false" />
36
 
                        <stylesheet url="book.css" />
37
 
                        <pageAppendum>
38
 
                        = Updating This Document =
39
 
 
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 .
42
 
                                                                 </pageAppendum>
43
 
                </mediawiki-to-eclipse-help>
44
 
                <antcall target="test" />
45
 
        </target>
46
 
 
47
 
        <target name="test" description="verify that all of the HTML files are well-formed XML">
48
 
                <echo level="info">
 
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"/>
 
21
 
 
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" />
 
26
        </fileset>
 
27
    </path>
 
28
 
 
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" />
 
31
 
 
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*">
 
34
 
 
35
            <path name="Linux_Tools_Project/GProf/User_Guide" title="GProf User Guide" generateToc="false" />
 
36
            <stylesheet url="book.css" />
 
37
            <pageAppendum>
 
38
            = Updating This Document =
 
39
 
 
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 .
 
42
                                             </pageAppendum>
 
43
        </mediawiki-to-eclipse-help>
 
44
        <antcall target="test" />
 
45
    </target>
 
46
 
 
47
    <target name="test" description="verify that all of the HTML files are well-formed XML">
 
48
        <echo level="info">
49
49
Validating help content XML and HTML files: The Eclipse help system expects well-formed XML
50
 
                        
 
50
 
51
51
If validation fails it is because either:
52
 
                        
 
52
 
53
53
* the userguide source code is poorly formed, or
54
54
* the WikiText MediaWiki parser has a bug
55
 
                        
 
55
 
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)
58
 
                </echo>
 
58
        </echo>
59
59
 
60
 
                <!-- 
61
 
                Don't bother with DTD validation: we only care if the files are well-formed.
62
 
                We therefore provide an empty DTD 
63
 
                -->
64
 
                <echo file="tmp/__empty.dtd" message="" />
65
 
                <xmlvalidate lenient="true">
66
 
                        <fileset dir="Linux_Tools_Project">
67
 
                                <include name="**/*.html" />
68
 
                        </fileset>
69
 
                        <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
70
 
                </xmlvalidate>
71
 
                <delete dir="tmp"/>
72
 
        </target>
 
60
        <!--
 
61
        Don't bother with DTD validation: we only care if the files are well-formed.
 
62
        We therefore provide an empty DTD
 
63
        -->
 
64
        <echo file="tmp/__empty.dtd" message="" />
 
65
        <xmlvalidate lenient="true">
 
66
            <fileset dir="Linux_Tools_Project">
 
67
                <include name="**/*.html" />
 
68
            </fileset>
 
69
            <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
 
70
        </xmlvalidate>
 
71
        <delete dir="tmp"/>
 
72
    </target>
73
73
</project>