Merge branch 'master' into lttng-luna
[deliverable/tracecompass.git] / org.eclipse.linuxtools.gdbtrace.help / build.xml
CommitLineData
6de2f761
PT
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (c) 2013 Ericsson
4
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9-->
10<project name="org.eclipse.linuxtools.gdbtrace.help" default="build">
11 <description>
12 Generate Eclipse help content for the Linux Tools GDB Tracepoint Analysis user guide
13 </description>
14
15 <!-- Set correct values -->
16 <property name="help.doc.url.base" value="http://wiki.eclipse.org" />
17 <property name="ug.path" value="Linux_Tools_Project/GDB_Tracepoint_Analysis/User_Guide" />
18 <property name="ug.title" value="GDB Tracepoint Analysis User Guide" />
19
20 <path id="wikitext.tasks.classpath">
21 <!-- Search in the local Eclipse installation directory for the Wikitext plugin -->
22 <fileset dir="${eclipse.home}/plugins" erroronmissingdir="false">
23 <include name="org.eclipse.mylyn.wikitext.*core*.jar" />
24 </fileset>
25
26 <!-- Search in the system-wide installation directory (Debian) -->
27 <fileset dir="/usr/share/eclipse/dropins/mylyn-wikitext/eclipse/plugins" erroronmissingdir="false">
28 <include name="org.eclipse.mylyn.wikitext.*core*.jar" />
29 </fileset>
30
31 <!-- For Maven builds: use the compile_classpath -->
32 <pathelement path="${compile_classpath}" />
33 </path>
34
35 <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
36 <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" />
37
38 <target name="build" description="Generate Eclipse help content for the Linux Tools GDB Tracepoint Analysis User Guide">
39 <wikitext-to-eclipse-help markupLanguage="MediaWiki"
40 validate="true"
41 failonvalidationerror="true"
42 overwrite="true"
43 multipleOutputFiles="true"
44 navigationimages="true"
45 title="${ug.title}"
46 formatoutput="true"
47 helpPrefix="doc">
48 <fileset dir="./doc">
49 <include name="User-Guide.mediawiki" />
50 </fileset>
51 <stylesheet url="book.css" />
52 </wikitext-to-eclipse-help>
53 <antcall target="test" />
54 </target>
55
56 <target name="test" description="Verify that all of the HTML files are well-formed XML">
57 <!--
58 Don't bother with DTD validation: we only care if the files are well-formed.
59 We therefore provide an empty DTD
60 -->
61 <xmlvalidate lenient="true">
62 <fileset dir="doc">
63 <include name="**/*.html" />
64 </fileset>
65 <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location=".empty.dtd" />
66 </xmlvalidate>
67 </target>
68
69 <!-- If you need a proxy for the "download" target, set it here -->
70 <!--
71 <setproxy proxyhost="host" proxyport="port"/>
72 -->
73
74 <target name="download" description="Download the current contents of the GDB Tracepoint Analysis User Guide from the Eclipse wiki">
75 <mediawiki-to-eclipse-help wikiBaseUrl="${help.doc.url.base}" title="${ug.title}" formatoutput="true" dest="." templateExcludes="*eclipseproject*">
76 <path name="${ug.path}" title="${ug.title}" generateToc="false" />
77 <stylesheet url="book.css" />
78 <pageAppendum>
79= Updating This Document =
80
81This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit
82http://wiki.eclipse.org/Linux_Tools_Project/GDB_Tracepoint_Analysis/User_Guide.
83 </pageAppendum>
84 </mediawiki-to-eclipse-help>
85 </target>
86
87 <target name ="clean" description="Delete all generated files">
88 <delete failonerror="false" includeemptydirs="true">
89 <!-- Files under doc/ (generated locally) -->
90 <fileset dir="doc" includes="**/*.html" />
91 <fileset dir="doc" includes="**/*.xml" />
92
93 <!-- Files downloaded from the Eclipse wiki -->
94 <fileset dir="Linux_Tools_Project" />
95 <fileset file="toc.xml" />
96 </delete>
97 </target>
98
99</project>
This page took 0.027674 seconds and 5 git commands to generate.