Revision [657]

This is an old revision of Run made by DavidLee on 2009-08-05 12:28:00.

 

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/xmlsh
CLASSPATH=$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 typing
xmlsh


You can run an xmlsh script by passing it as the first argument, followed by any script arguments
xmlsh myscript.xsh arg1 arg2


Details

For details on xmlsh invocation and parameters see xmlsh command

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki