Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrschmitt2010-04-06 14:37:57 -0400
committerrschmitt2010-04-06 14:37:57 -0400
commit1559a72328394235122fa29f07820536c8145a64 (patch)
tree93f68526bd8a5604eaac58d85601f0565d63543b /plugins/org.eclipse.osee.framework.help.ui
parent014accac9b5214b3c8c6299388bbc8c6df9cda3d (diff)
downloadorg.eclipse.osee-1559a72328394235122fa29f07820536c8145a64.tar.gz
org.eclipse.osee-1559a72328394235122fa29f07820536c8145a64.tar.xz
org.eclipse.osee-1559a72328394235122fa29f07820536c8145a64.zip
Simplified help generation scripts
Diffstat (limited to 'plugins/org.eclipse.osee.framework.help.ui')
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/build-helper.xml151
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/build.properties2
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/plugin.xml24
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml113
4 files changed, 39 insertions, 251 deletions
diff --git a/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml b/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml
index 8c08ff3c9c..40f6f2a816 100644
--- a/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml
+++ b/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml
@@ -1,137 +1,44 @@
<?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" />
+ <import file="scripts/help-build-common.xml" />
- <description>
- Generate Eclipse help content for the OSEE user guide
+ <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"
+ <target name="all"
description="Generate Eclipse help content for the OSEE user guide">
<sequential>
- <delete>
- <fileset dir="userguide" />
+ <delete failonerror="false">
+ <fileset dir="OSEE" />
</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" />
+ <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" />
+ <copy todir="${basedir}/images" overwrite="true">
+ <fileset dir="scripts/commonImages" />
+ </copy>
</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>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/build.properties b/plugins/org.eclipse.osee.framework.help.ui/build.properties
index 35fd93940d..ef3e05cb93 100644
--- a/plugins/org.eclipse.osee.framework.help.ui/build.properties
+++ b/plugins/org.eclipse.osee.framework.help.ui/build.properties
@@ -3,9 +3,7 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
- userguide/,\
intro/,\
- images/,\
toc.xml,\
scripts/,\
cheatsheets/,\
diff --git a/plugins/org.eclipse.osee.framework.help.ui/plugin.xml b/plugins/org.eclipse.osee.framework.help.ui/plugin.xml
index 1c4222d408..f65da90cde 100644
--- a/plugins/org.eclipse.osee.framework.help.ui/plugin.xml
+++ b/plugins/org.eclipse.osee.framework.help.ui/plugin.xml
@@ -9,30 +9,6 @@
file="toc.xml"
primary="true">
</toc>
- <toc
- file="userguide/OSEE Features-toc.xml"
- primary="false">
- </toc>
- <toc
- file="userguide/OSEE Intro-toc.xml"
- primary="false">
- </toc>
- <toc
- file="userguide/OSEE Concepts-toc.xml"
- primary="false">
- </toc>
- <toc
- file="userguide/OSEE Tips-toc.xml"
- primary="false">
- </toc>
- <toc
- file="userguide/OSEE New-toc.xml"
- primary="false">
- </toc>
- <toc
- file="userguide/OSEE Update-toc.xml"
- primary="false">
- </toc>
</extension>
<extension
point="org.eclipse.ui.intro.configExtension">
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml b/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml
index 164b92fa40..b7f7445a93 100644
--- a/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml
@@ -1,109 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="help.common" basedir=".">
- <property name="extract.style.sheet" value="${ant.file.imported}${file.separator}extract-markup.xsl" />
- <dirname property="help.common.dir" file="${ant.file.help.common}" />
- <property name="mylyn.plugins.path" value="${help.common.dir}\..\lib" />
-
- <fail message="Specify the path to mylyn wikitext jars by setting 'mylyn.plugins.path'">
- <condition>
- <not>
- <isset property="mylyn.plugins.path" />
- </not>
-
- </condition>
- </fail>
-
- <taskdef resource="org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties">
- <classpath>
- <pathelement path="${classpath}" />
- <pathelement location="../org.eclipse.osee.framework.help.ui/@dot" />
- <pathelement location="../org.eclipse.osee.framework.help.ui/bin" />
- </classpath>
-
- </taskdef>
-
- <path id="wikitext.classpath">
- <fileset dir="${mylyn.plugins.path}">
- <include name="*.jar"/>
+ <property name="url" value="http://wiki.eclipse.org/OSEE" />
+ <path id="wikitext.classpath2">
+ <fileset dir="../org.eclipse.osee.framework.help.ui/lib">
+ <include name="*.jar" />
</fileset>
</path>
- <taskdef resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties" classpathref="wikitext.classpath"/>
- <taskdef resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" classpathref="wikitext.classpath"/>
-
- <target name="init">
- <mkdir dir="tmp" />
- </target>
-
- <target name="clean" depends="init">
- <delete includeemptydirs="true" failonerror="false">
- <fileset dir="tmp" />
- </delete>
- </target>
-
-<!-- <macrodef name="eclipse-wiki-to-help">
- <attribute name="help.doc.url.base" />
- <attribute name="wiki.url.base" />
- <attribute name="help.doc.url.html" />
- <attribute name="help.doc.url.xml" />
- <attribute name="help.doc.filenameNoExtension" />
- <attribute name="help.imageFolder" />
- <attribute name="targetFolder" />
-
- <sequential>
- <antcall target="init" />
- <osee-get dest="tmp/help.doc.xml" src="@{help.doc.url.xml}" />
- <osee-get dest="tmp/help.doc.html" src="@{help.doc.url.html}" />
-
- <copy todir="tmp">
- <fileset dir="images" />
- </copy>
-
- <osee-mediawiki-fetch-images
- src="tmp/help.doc.html"
- dest="tmp/"
- base="@{help.doc.url.base}" />
-
- <xslt style="${extract.style.sheet}" in="tmp/help.doc.xml" out="tmp/@{help.doc.filenameNoExtension}.mediawiki" />
-
- <wikitext-to-eclipse-help
- markupLanguage="org.eclipse.mylyn.wikitext.mediawiki.core.MediaWikiLanguage"
- multipleOutputFiles="true"
- navigationImages="true"
- helpPrefix="@{targetFolder}"
- internallinkpattern="@{wiki.url.base}/{0}"
- validate="true"
- failonvalidationerror="true"
- prependImagePrefix="@{help.imageFolder}"
- formatoutput="true">
- <fileset dir="tmp" includes="**/*.mediawiki" />
- <stylesheet url="book.css" />
- </wikitext-to-eclipse-help>
-
- <mkdir dir="@{targetFolder}/@{help.imageFolder}" />
- <copy todir="@{targetFolder}/@{help.imageFolder}" overwrite="true">
- <fileset dir="tmp">
- <exclude name="*.html" />
- <exclude name="*.mediawiki" />
- <exclude name="*.xml" />
- <exclude name="*.dtd" />
- </fileset>
- </copy>
- <copy todir="@{targetFolder}" overwrite="true">
- <fileset dir="tmp">
- <include name="*.html" />
- <include name="*toc.xml" />
- <exclude name="help.doc.html" />
- </fileset>
- </copy>
- <mkdir dir="@{targetFolder}/@{help.imageFolder}/@{help.imageFolder}" />
- <copy todir="@{targetFolder}/@{help.imageFolder}/@{help.imageFolder}" overwrite="true">
- <fileset dir="${ant.file.imported}/commonImages" />
- </copy>
- <antcall target="test" />
- <antcall target="clean" />
- </sequential>
- </macrodef>
- -->
-
+ <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" />
</project> \ No newline at end of file

Back to the top