[sikuli] 133/385: clarification for the cases running in Maven context
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:26:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
pini pushed a commit to tag upstream/1.1.0_beta1
in repository sikuli.
commit f237bc42b6840db0a84caea376ac01d2d48e3ff1
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Tue Jan 7 13:11:09 2014 +0100
clarification for the cases running in Maven context
---
Natives/src/main/java/org/sikuli/natives/WinUtil.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Natives/src/main/java/org/sikuli/natives/WinUtil.java b/Natives/src/main/java/org/sikuli/natives/WinUtil.java
index 1b5049c..719430b 100644
--- a/Natives/src/main/java/org/sikuli/natives/WinUtil.java
+++ b/Natives/src/main/java/org/sikuli/natives/WinUtil.java
@@ -12,10 +12,11 @@ import java.awt.Rectangle;
import java.awt.Window;
public class WinUtil implements OSUtil {
+
static {
- // load native library on 1st use
- // (it's a standard Java pattern to load it once class is loaded)
- FileManager.loadLibrary("WinUtil");
+ // might already be loaded by Sikuli startup procedures
+ // leave it here for the cases where startup is not yet done
+ FileManager.loadLibrary("WinUtil");
}
@Override
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/sikuli.git
More information about the pkg-java-commits
mailing list