Installing and Pre-requisitesThis document details Installation and pre-requisite information for the UWC Prerequisites
Installation Steps
|
Running Instructions
You will run a different script depending on, well a couple of different things.
- Using the GUI? On...
- Command Line Interface
- Developer
Windows
- go to the directory you unzipped the UWC into
- run the run_uwc.bat script

Mac
- go to the directory you unzipped the UWC into
- run the run_uwc_on_mac.sh script

*Nix
- go to the directory you unzipped the UWC into
- run the run_uwc.sh script

Command Line Interface
See UWC Command Line Interface.
Developer
If you're developing with the UWC, you may find it faster to develop using the classes directory instead of the jar. In which case you would use the script run_uwc_devel.sh, instead of one the other shell scripts.
Using the GUI
|
This document details How the GUI works. |
Check out the video! |
Overview
|
In order to have a successful conversion, there are a number of steps that need to be accomplished. For an overview of the general tasks, see the sidebar. Once you have the UWC installed, the next thing you need to do is get all of the data that you're trying to move to Confluence into a format that the UWC can process. Generally speaking, things you will need are:
To get the local directory of files and the location of your attachment directory, you will need to read the export and attachment sections in the notes for your particular wiki. See UWC Supported Wikis to get a link to those notes. Your connection settings to Confluence include the Confluence url, your login information, and the spacekey for the space you wish to import pages to. To test that your settings are correct you can use the Test Connection tool in the UWC. Now that you have all your data ready, and you've successfully tested your Connection to Confluence, just choose your wiki from the drop-down menu, set your attachment directory setting, and add your pages, either with the Add button or by dragging and dropping them into the application. Once all of the necessary settings have been set, and you've added at least one page, the Convert button should become enabled. Click Convert. A popup window will appear to provide status updates regarding your conversion.
|
Step by StepBelow is a list of general steps you'll need to accomplish to use the UWC.
See UWC Quick Start for information on all of these steps. |
Conversion Settings
To convert or export a wiki, the user must set the following settings:
You can test that your settings are working with the Test Connection feature. |
Type
|
This indicates the wikitype you are converting from. Note: As many wiki's share certain syntaxes, it's possible for a clever user to take advantage of existing converters in a particular converter.XXX.properties file, and simply comment out the ones you don't want. If nothing else, unconverted pages can be uploaded to Confluence using the choice NoSyntaxConversions. |
Attachments
|
This is a wiki specific setting that is used to determine where attachments and other info not contained within the wiki syntax is located. You will need to read your wiki's UWC specific notes (Example: UWC Mediawiki Notes) to find info on which directory should populate this setting. |
Pages
|
Choose files or directories using the Add and Remove buttons, or by dragging and dropping files. Each file chosen will represent a page in Confluence. If you choose a directory, all pages below that directory will be converted. The contents of each file will be wiki specific, but in most cases will be the wiki syntax for that page. |
Address
|
The address of the Confluence you will be uploading the converted pages to. It should look something like one of the following: * localhost:8080 * something.com/confluence * https://localhost:8443
|
Login
|
Your username for the Confluence you are uploading these pages to. This username will need to have write permissions to the space you indicate. |
Password
|
The password for the above login. |
Space
|
The Confluence spacekey you are going to upload the pages to. Remember that the login you use must have write permissions to this space. |
Converting
|
Once you have set all the required settings, the Convert button will become available. Choose it to start your conversion. |
Exporting
|
The UWC is prepared to handle the export of certain wikis (jotspot, mediawiki, etc.), to prepare them for conversion by the UWC. The exporter will only become available, if the Type setting is for a wiki the UWC can export. You will need to edit the exporter.XXX.properties file. See your wiki's UWC specific documentation for more info on that. At the very least, you'll need to set where the UWC will export the wiki to. When you're properties file is edited, and you're ready, choose Export to export your wiki. As you'll have set the output directory in your exporter properties, once the export is complete, you should be able to find your exported pages in the directory you indicated. |
Other Tools
|
These are optional settings and tools that can be used but don't have to be. |
Optional Settings
- Pages will be sent to Confluence after conversion
- Launch Feedback Window after convert or export
- Restrict Attachment Upload Size
Pages will be sent to Confluence after conversion
|
By default, the UWC will send your converted pages to the Confluence you have indicated. But certain users, in particular developers, may not need this. They may just need a file representing the converted Confluence syntax, so they can improve their conversion, but not lose a lot of time uploading files. The UWC always creates a version of the page in it's output/output directory. The file representing this Confluence syntax will be the same as the name it's going to get in Confluence if it was to be uploaded. Unchecking the Pages will be sent... option simply means that the conversion completes after the files are saved, but before they would be uploaded. |
Launch Feedback Window after convert or export
|
By default, the UWC will launch the Feedback Window after every convert or export. If the user doesn't want this, just uncheck the Launch Feedback ... option. |
Restrict Attachment Upload Size
|
The user may want to restrict the size of attachments that could be uploaded to Confluence. Check the Restrict Uploaded Attachment Size... option, and set it in the associated text field. See UWC Restrict Attachment Size Feature for more info on what to put in that setting. |
Developer Tools
Test Connection
|
Click the Test Connection button to get feedback on your Confluence connection settings. If there are problems with the settings, you'll receive an Error message in the Feedback Window. If there aren't any problems, you'll get the message: Testing Connection Settings... SUCCESS.
|
Regex Tester
Non-developers can probable skip this one.
Developers:
Click the Regex Tester to launch a regular expressions tool. You can use it figure out new conversions that you can add to your converter properties file.
Launch Feedback Window
Click this to Launch the Feedback Window. This is useful to see previously output feedback messages.
Keyboard Commands
Most of the commands in the UWC can be controlled with the Keyboard.
Accelerators
Cx- means the OS specific accelerator. So: Windows users will get Ctrl, Mac users will get Cmd, etc.
Quitting
The quit command is also OS specific, so: Windows and Linux will get Ctrl-X, and Macs will get Cmd-Q.
Navigating the menu
To navigate the menu with the keyboard, use the Alt key followed by the underlined letter displayed by the menu.
List of Commands
| Features | Keyboard |
|---|---|
| Convert | Shift-Cx-C |
| Move to Conversion Settings Tab | Cx-1 |
| Move to Other Tools Tab | Cx-2 |
| Export | Cx-E |
| Add Pages (launches a dialog) | Cx-A |
| Remove Pages | Cx-R (see below) |
| Launch Feedback Window | Cx-F |
| Close Feedback Window | Escape |
| Close About Window | Escape |
More on Remove Pages
Choose the pages/directories you want to remove from the dialog by clicking on it, or tabbing to that panel and using the up and down arrows. You can choose multiple items by using the shift key. Then click Cx-R to remove them.
What about...
Saving Settings
Settings are designed to be saved automatically, including when you quit. There's a save option in the menu, and you should feel free to use it, but it really won't matter.
Reloading Converters
Every time you convert, the converter.XXX.properties file is re-loaded. So, change the properties file, and then convert.
UWC Version Info
This is visible in the title bar of the UWC.
The title should say:
Universal Wiki Converter v.X, where X is the version number.
Features and Limitations
The GUI provides the following basic features:
- The ability to convert other wiki's syntax to Confluence syntax
- The ability to export certain wiki's data into individual files that the UWC can use best
- Provide feedback to the user when a conversion or export is occurring and after.
- Contain the UWC's most important functionality in the main tab: Conversion Settings, and hide lesser used functionality in the Other Tools tab
- Provide Keyboard Commands for as many features as possible
- Provide Help documentation more directly.
It does not:
- remove the need for the user to edit properties files in some situations. Some Examples:
- Users who wish to export their Mediawiki will still need to edit the exporter.mediawiki.properties file.
- Users who wish to import tikiwiki gallery images, will need to edit the settings.tikiwiki.properties file
- Users who wish to change which converters are used will still need to edit their wiki's converter properties file
- display all possible logging messages. Only the ones deemed most important will be displayed in the Feedback Window. For more extensive debugging and otherwise log messages, the user will still need to examine the uwc.log.
All Screenshots
Demo Video
Versioning Info
| Available as of v.46 As of v. 46, the UWC will have a new GUI. |
Other Features
Orphan Attachments Upload Feature
– I want to maintain all attachments from my old wiki, even if some of them aren't referred to by a particular page. How do I do that?
We call attachments that aren't referred to by a particular page Orphaned Attachments. You can automatically upload these attachments by using the UWC Orphan Attachments Upload Feature. See that doc for info on how to turn this feature on. (It's off by default.)
Command Line Interface
– I don't want to use the GUI! What to do?
You might find the UWC Command Line Interface to be helpful. It doesn't do everything the GUI does (yet), so note that your mileage will vary depending on your particular needs.







Comments (2)
May 13, 2008
JK Collins says:
I downloaded and unzipped uwc.zip, used chmod to give myself read and execute pe...I downloaded and unzipped uwc.zip, used chmod to give myself read and execute permissions, but the run_uwc_on_mac.sh still doesn't execute for me like the demo? What am I doing wrong? My folder icons look nothing like the demo video either. When I double-click the file it just opens in text editor.
May 23, 2008
Brendan Patterson says:
What happens when you run the UWC from the command line shell? Macintosh-4:uwc ...What happens when you run the UWC from the command line shell?
Macintosh-4:uwc brendan$ ./run_uwc_on_mac.sh
or
Macintosh-4:uwc brendan$ . ./run_uwc_on_mac.sh
both should work. Perhaps you're missing another perquisite?