1 # ----------------------------------------------------------------
2 # Utility script for fetching the OpenSRF Java dependencies
3 # ----------------------------------------------------------------
6 STAX=stax-api-1.0.1.jar
7 WSTX=wstx-lgpl-3.2.1.jar
8 MEMCACHE=java_memcached-release_1.5.1.jar
12 STAX_URL=http://woodstox.codehaus.org/$STAX
13 WSTX_URL=http://woodstox.codehaus.org/3.2.1/$WSTX
14 MEMCACHE_URL=http://img.whalin.com/memcached/jdk5/standard/$MEMCACHE
15 JSON_URL=http://www.json.org/java/$JSON
17 JAVAC="javac -J-Xmx256m"
21 if [ ! -f deps/$STAX ]; then wget $STAX_URL -O deps/$STAX; fi
22 if [ ! -f deps/$WSTX ]; then wget $WSTX_URL -O deps/$WSTX; fi
23 if [ ! -f deps/$MEMCACHE ]; then wget $MEMCACHE_URL -O deps/$MEMCACHE; fi
24 if [ ! -f deps/$JSON ]; then
28 unzip $JSON && $JAVAC org/json/*.java;
33 if [ -n "$INSTALLDIR" ]; then
34 cp deps/*.jar "$INSTALLDIR"/;
37 echo "if you provide an INSTALLDIR setting, the script will go ahead and copy the jars into place"
38 echo "example: INSTALLDIR=/path/to/java $0"