The wmt tool converts the CEE Moinmoin Wiki data to TeamForge JspWiki data. The
wmt-wrapper.sh script is a wrapper script for the
wmt.sh script that is used to invoke wmt.java
by using wmt.jar. The wmt-wrapper.sh script is
used to execute the wmt tool.
-
Edit the wmt-wrapper.sh mandatory input values:
- Open wmt-wrapper.sh for editing using vi
wmt-wrapper.sh.
-
Copy the CEE (moin-moin) Wiki data to your TeamForge server.
- In CEE box, Wiki data are in '$SITE_DIR/data/moinmoin' directory.
- In CTF production box, we usually copy to '$CTF_VAR_DIR/moinmoin'
directory.
- In CTF dev box, we usually copy to '/tmp/moinmoin' directory.
-
Download and extract the build.
-
Convert wmt-wrapper.sh to Unix format. i.e.$
dos2unix wmt-wrapper.sh
Note: Ensure that dos2unix is installed in the box.
-
Ensure if the script has executable permission. i.e. $ chmod +x
wmt.sh wmt-wrapper.sh
-
Set JAVA_HOME. Export PATH=$PATH:/usr/java/jdkx.x.x/bin export
JAVA_HOME=/usr/java/jdkxx.x.x./bin/java
-
Run the following scripts to do the following:
-
$ <WMT_BUILD_DIR>/wmt-wrapper.sh -a to
migrate all projects in the source directory.
-
$ <WMT_BUILD_DIR>/wmt-wrapper.sh -s to
migrate a particular project in the source directory.
-
Check /shared/data/wmt-logs/ for the migration status.
Note: The TeamForge Site Administrator also receives email notifications for
each Wiki that is migrated for each project.