Access trac's wiki pages via ant [message #599957] |
Thu, 05 November 2009 09:05  |
Eclipse User |
|
|
|
Hi,
I would like to use wikitext to create an eclipse-help and a pdf from our trac's wiki pages - if possible. So far I have set up a build-script which works upon a local file basis. But as I do not have the wiki pages locally I wonder if there is an existing ant-task which can grab the wiki-pages from the trac on the fly, maybe via xml-rpc interface? Or what is the common approach to do something like what I'm intending to do?
Here is the build-script which I'm currently using to generate pdf:
<project name="build pdf documentation" default="generate-pdf">
<property name="wikitext.standalone" value="c:/dev/mylyn-wikitext-standalone-3.3.0.v20091015-0500 "/>
<property name="fop.home" value="c:/dev/fop-0.95"/>
<path id="wikitext.classpath">
<fileset dir="${wikitext.standalone}">
<include name="org.eclipse.mylyn.wikitext.*core*.jar"/>
</fileset>
</path>
<taskdef classpathref="wikitext.classpath" resource=" org/eclipse/mylyn/wikitext/core/util/anttask/tasks.propertie s " />
<target name="generate-pdf" depends="generate-xsl-fo">
<antcall target="xslfo-to-pdf" />
</target>
<target name="generate-xsl-fo" description="Generate PDF from TracWiki">
<wikitext-to-xslfo markupLanguage="TracWiki"
version="0.1"
date="2009-11-05"
title="My Document"
subTitle="Just a test documentation">
<fileset dir="${basedir}">
<include name="tracwiki/*.tracwiki"/>
</fileset>
</wikitext-to-xslfo>
</target>
<target name="xslfo-to-pdf">
<exec command="${fop.home}/fop.bat">
<arg value="-r"/>
<arg value="tracwiki/TestPage.fo"/>
<arg value="${basedir}/Documentation.pdf"/>
</exec>
</target>
</project>
And another question: how do I generate one single FO file from multiple wiki files?
Thx,
Oliver
|
|
|
|
Powered by
FUDForum. Page generated in 0.03939 seconds