source: subversion/applications/editors/applet/runapplet.sh @ 34903

Last change on this file since 34903 was 1846, checked in by joerg, 13 years ago

set executable property

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#/bin/sh
2#
3# Execute the Openstreetmap.org java applet from the command line
4
5if [ -z "$2" ] ; then
6    echo "Usage: $0 <emailaddr> <password>"
7    exit 1
8fi
9
10user="$1"; shift
11pass="$1"; shift
12
13if [ ! -d ./dist ] ; then
14    echo "You must first build the applet using ant"
15    nothing=`which ant`
16    if [ $? -ne 0 ] ; then 
17        echo "It appears you don't have ant installed."
18        echo "Install ant then run ant in the current directory"
19    fi
20    nothing=`which javac`
21    if [ $? -ne 0 ] ; then
22        echo "It appears you don't have a java development kit installed."
23        echo "Install a java development kit before running ant in the current directory"
24    fi   
25    exit 1   
26fi
27
28[ -n "$JAVA" ] || JAVA=java
29
30distdir=`dirname $0`/dist
31
32echo distdir is $distdir
33
34OSMCLASSPATH="$distdir/OSMApplet.jar:$distdir/MinML2.jar:$distdir/commons-codec-1.3.jar:$distdir/commons-httpclient-3.0-rc3.jar:$distdir/commons-logging.jar:$distdir/core.jar:$distdir/plugin.jar:$distdir/thinlet.jar"
35
36exec $JAVA $JAVAOPTS \
37    -cp $OSMCLASSPATH \
38    processing.core.PApplet \
39    org.openstreetmap.processing.OsmApplet \
40    --user="$user" --pass="$pass" $@
Note: See TracBrowser for help on using the repository browser.