Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » [Wikitext] multipleOutputFiles on wikitext-to-html(Merging wikitext files)
[Wikitext] multipleOutputFiles on wikitext-to-html [message #1388475] Thu, 26 June 2014 13:52 Go to next message
Jean-Pierre Levac is currently offline Jean-Pierre LevacFriend
Messages: 2
Registered: June 2014
Junior Member
I am trying to merge all *.mediawiki file into one html file. It is my understanding that the multipleOutputFiles on the wikitext-to-html is for exactly this; but doesn't seem to be working.

Here is my ant task:


	<target name="generate.module.html" depends="load-mediawiki-tools" description="--> Generate HTML for a single project">
		<!-- Convert the mediawiki file to html -->
		<wt:wikitext-to-html markupLanguage="MediaWiki"	overwrite="true" title="info" multipleOutputFiles="true">
			<fileset dir="${basedir}">
				<include name="wiki/main.mediawiki"/>
				<include name="wiki/config.mediawiki"/>
				<include name="wiki/footer.mediawiki"/>
			</fileset>
		</wt:wikitext-to-html>
	</target>



This generates an HTML file for each of the mediawiki file. The desired result is to have all three files aggregated into info.html.

I am using the latest build as of today.

Is this feasible?

Thanks for any help,
JP
Re: [Wikitext] multipleOutputFiles on wikitext-to-html [message #1388531 is a reply to message #1388475] Thu, 26 June 2014 15:22 Go to previous messageGo to next message
Jean-Pierre Levac is currently offline Jean-Pierre LevacFriend
Messages: 2
Registered: June 2014
Junior Member
So far I've used concat to merge all the files prior to converting to html:

		<concat destfile="${myDest}/${filenameProperty}.mediawiki">
			<filelist dir="${basedir}/wiki" 
				files="main.mediawiki, config.mediawiki, footer.mediawiki"/>
		</concat>

Re: [Wikitext] multipleOutputFiles on wikitext-to-html [message #1447608 is a reply to message #1388475] Sat, 18 October 2014 15:52 Go to previous message
Torkild Resheim is currently offline Torkild ResheimFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Jean-Pierre,

The option "multipleOutputFiles" is for producing multiple _output_
files, so that won't work for you. Concatenating the input files prior
to conversion is the way to go. See
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.mylyn.wikitext.help.ui%2Fhelp%2FMarkup-Conversion.html&cp=40_2_3_1&anchor=ConversionusingAntbuildscripts


Best regards,
Torkild

On 2014-06-26 14:41:57 +0000, Jean-Pierre Levac said:

> I am trying to merge all *.mediawiki file into one html file. It is my
> understanding that the multipleOutputFiles on the wikitext-to-html is
> for exactly this; but doesn't seem to be working.
>
> Here is my ant task:
>
>
>
> <target name="generate.module.html" depends="load-mediawiki-tools"
> description="--> Generate HTML for a single project">
> <!-- Convert the mediawiki file to html -->
> <wt:wikitext-to-html markupLanguage="MediaWiki" overwrite="true"
> title="info" multipleOutputFiles="true">
> <fileset dir="${basedir}">
> <include name="wiki/main.mediawiki"/>
> <include name="wiki/config.mediawiki"/>
> <include name="wiki/footer.mediawiki"/>
> </fileset>
> </wt:wikitext-to-html>
> </target>
>
>
>
> This generates an HTML file for each of the mediawiki file. The desired
> result is to have all three files aggregated into info.html.
> I am using the latest build as of today.
>
> Is this feasible?
>
> Thanks for any help,
> JP
Previous Topic:[Wikitext textile] table with thead and tbody
Next Topic:[Task file indexer] Multiple OverlappingFilelockException
Goto Forum:
  


Current Time: Fri Apr 26 03:05:28 GMT 2024

Powered by FUDForum. Page generated in 0.03778 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top