# Installation This extension is currently automatically included in the Greenstone3 checkout. Whether it is installed during Greenstone3's 'ant install' is determined by the 'with.webswing' property in Greenstone3's build.properties. By default this is set to true. If you want to manually install it, run 'ant install-webswing-ext' in the top level greenstone3 folder. This sets up some properties, and calls the ant target 'add-extension' in the webswing build.xml. # Compilation The extension ships with a ready-to-go JAR/WAR file, and so no compilation is actually needed to install and use webswing However, if you do want to compile up the extension, then you need Maven and NodeJS installed. For example, using version of these command-line tools that are known to work: # # Assuming # ./get-selfcontained-jdk.sh # already done, then ... # # One time only setup # pushd ../../ext-cli ./get-selfcontained-mvn.sh ./get-selfcontained-nodejs.sh popd # # When starting a new terminal # pushd ../../ext-cli . ./SETUP-CLI.sh popd # Troubleshooting 1. JDK -- JAVA_HOME One of the 'mvn' tasks was found to need JAVA_HOME set. If using ./get-selfcontained-jdk.sh to provide java/javac, then this is set for you. 2. Gnome/Freedesktop/XDG 'trash' command-line utility If you are compiling this up outside of your home directory (say /opt/greenstone3-svn/ext/webswing) then you will need a a directory: /.Trash-$UID for the 'trash' command-line utility to function correctly. When the issue was enounctered, the particular trash folder that yielded the error was: /.Trash-1000 Explanation: For one of the mvn stages for compiling, it looks to run a npm 'clean' target, before compiling. The clean target uses 'trash', which (if things have previously been run) there there is a directory that needs to be moved to its 'trash folder'. When running in a disk partition that does not contian your /home/ account, then the XDG specification specifies this to be /.Trash-$UID