prompto.website.Application Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
package prompto.website;
import java.net.URL;
import java.util.Collection;
import prompto.cloud.Cloud;
import prompto.config.IServerConfiguration;
import prompto.libraries.Libraries;
import prompto.server.AppServer;
public class Application {
public static void main(String[] args) throws Throwable {
installCloudJARs();
Class> kmsClass = Class.forName("prompto.aws.KMS");
Collection urls = Libraries.getPromptoLibraries(Application.class, kmsClass);
IServerConfiguration config = AppServer.loadConfiguration(args);
config = config.withResourceURLs(urls.toArray(new URL[0]));
AppServer.main(config, null, null, null, null);
}
private static void installCloudJARs() throws Exception {
Cloud cloud = Cloud.current();
if(cloud==null)
return;
AppServer.installCloudJARs(cloud);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy