[sikuli] 231/385: sikulixapi.jar should not be runnable

Gilles Filippini pini at moszumanska.debian.org
Sun Jun 29 19:26:17 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 7dd2be990780dccfebc8246768bb891afc12f0f7
Author: Raimund Hocke <info at its-me-raiman.de>
Date:   Wed Feb 19 14:37:31 2014 +0100

    sikulixapi.jar should not be runnable
---
 API/src/main/java/org/sikuli/script/SikuliX.java | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/API/src/main/java/org/sikuli/script/SikuliX.java b/API/src/main/java/org/sikuli/script/SikuliX.java
index d44628c..2715a74 100644
--- a/API/src/main/java/org/sikuli/script/SikuliX.java
+++ b/API/src/main/java/org/sikuli/script/SikuliX.java
@@ -10,7 +10,6 @@ import java.util.ArrayList;
 import java.util.List;
 import org.sikuli.basics.CommandArgs;
 import org.sikuli.basics.Debug;
-import org.sikuli.basics.Settings;
 import org.sikuli.basics.SikuliScript;
 
 /**
@@ -31,7 +30,7 @@ public class SikuliX {
     runningObservers.remove(r);
     Debug.log(3, me + "remove observer: now running %d observer(s)", runningObservers.size());
   }
-  
+
   public static void stopRunningObservers() {
     if (runningObservers.size() > 0) {
       Debug.log(3, me + "stopping %d running observer(s)", runningObservers.size());
@@ -41,26 +40,6 @@ public class SikuliX {
       runningObservers.clear();
     }
   }
-  
-  /**
-   * can be used in IDE's to run scripts
-   *
-   * @param args
-   */
-  public static void main(String[] args) {
-    if (args.length == 1 && "KeyBoardSetup".equals(args[0])) {
-      try {
-        Settings.InfoLogs = false;
-        Settings.ActionLogs = false;
-        Key.keyBoardSetup();
-      } catch (Exception ex) {
-        Debug.error("KeyBoardSetup: " + ex.getMessage());
-      }
-      System.exit(0);
-    } else {
-      SikuliScript.main(args);
-    }
-  }
 
   public static void endNormal(int n) {
     Debug.log(3, me + "endNormal: %d", n);

-- 
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