Convert JSPWiki to MediaWiki

Introduction
JSPWiki2mediaWiki is a java application. It converts JSPWiki to MediaWIki. It adds text files from JSPWiki and their attachments in your mediawiki website.

Acknowledgments
I would like to thank the society ARTAL Technologies in Labege in France. It allowed me to put on Internet the program I did during my work experience.

Requirements
Before starting the conversion you must download the Perl script JSPWiki2mediawiki.pl to convert the JSPWiki syntax to mediawiki.

You can find it at this address: Extension:JSPWiki2MediaWiki

For mediawiki in french I have already written patches : [[Media:perl_converter.zip]]

As the script author says, this conversion is not perfect. You will probably have some surprises you have to fix on your own.

I hope you are trying to install mediawiki in GNU/Linux because the script is not really operational in Windows.

Notice for non English people: the script is made for JSPWiki articles in English. There are problems with the special characters (for French people for instance). After the conversion you may change the encoding of your text files to UTF-8.

When you have the group of text files in mediawiki you can start to read the next paragraphs.

How to use this application?
Download the sources of the application : [[Media:JSP2MediaWiki.zip]]

First you have to move the articles (mediawiki format) in a folder named files in the Java application classpath. Then move the folder named JSPWikiattachments in the classpath too.

Notice: check that you don’t have any “%” in the folders names in JSPWikiattchments. They cause a crash during the execution for me.

Before using the application you must edit Config.java:
 * LOGIN: the administrator mediawiki administrator login
 * MDP: his password
 * RACINE: the root folder of mediawiki website
 * NAVIGATOR: BrowserVersion.FIREFOX_2. Application just test with this value.
 * EXT: the text files contain the articles must have as name: the title of the articles and an extension (.txt for exp). You have to precise the extension in this constant in order to allow to the Java application to know the articles titles.
 * ARTICLES: the folder name which contains the text files.
 * DOCUMENTS: folder for the attachements
 * CONFABSPATH: absolute pass a classpath folder (you have to put your articles and attchements in)

You can now make the conversion.

Contact
To congratulate me or send me 10 billion dollars:

Romain Damase

Email: roms.d@free.fr

(Please write [JSP2MediaWiki] as subject. Thank you!)