From 2a8e9a91b7046320ebe25b5be919d49fc2992777 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 23 Jan 2013 18:08:32 +0000 Subject: [PATCH] * disable pre-caching of data via -Dapplication.warmup=skip --- source/net/sourceforge/filebot/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/Main.java b/source/net/sourceforge/filebot/Main.java index d85988df..60d68ba1 100644 --- a/source/net/sourceforge/filebot/Main.java +++ b/source/net/sourceforge/filebot/Main.java @@ -169,7 +169,9 @@ public class Main { } // pre-load certain resources in the background - warmupCachedResources(); + if (!"skip".equals(System.getProperty("application.warmup"))) { + warmupCachedResources(); + } // check for application updates (only when installed, i.e. not running via fatjar or webstart) if (!"skip".equals(System.getProperty("application.update"))) {