1 # ----------------------------------------------------------------
2 # Utility script for fetching the OpenSRF Java dependencies
3 # ----------------------------------------------------------------
5 MEMCACHE=java_memcached-release_2.0.1.jar
6 MEMCACHE_URL=http://img.whalin.com/memcached/jdk6/standard/$MEMCACHE
7 JSON_URL=https://github.com/douglascrockford/JSON-java/zipball/master
12 if [ ! -f deps/$MEMCACHE ]; then wget $MEMCACHE_URL -O deps/$MEMCACHE; fi
13 if [ ! -f deps/$JSON_JAR ]; then
15 wget "$JSON_URL" -O $JSON_ZIP
18 cp douglascrockford*/*.java org/json/
20 jar cf $JSON_JAR org/json/*.class
24 if [ -n "$INSTALLDIR" ]; then
25 cp deps/*.jar "$INSTALLDIR"/;
28 echo "if you provide an INSTALLDIR setting, the script will go ahead and copy the jars into place"
29 echo "example: INSTALLDIR=/path/to/java $0"
34 echo "To compile OpenSRF java:"
36 echo "CLASSPATH=deps/$MEMCACHE:deps/$JSON_JAR javac org/opensrf/*.java org/opensrf/net/xmpp/*.java org/opensrf/util/*.java org/opensrf/test/*.java"