Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8c08ff3c9cb7df5385a45dd0b220b5c099cbbf77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.osee.framework.help.ui" basedir="."
	default="all">
	<property name="osee.base.help.plugin" value="." />
	<property name="ant.file.imported" value="${osee.base.help.plugin}/scripts" />
	<import file="${ant.file.imported}/help-build-common.xml" />

	<description>
		Generate Eclipse help content for the OSEE user guide
	</description>

	<property name="osee.help.doc.url.base" value="http://wiki.eclipse.org" />
	<property name="osee.help.userguide.folder" value="userguide" />
	<property name="osee.help.image.folder" value="images" />

	<property name="osee.help.doc.intro" value="OSEE/Users_Guide/Getting_Started" />
	<property name="osee.help.doc.concepts" value="OSEE/Users_Guide/Concepts" />
	<property name="osee.help.doc.features" value="OSEE/Users_Guide/Features" />
	<property name="osee.help.doc.tips" value="OSEE/Users_Guide/Tips" />
	<property name="osee.help.doc.new" value="OSEE/Users_Guide/New" />
	<property name="osee.help.doc.update" value="OSEE/Users_Guide/Update" />
	
	<property name="osee.help.intro.file.name" value="OSEE Intro" />
	<property name="osee.help.concepts.file.name" value="OSEE Concepts" />
	<property name="osee.help.features.file.name" value="OSEE Features" />
	<property name="osee.help.tips.file.name" value="OSEE Tips" />
	<property name="osee.help.new.file.name" value="OSEE New" />
	<property name="osee.help.update.file.name" value="OSEE Update" />
	
	<target name="all" 
		description="Generate Eclipse help content for the OSEE user guide">
		<sequential>
			<delete>
				<fileset dir="userguide" />
			</delete>
			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.features}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.features}"
				help.doc.filenameNoExtension="${osee.help.features.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />
			
			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.intro}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.intro}"
				help.doc.filenameNoExtension="${osee.help.intro.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />
			
			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.concepts}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.concepts}"
				help.doc.filenameNoExtension="${osee.help.concepts.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />

			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.tips}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.tips}"
				help.doc.filenameNoExtension="${osee.help.tips.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />
			
			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.new}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.new}"
				help.doc.filenameNoExtension="${osee.help.new.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />
			
			<eclipse-wiki-to-help 
				help.doc.url.base="${osee.help.doc.url.base}"
				wiki.url.base="${osee.help.doc.url.base}/OSEE" 
				help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.update}"
				help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.update}"
				help.doc.filenameNoExtension="${osee.help.update.file.name}"
				help.imagefolder="${osee.help.image.folder}" 
				targetfolder="userguide" />
		</sequential>
	</target>
	
	<target name="generate-help" description="Generate Eclipse help content for the OSEE user guide">
		<path id="wikitext.classpath2">
			<fileset dir="lib">
				<include name="*.jar"/>
			</fileset>
		</path>

		<taskdef resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" classpathref="wikitext.classpath2"/>
		<taskdef resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" classpathref="wikitext.classpath2"/>

		<delete failonerror="false">
			<fileset dir="OSEE" />
		</delete>

		<mediawiki-to-eclipse-help
    		wikiBaseUrl="${osee.help.doc.url.base}"
			validate="true"
			failonvalidationerror="true"
			prependImagePrefix="images"
			formatoutput="true"
			defaultAbsoluteLinkTarget="osee_external"
			dest="${basedir}"
			navigationimages="true"
    		title="OSEE User's Guide"
    		generateUnifiedToc="true">
    		<path name="OSEE/Users_Guide/Getting_Started" title="Introduction"/>
    		<path name="OSEE/Users_Guide/Concepts" title="Concepts"/>
    		<path name="OSEE/Users_Guide/Features" title="Features"/>
    		<path name="OSEE/Users_Guide/Tips" title="Tips"/>
    		<path name="OSEE/Users_Guide/New" title="New"/>
    		<path name="OSEE/Users_Guide/Update" title="Update"/>
			<stylesheet url="book.css"/>
		    		<pageAppendum>

= Updating This Document =

This document is maintained in a collaborative wiki.  If you wish to update or modify this document please visit 
{url}</pageAppendum>
    	</mediawiki-to-eclipse-help>
		<mkdir dir="images/images" />
		<copy todir="${basedir}/images" overwrite="true">
			<fileset dir="${ant.file.imported}/commonImages" />
		</copy>

	</target>
</project>

Back to the top