Search in sources :

Example 1 with ClasspathResourceFetcher

use of org.bimserver.resources.ClasspathResourceFetcher in project BIMserver by opensourceBIM.

the class LocalDevBimServerStarterJar method main.

public static void main(String[] args) {
    OptionsParser optionsParser = new OptionsParser(args);
    ResourceFetcher resourceFetcher = new ClasspathResourceFetcher();
    try {
        String resourceBase = resourceFetcher.getURL("www").toExternalForm();
        System.out.println("Resource base" + resourceBase);
        new LocalDevBimServerStarterJar().start(-1, "127.0.0.1", "LocalDev BIMserver (8080)", 8080, 8085, optionsParser.getPluginDirectories(), optionsParser.getHome(), resourceFetcher, resourceBase, false);
    } catch (MalformedURLException e) {
        e.printStackTrace();
    }
}
Also used : MalformedURLException(java.net.MalformedURLException) ClasspathResourceFetcher(org.bimserver.resources.ClasspathResourceFetcher) ClasspathResourceFetcher(org.bimserver.resources.ClasspathResourceFetcher) ResourceFetcher(org.bimserver.plugins.ResourceFetcher) OptionsParser(org.bimserver.plugins.OptionsParser)

Aggregations

MalformedURLException (java.net.MalformedURLException)1 OptionsParser (org.bimserver.plugins.OptionsParser)1 ResourceFetcher (org.bimserver.plugins.ResourceFetcher)1 ClasspathResourceFetcher (org.bimserver.resources.ClasspathResourceFetcher)1