UWC Quick Start

Universal Wiki Converter

Installation
Running Instructions
GUI

Installing and Pre-requisites

This document details Installation and pre-requisite information for the UWC

Prerequisites

  1. Java 5 (a.k.a. JDK 1.5) or higher
  2. The Confluence you want to send pages to must be running and accessible.
  3. A Confluence user/login id and password which has write permission to the space(s) you wish to add converted content to
  4. The Remote API must be turned on. See Adminstration -> General Configuration -> Remote API (XML-RPC & SOAP)
    Turn the Remote API on

backup

We recommend that you back up Confluence before running the UWC. (In theory this process involves no data loss, no deletions, but back up to be safe and easily revert to an earlier state.)

Installation Steps

  1. Download the uwc zip
  2. unzip it in a folder of your choice
  3. You may need to give execute permissions to the script you will be using.
    • run_uwc.bat (Windows)
    • run_uwc.sh (*nix)
    • run_uwc_on_mac.sh (Mac)
    • run_cmdline_devel.sh (UWC Command Line Interface)
      Example steps to give execute permissions to all shell scripts
      In a Mac Terminal:
      $shell$ cd uwc
      $shell$ chmod a+x *sh
      In a *nix Terminal:
      $shell$ cd uwc
      $shell$ chmod +x *sh
      
Installation Alternatives

The UWC has download links in a bunch of different locations now, including the Confluence Plugin Repository, and (as of Confluence 2.10) via the Administration Console. Note: If you're attempting to install the UWC via the Confluence Plugin Repository, the Install link will not work as the UWC is a standalone app. Instead, expand the description, and click the download link to download the uwc.zip, then follow the above instructions.

Running Instructions

You will run a different script depending on, well a couple of different things.

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!
For a quick idea of how the gui works, check out this 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:

  • A local directory of files, where each file represents a page in your wiki
  • A local directory of attachment data, if desired
  • Your connection settings to Confluence

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.

Wiki Specific

Remember, many of the preparation steps (like export or getting the correct attachment directory setting) are specific to your wiki. You'll need to check the notes on your specific wiki. See UWC Supported Wikis for a list.

Step by Step

Below is a list of general steps you'll need to accomplish to use the UWC.

  1. Install
    Install the UWC and make sure any pre-requisites are installed or enabled. See UWC Installation.
  2. Export
    Before you can convert your data into Confluence pages, you'll need to get your data out of your old wiki. See UWC Exporting
  3. Connection Settings
    Set up your connection settings to your Confluence, so that the UWC can upload the converted pages. See Conversion Settings
  4. Attachments Directory
    Find your attachments directory, and copy it to a locally accessible directory, if necessary. Your attachments directory setting will depend on your wiki. See UWC Supported Wikis for a link to your wiki-specific notes.
  5. Convert
    Run the UWC on your exported pages.

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.
Examples: Mediawiki, Tikiwiki, etc.
If the wikitype you are interested in is not displayed in the drop-down menu, then the UWC is not prepared to handle that wiki's conversion.

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
SSL and https

If you are trying to connect to an SSL protected Confluence, you will need to:

  1. include the protocol (https://) in the address setting
  2. turn on SSL settings as detailed here: UWC SSL Support

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

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.
Auto Detect Spacekeys Interferes

If your particular wiki converter uses the UWC Auto Detect Spacekeys Framework, then the Test Connection setting will return a BAD_SPACE error instead of SUCCESS. Other connection settings errors will be reported first, so if you get a BAD_SPACE error in this case, then you do know that your other settings are ok. See Jira issue: UWC-304

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

Demo video for UWC v3.0

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.

Labels

ui ui Delete
userdoc userdoc Delete
uwc uwc Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. 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.

    1. 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?