Commit | Line | Data |
---|---|---|
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 | --> | |
8995fed0 | 10 | <project name="org.eclipse.tracecompass.gdbtrace.doc.user" default="build"> |
6de2f761 | 11 | <description> |
502334c4 | 12 | Generate Eclipse help content for the Trace Compass GDB Tracepoint Analysis User Guide |
6de2f761 PT |
13 | </description> |
14 | ||
502334c4 | 15 | <property name="document.title" value="GDB Tracepoint Analysis User Guide" /> |
6de2f761 PT |
16 | |
17 | <path id="wikitext.tasks.classpath"> | |
9298e695 MAL |
18 | <!-- Search in the local Eclipse plugins directory for the Wikitext plugin --> |
19 | <fileset dir="${osgi.syspath}" erroronmissingdir="false"> | |
6de2f761 | 20 | <include name="org.eclipse.mylyn.wikitext.*core*.jar" /> |
571556ce | 21 | <include name="com.google.guava_*.jar" /> |
6de2f761 PT |
22 | </fileset> |
23 | ||
6de2f761 PT |
24 | <!-- For Maven builds: use the compile_classpath --> |
25 | <pathelement path="${compile_classpath}" /> | |
26 | </path> | |
27 | ||
4fc71fbc | 28 | <taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/wikitext/core/ant/tasks.properties" /> |
6de2f761 | 29 | |
502334c4 | 30 | <target name="build" description="Generate Eclipse help content for the Trace Compass GDB Tracepoint Analysis User Guide"> |
6de2f761 PT |
31 | <wikitext-to-eclipse-help markupLanguage="MediaWiki" |
32 | validate="true" | |
33 | failonvalidationerror="true" | |
34 | overwrite="true" | |
35 | multipleOutputFiles="true" | |
36 | navigationimages="true" | |
502334c4 | 37 | title="${document.title}" |
6de2f761 PT |
38 | formatoutput="true" |
39 | helpPrefix="doc"> | |
40 | <fileset dir="./doc"> | |
41 | <include name="User-Guide.mediawiki" /> | |
42 | </fileset> | |
43 | <stylesheet url="book.css" /> | |
44 | </wikitext-to-eclipse-help> | |
45 | <antcall target="test" /> | |
46 | </target> | |
47 | ||
48 | <target name="test" description="Verify that all of the HTML files are well-formed XML"> | |
49 | <!-- | |
50 | Don't bother with DTD validation: we only care if the files are well-formed. | |
51 | We therefore provide an empty DTD | |
52 | --> | |
53 | <xmlvalidate lenient="true"> | |
54 | <fileset dir="doc"> | |
55 | <include name="**/*.html" /> | |
56 | </fileset> | |
502334c4 | 57 | <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="../.empty.dtd" /> |
6de2f761 PT |
58 | </xmlvalidate> |
59 | </target> | |
60 | ||
6de2f761 PT |
61 | <target name ="clean" description="Delete all generated files"> |
62 | <delete failonerror="false" includeemptydirs="true"> | |
6de2f761 PT |
63 | <fileset dir="doc" includes="**/*.html" /> |
64 | <fileset dir="doc" includes="**/*.xml" /> | |
6de2f761 PT |
65 | </delete> |
66 | </target> | |
887cb879 MAL |
67 | <target name="build.index" description="Builds search index for the plug-in" if="eclipse.running"> |
68 | <help.buildHelpIndex manifest="${basedir}/plugin.xml" destination="${basedir}" /> | |
69 | </target> | |
6de2f761 | 70 | </project> |