1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-04 14:52:24 -05:00

Improve DavMail shell scripts

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2113 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-05-11 19:45:17 +00:00
parent d6c567001d
commit 94c5256100
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/sh
# Ubuntu setup instructions : # Ubuntu setup instructions :
# install java : # install java :
# sudo apt-get install sun-java6-bin # sudo apt-get install default-jre
# launch davmail : # launch davmail
BASE=`dirname $0` BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1 exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1

View File

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
#
# Usage: davmail [</path/to/davmail.properties>]
#
export LD_LIBRARY_PATH=/usr/lib/jni export LD_LIBRARY_PATH=/usr/lib/jni
for i in /usr/share/davmail/lib/*; do export CLASSPATH=$CLASSPATH:$i; done for i in /usr/share/davmail/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -Xmx512M -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@" exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@"