Native libraries verplaatst naar root, dat is meer consistent.

This commit is contained in:
2011-06-16 07:53:40 +00:00
parent 5cbe047b32
commit e4515cca10
19 changed files with 18 additions and 11 deletions

View File

@@ -38,6 +38,13 @@ public abstract class WindowsApplication extends CMDApplication {
}
}
public boolean active() {
if (!active) {
handle = Windows.findWindow(name, null);
}
return super.active();
}
public void deactivate() throws DeactivateException {
try {
VBScript.terminate(program);

View File

@@ -22,7 +22,7 @@ public class Multiplexer extends Worker {
this.signalListener = signalListener;
}
public void add(Object object) {
public synchronized void add(Object object) {
if (this.object == null) {
signalListener.add(Signal.BEGIN, object);
this.object = object;
@@ -34,20 +34,17 @@ public class Multiplexer extends Worker {
}
} else if (this.object.equals(object)) {
end = false;
synchronized (this) {
notifyAll();
}
notifyAll();
} else {
end = true;
synchronized (this) {
notifyAll();
notifyAll();
}
add(object);
}
}
protected void work() {
log.debug("Multiplexer work");
try {
synchronized (this) {
wait(TIMEOUT);

View File

@@ -8,7 +8,7 @@ import java.util.Scanner;
public class Native {
public static int getHandle(String title) throws IOException {
String command = String.format("native/list.exe w");
String command = String.format("list.exe w");
Process process = Runtime.getRuntime().exec(command);
Scanner scanner = new Scanner(process.getInputStream());
scanner.nextLine();
@@ -27,7 +27,7 @@ public class Native {
}
public static String getProgram(int processId) throws IOException {
String command = String.format("native/list.exe p");
String command = String.format("list.exe p");
Process process = Runtime.getRuntime().exec(command);
Scanner scanner = new Scanner(process.getInputStream());
scanner.nextLine();