Remove support for module layout

Closes gh-8107
This commit is contained in:
Andy Wilkinson
2017-01-25 16:49:37 +00:00
parent 3ce6d8e5b5
commit bdf903896f
8 changed files with 0 additions and 145 deletions

View File

@@ -17,12 +17,9 @@
package org.springframework.boot.loader.tools;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Common {@link Layout}s.
@@ -156,40 +153,4 @@ public final class Layouts {
}
/**
* Module layout (designed to be used as a "plug-in").
* @deprecated since 1.5 in favour of a custom {@link LayoutFactory}
*/
@Deprecated
public static class Module implements Layout {
private static final Set<LibraryScope> LIB_DESTINATION_SCOPES = new HashSet<LibraryScope>(
Arrays.asList(LibraryScope.COMPILE, LibraryScope.RUNTIME,
LibraryScope.CUSTOM));
@Override
public String getLauncherClassName() {
return null;
}
@Override
public String getLibraryDestination(String libraryName, LibraryScope scope) {
if (LIB_DESTINATION_SCOPES.contains(scope)) {
return "lib/";
}
return null;
}
@Override
public String getClassesLocation() {
return "";
}
@Override
public boolean isExecutable() {
return false;
}
}
}