1
0
Fork 0
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:
Sean Evoy 2004-05-12 18:41:53 +00:00
parent 4b552f7499
commit 1f6a68d596

View file

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