Revision [1107]
This is an old revision of Run made by DavidLee on 2009-12-27 08:15:43.
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 appropriate 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 in interactive mode by typingxmlsh
You can run an xmlsh script by passing it as the first argument, followed by any script arguments
xmlsh myscript.xsh arg1 arg2