mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Commit for Dave Daoust removing a problem with the BootLoader call to figure out the OS.
This commit is contained in:
parent
4b552f7499
commit
1f6a68d596
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ import org.eclipse.cdt.managedbuilder.core.IManagedConfigElement;
|
|||
import org.eclipse.cdt.managedbuilder.core.ITarget;
|
||||
import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||
import org.eclipse.core.boot.BootLoader;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.Node;
|
||||
|
@ -671,7 +671,7 @@ public class Target extends BuildObject implements ITarget {
|
|||
return parent.getCleanCommand();
|
||||
} else {
|
||||
// User forgot to specify it. Guess based on OS.
|
||||
if (BootLoader.getOS().equals("OS_WIN32")) { //$NON-NLS-1$
|
||||
if (Platform.getOS().equals("OS_WIN32")) { //$NON-NLS-1$
|
||||
return new String("del"); //$NON-NLS-1$
|
||||
} else {
|
||||
return new String("rm"); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue