First cut of file system information for windows.

This commit is contained in:
Adam Murdoch
2012-09-15 09:58:34 +10:00
parent de4e340e2c
commit 17ab1f04ef
3 changed files with 59 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ public abstract class Platform {
@Override
public <T extends NativeIntegration> T get(Class<T> type) {
if (type.equals(net.rubygrapefruit.platform.Process.class)) {
if (type.equals(Process.class)) {
return type.cast(new DefaultProcess());
}
if (type.equals(Terminals.class)) {
@@ -64,6 +64,9 @@ public abstract class Platform {
if (type.equals(SystemInfo.class)) {
return type.cast(new DefaultSystemInfo());
}
if (type.equals(FileSystems.class)) {
return type.cast(new PosixFileSystems());
}
return super.get(type);
}
}