@Override public Layout getLayout(File file) { return new Layout() { @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 null; } @Override public boolean isExecutable() { return false; } }; }
public ArchiveOptionHandler(String type, Layout layout) { this.type = type; this.layout = layout; }
LayoutType(Layout layout) { this.layout = layout; }
public Layout layout() { return this.layout; }
@Override public Layout getLayout(File source) { return new MidPointWarLayout(name); }
/** * Convenience method for use in a custom task. * @return the Layout to use or null if not explicitly set */ public Layout convertLayout() { return (this.layout == null ? null : this.layout.layout); }