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

@@ -1,12 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<classpathentry kind="src" path="src">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Mimis/native"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="native"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Mimis"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="resource"/>
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="lib/log4j-1.2.16.jar"/>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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,9 +34,7 @@ public class Multiplexer extends Worker {
}
} else if (this.object.equals(object)) {
end = false;
synchronized (this) {
notifyAll();
}
} else {
end = true;
synchronized (this) {
@@ -47,7 +45,6 @@ public class Multiplexer extends Worker {
}
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();