Revision [58]
This is an old revision of Run made by DavidLee on 2008-04-20 08:08:58.
Run xmlsh
To run xmlsh invoke java and supply the necessary classpath and main class name org.xmlsh.sh.shell.Shell
There are sample scripts for windows and unix systems in the win32 and unix directories. These can be used "as is" or used as a template for custom invocation.
Windows
In win32/xmlsh.bat@set CLASSPATH=%XMLSH%\bin\xmlsh.jar @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\log4j-1.2.7.jar @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon9.jar @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon9-dom.jar @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon9-s9api.jar @java -Xmx1024m -Xms256m org.xmlsh.sh.shell.Shell %*
Unix
In unix/xmlshCLASSPATH=$XMLSH/bin/xmlsh.jar CLASSPATH=$CLASSPATH:$XMLSH/lib/log4j-1.2.7.jar CLASSPATH=$CLASSPATH:$XMLSH/lib/saxon9.jar CLASSPATH=$CLASSPATH:$XMLSH/lib/saxon9-dom.jar CLASSPATH=$CLASSPATH:$XMLSH/lib/saxon9-s9api.jar java -cp $CLASSPATH -Xmx1024m -Xms256m org.xmlsh.sh.shell.Shell $*
Running
Copy the appropreate script (edited if necessary) to a location in your PATH or modify your PATH to include the location of the script. Then you can run xmlsh by typingxmlsh