From ae6a2cb0aeb53fc2b8a85860bb254d4f2581377b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 28 Jul 2012 10:04:52 +0000 Subject: [PATCH] * make sure each filebot instance gets it's own locked ehcache dir --- installer/deb/filebot.sh | 2 +- installer/ipkg/filebot.sh | 2 +- installer/portable/FileBot.l4j.ini | 2 +- installer/portable/filebot.sh | 2 +- source/ehcache.xml | 2 +- source/net/sourceforge/filebot/Main.java | 65 ++++++++++++++++--- .../filebot/cli/ArgumentProcessor.java | 2 +- .../net/sourceforge/tuned/FileUtilities.java | 6 ++ 8 files changed, 69 insertions(+), 14 deletions(-) diff --git a/installer/deb/filebot.sh b/installer/deb/filebot.sh index e602ecaa..5cc1e1e3 100644 --- a/installer/deb/filebot.sh +++ b/installer/deb/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" +java -Dunixfs=false -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/.temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/ipkg/filebot.sh b/installer/ipkg/filebot.sh index 2b08b588..dd2113c2 100644 --- a/installer/ipkg/filebot.sh +++ b/installer/ipkg/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Dunixfs=false -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" +java -Dunixfs=false -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/.temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/portable/FileBot.l4j.ini b/installer/portable/FileBot.l4j.ini index eb1ffed6..9123d1de 100644 --- a/installer/portable/FileBot.l4j.ini +++ b/installer/portable/FileBot.l4j.ini @@ -21,7 +21,7 @@ -Dsun.net.client.defaultReadTimeout=25000 # put all temporary files here --Djava.io.tmpdir="%EXEDIR%/temp" +-Djava.io.tmpdir="%EXEDIR%/.temp" # look for native libs here -Djna.library.path="%EXEDIR%" diff --git a/installer/portable/filebot.sh b/installer/portable/filebot.sh index 51fe0a92..c1449182 100644 --- a/installer/portable/filebot.sh +++ b/installer/portable/filebot.sh @@ -3,4 +3,4 @@ SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file +java -Dunixfs=false -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/.temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file diff --git a/source/ehcache.xml b/source/ehcache.xml index 8c187f24..7021839a 100644 --- a/source/ehcache.xml +++ b/source/ehcache.xml @@ -3,7 +3,7 @@ - +