- From: Florent Georges <fgeorges@fgeorges.org>
- Date: Mon, 31 Jan 2011 18:08:20 +0100
- To: Tony Rogers <tony@gonk.net>
- Cc: XProc Dev <xproc-dev@w3.org>
On 31 January 2011 17:45, Tony Rogers wrote:
Hi,
> I would like a bash alias that allows me to type calabash pipeline-file.xpl
In case this is of any interest, the following is the content of my
~/bin/calabash script. It contains some EXPath specific stuff (like
an EXPath own version of the Calabash JAR, and it own main class), but
is should be easy to adapt:
#! /bin/sh
# My own modified Calabash, for EXPath Pkg
CAL="${JAVA_LIBS}/org/expath/calabash.jar"
MAIN=org.expath.pkg.calabash.Main
SAXON="${JAVA_LIBS}/com/saxonica/saxonhe9-2-1-5j/saxon9he.jar"
CODEC="${JAVA_LIBS}/org/apache/commons-codec-1.4/commons-codec-1.4.jar"
LOG="${JAVA_LIBS}/org/apache/commons-logging-1.1.1/commons-logging-1.1.1.jar"
HC="${JAVA_LIBS}/org/apache/commons-httpclient-3.1/commons-httpclient-3.1.jar"
XUNIT="${JAVA_LIBS}/org/custommonkey/xmlunit-1.3/lib/xmlunit-1.3.jar"
JUNIT="${JAVA_LIBS}/org/junit/junit3.8.2/junit.jar"
XCC="${JAVA_LIBS}/com/marklogic/xcc.jar"
PKG_REP="${JAVA_LIBS}/org/expath/repo/pkg-repo.jar"
PKG_SAX="${JAVA_LIBS}/org/expath/repo/pkg-saxon.jar"
PKG_CAL="${JAVA_LIBS}/org/expath/repo/pkg-calabash.jar"
CP="$CAL:$SAXON:$CODEC:$LOG:$HC:$XUNIT:$JUNIT:$XCC:$PKG_REP:$PKG_SAX:$PKG_CAL"
# add the JAR files from the repo to the classpath
for jar in `find $EXPATH_REPO -name '*.jar'`; do
CP="$CP:$jar";
done
PHONE=-Dcom.xmlcalabash.phonehome=false
java $PROF -cp "$CP" "$PHONE" $MAIN "$@"
Of course, JAVA_LIBS has to be defined to point to the directory
where you put your JAR files (I put all my JAR files in the same
directory, organized by domain name).
Regards,
--
Florent Georges
http://fgeorges.org/
Received on Monday, 31 January 2011 17:09:12 UTC