File: jython-fixes

package info (click to toggle)
plm 2.9.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,008 kB
  • sloc: java: 33,607; ansic: 4,069; python: 2,558; xml: 230; perl: 106; makefile: 63; sh: 17; javascript: 14
file content (25 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- The detection of jruby fails on Debian (the searched class is not
  there), but the functionality is working, so disable that detection

---
 src/plm/core/model/Game.java |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Index: b/src/plm/core/model/Game.java
===================================================================
--- a/src/plm/core/model/Game.java
+++ b/src/plm/core/model/Game.java
@@ -251,11 +251,9 @@ public class Game implements IWorldView
 	String pythonError = "";
 	private boolean checkPython() {
 		String[] resources = new String[] {
-				"/org/python/jsr223/PyScriptEngineFactory", "/org/jruby/ext/posix/util/Platform","/org/antlr/runtime/CharStream",
-				"/org/objectweb/asm/Opcodes"
+				"/org/python/jsr223/PyScriptEngineFactory"
 		};
-		String[] hints     = new String[] {"jython.jar", "jruby.jar","antlr3-runtime.jar",
-		"asm3.jar"};
+		String[] hints     = new String[] {"jython.jar"};
 		for (int i=0;i<resources.length;i++) {
 			pythonError = canResolve(resources[i],hints[i]);
 			if (!pythonError.isEmpty()) {