wija and its plug-ins are written in Java language (J2SE; Java 2 Standard Edition)*1. You will need to install JDK (J2SE Development Kit) to develop programs using J2SE (bundled with OS in case of Mac OS X). We assume that ant tool is used for builds.
The versions of all software (including wija and its plug-ins) and web sites developed and distributed by Media Art Online are managed using Perforce software. It is a commercial software, but Perforce has agreed to grant free licenses for 40 users in Media Art Online only in the case where those licenses are used for development in open source projects. Also, since the client software for Perforce is free, anyone can obtain the latest source code using the software even if they do not intend to participate in development at Media Art Online.
We have prepared the wija-devel-en mailing list (the English-only version of wija-devel) to share those licenses and to discuss issues in the development of wija and its related software. For each member of wija-devel-en list, a writing-enabled Perforce user account is allocated.
If you are interested in joining wija-devel-en, please let us know at the following
The members of wija-devel-en can try out the latest software or documentation by receiving a review message by Perforce right after a modification is made to the development items in which they are interested.
However, what you can obtain from Perforce is source code, so that you will need to build the softare using the development tools in order to actually try them out. It could be too complex for people who do not normally develop software.
Therefore, an internal release is made almost nightly, so that people who do not wish to use the development tools can still check changes when they are made.
This internal release is made in the early morning (JST) of the next day following a new modification (the procedure will be automated in future, but for the time being, it is manually done, which may make the timing rather unpredictable). The following URL is reserved for the internal releases.
@ At the beginning., the internal releases themselves will be notified by review messages.
An internal release is provided in the form of a compressed archive file whose name contains the latest Perforce change number.
wija-change#.zip
Likewise, you will need to build help pages on your computer from their source code written in "OmniDocument?" format. To do so, you will need to use one of our development tools (help page generator).
However, Media Art Online staff (a software robot in future) will always build help pages on our second web server whenever a modification is made to the documentation. This will let you browse the updated pages on the following URL after sometime:
If no one sees a problem in the updated documentation, the modification will be propagated to the published site at http://www.media-art-online.org/wija/ .
Perforce is a software to help people physically distributed in many distant locations, using different computers, to develop the same software and/or documentation using the Internet. Perforce lets you manage versions of each file of which a software or a documentation consist.
Why Perforce:
There are a lot of versioning software available in the market other than Perforce. CVS (Concurrent Versions System) is perhaps the most well-known example of such software, being free, and is used broadly for development of free software. The reasons why Media Art Online uses Perforce include 1) it is faster, 2) it is well-designed, 3) it provides more minute control over accessing the files.
The following environment variables may have to be set. How to do so depends on the platform you are using.
Name | Meaning | Setting |
P4CLIENT | Client name | Used for identifying the workspace the user uses |
---|---|---|
P4EDITOR | Editor | The editor software the user usually uses |
P4PASSWD | Password | The password notified to you |
P4PORT | Server name:port | perforce.media-art-online.org:1666 |
P4USER | User name | The user name notified to you |
The following is a suggestion for naming the clients.
computerName_scm <- client name to identify a software development space computerName_wcm <- client name to identify a document development space
(SCM stands for Software Configuration Management. WCM stands for Web Content Management.)
Because p4 software always lets you specify the client name by -c option, you do not need to set P4CLIENT, especially if you intend to use multiple clients all the time.
A p4 command takes the following form ($ is a prompt, which may be different in your environment).
$ p4 command [option...] [argument...]
Global options (such as -c) are specified before the command name.
$ p4 -c client command [option...] [argument...]
The following is the list of popular p4 commands.
Command | Function |
p4 add | Adds files |
---|---|
p4 client | Creates/edits/deletes a client |
p4 clients | Lists existing clients |
p4 delete | Deletes files |
p4 edit | Opens files for editing |
p4 resolve | Resolves conflicts of editions |
p4 revert | Cancels modifications before submitting |
p4 submit | Submits additions/editions/deletions to the depot |
p4 sync | Updates the workspace by obtaining files from the depot |
p4 user | Creates/edits/deletes a user |
p4 users | Lists existing users |
The Perforce application system in Media Art Online is called MAO WSCM (Media Art Online Web/Software Configuration Management). The following is an overview of the depot in MAO WSCM.
Path | Description |
//depot/wcm/... | Media Art Online Web site (including wija help pages) |
//depot/scm/... | Media Art Online software (including wija) |
//depot/docs/... | Media Art Online publications (papers and presentation materials) |
wija-devel(-en) mailing list members are configured to review //depot/wcm/... and //depot/scm/... by default (meaning that they will receive review messages when changes are made; the configuration can be changed by the members themselves). Those wija-devel(-en) members who are also members of Murai Lab. are configured to review //depot/docs/... by default as well.
The publications p4 submitted will be automatically accessible from the following URL.
The following is how directories related to wija are configured under //depot/scm/main/.
+-java----+ (directories under java are automatically created by a p4 sync) | | | +-org-+ | | | +-media-art-online-+ | | | +-encoding (encoding library) | | | +-gnupg (GnuPG library) | | | +-helpgen (help page generator) | | | +-iwat (i-WAT plug-in) | | | +-iwatsrv (i-WAT robot plug-in) | | | +-jabber (Jabber/XMPP library) | | | +-omelets (OMELETS (LETS) library) | | | +-plugin (plug-in library) | | | +-qtx (Cutie X plug-in) | | | +-spotlite (SpotLite plug-in) | | | +-tunes (Tunes plug-in) | | | +-whp (WIDE Hours plug-in) | | | +-whpsrv (WIDE Hours robot plug-in) | | | +-wija (wija library) | | | +-wija_ (wija main program) | | | +-wijabot (wija robot main program) | | | +-xml (XML library) | | +-javadoc (document directory; generated by ant doc) | +-javaout (output directory; needs to be created before building)
helpgen and omelets are not part of wija (helpgen is a help page generator. The OmniDocument? translator for help pages is currently included in omelets.)
wijabot is a automated version of wija, which is built separately from wija.
The following is how directories related to wija are configured under //depot/wcm/main/.
+-gnupg--+ | | | +-help (GnuPG help page) | +-iwat---+ (i-WAT home page) | | | +-help (i-WAT help page) | +-java---+ | | | +-help (Java help page) | +-png (image files) | +-png-en (image files for the English version) | +-wija---+ (wija home page) | +-help (wija help page) | +-download-+ (wija download page) | +-0.07 (version 0.07 release files) | :
In the above, i-WAT is used as an example of a plug-in module. Web pages for other plug-in modules developed in Media Art Online follow the same structure.
0.07 is an example of a released version.
The following is how the publications by the members of Media Art Online are configured under //depot/docs/main/.
+-tex-+ (LaTeX2e source files of papers and presentation materials) | +-eps (EPS figures for papers and presentation materials)
To configure your user profile, use p4 user command. By typing the following, you can open an editor window to edit your user profile.
$ p4 user userName
If you have obtained a Perforce user account from Media Art Online, you are strongly encouraged to change the initial password for security reasons.
Password: ****** <- rewrite
Also, the following initial settings for reviewing can be changed.
Reviews: //depot/wcm/... <- receive review messages for documentation. //depot/scm/... <- receive review messages for software.
After setting your user profile, create a client which is a mapping between the depot and your workspace. Open an editor window to edit a client by the following command line.
$ p4 client clientName
The client name should include your computer name (proper noun) so that it will be easy to distinguish (ex. iggy_wcm for documentation development on a computer named iggy).
Specify the Root and View for mapping a part of depot onto your workspace.
Root: baseDirectoryName (ex. /Users/alice/Programs)
Root specifies the base directory of your workspace. Suggested directory name for software development is "Programs" under your home directory. You would want to specify a Web-sharing directory on your computer for documentation development.
View: //depot/scm/main/java/org/... //clientName/java/org/...
View specifies the mapping between a path in the depot and a path in your workspace (relative from Root). The above view is for software development.
View: //depot/wcm/main/gnupg/... //clientName/gnupg/... //depot/wcm/main/iwat/... //clientName/iwat/... //depot/wcm/main/java/... //clientName/java/... //depot/wcm/main/png/... //clientName/png/... //depot/wcm/main/png-en/... //clientName/png-en/... //depot/wcm/main/wide_hour/help/... //clientName/wide_hour/help/... //depot/wcm/main/wija/... //clientName/wija/...
The above view, although lengthy, is for documentation development. This way, resources in your local disk can be saved, because Media Art Online web site (under //depot/wcm/main/) contains a lot other contents than wija-related pages.
By p4 sync command, you can download the contents of the depot into your workspace. The command line below specifies the client name by an option.
$ p4 -c clientName sync
ant tool is required for building software.
The command lines to build wija are like the below, assuming "~/Programs" is the base directory of your workspace.
$ cd ~/Programs/java/org/media_art_online/wija_ $ ant package
The executable software will be under "~/Prograsm/javaout/" after the build is complete (create "~/Programs/javaout" prior to your first build).
If you would further like to build plug-in modules, type as follows (in case of i-WAT).
$ cd ../iwat $ ant package
Currently, Perl is required for building documentation. You would also need to build helpgen prior to building documentation.
The following command lines assume that the base directory of your workspace for software development is "~/Programs".
$ cd ~/Programs/javaout $ perl helpgen.pl theBaseDirectoryOfDocumentationDevelopment
Upon receiving a review message and if you use Perforce, update your workspace by the latest files in the depot.
$ p4 -c clientName sync
Then, build the software and see if the update caused any problems.
If you do not use Perforce, wait for the next nightly build to try out.