mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix 52790
This commit is contained in:
parent
6904bc4b71
commit
a26e6b67e2
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-02-24 Alain Magloire
|
||||||
|
Fix for PR 52790
|
||||||
|
For "Windows 98" fall back to Runtime.exec(..)
|
||||||
|
Spawner does not work on this platfrom
|
||||||
|
|
||||||
|
* utils/org/eclipse/cdt/utils/spawner.java
|
||||||
|
|
||||||
2004-02-24 Alain Magloire
|
2004-02-24 Alain Magloire
|
||||||
|
|
||||||
Bug fix the binary runner thread could get interrupted
|
Bug fix the binary runner thread could get interrupted
|
||||||
|
|
|
@ -16,10 +16,16 @@ public class ProcessFactory {
|
||||||
|
|
||||||
private ProcessFactory() {
|
private ProcessFactory() {
|
||||||
hasSpawner = false;
|
hasSpawner = false;
|
||||||
|
String OS = System.getProperty("os.name").toLowerCase();
|
||||||
runtime = Runtime.getRuntime();
|
runtime = Runtime.getRuntime();
|
||||||
try {
|
try {
|
||||||
System.loadLibrary("spawner"); //$NON-NLS-1$
|
// Spawner does not work for Windows 98 fallback
|
||||||
hasSpawner = true;
|
if (OS != null && OS.equals("windows 98")) {
|
||||||
|
hasSpawner = false;
|
||||||
|
} else {
|
||||||
|
System.loadLibrary("spawner"); //$NON-NLS-1$
|
||||||
|
hasSpawner = true;
|
||||||
|
}
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
//e.printStackTrace();
|
//e.printStackTrace();
|
||||||
} catch (UnsatisfiedLinkError e) {
|
} catch (UnsatisfiedLinkError e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue