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 U. Resheim is currently offline Torkild U. ResheimFriend
Messages: 14
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:Mylyn very slow
Next Topic:Commit messages has not been automatically filled with Mylyn, Jira and Gerrit
Goto Forum:
  


Current Time: Sat Apr 25 23:42:35 GMT 2015

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

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