[sikuli] 130/385: fixed a problem with tessdata export in the special case of running in Maven context
Gilles Filippini
pini at moszumanska.debian.org
Sun Jun 29 19:25:59 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 310f9879a46a3756fb815a3d46438d7717d3c6ca
Author: Raimund Hocke <rmhdevelop at me.com>
Date: Tue Jan 7 10:23:50 2014 +0100
fixed a problem with tessdata export in the special case of running in Maven context
---
.gitignore | 1 +
Basics/src/main/java/org/sikuli/basics/ResourceLoader.java | 2 ++
2 files changed, 3 insertions(+)
diff --git a/.gitignore b/.gitignore
index 5628acd..f53b88d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
target*/
.idea
+nb*
*.iml
stuff/
*.versionsBackup
diff --git a/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java b/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
index 11b0a60..ada54ef 100755
--- a/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
+++ b/Basics/src/main/java/org/sikuli/basics/ResourceLoader.java
@@ -547,9 +547,11 @@ public class ResourceLoader implements IResourceLoader {
}
}
URL currentURL = jarURL;
+ int lenOriginalURL = currentURL.toString().length();
//TODO special export cases from jars not on class path
if (res.contains("tessdata")) {
currentURL = tessURL;
+ prefix += currentURL.toString().length() - lenOriginalURL;
}
List<String[]> entries = makePackageFileList(currentURL, res, true);
if (entries == null || entries.isEmpty()) {
--
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