All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.mains.WarMain Maven / Gradle / Ivy

package org.jruby.mains;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;

public class WarMain extends AbstractLauncher {
    
    public static void main(String... args) throws Exception {
        new WarMain().launch(args);
    }
    
    Config processJar(URL jarFile, List urls) throws IOException {
        urls.add(jarFile);
        try (InputStream is = jarFile.openStream()) {
            ExtractedZip extractedZip = new ExtractedZip(is, true);
            urls.addAll(extractedZip.urls());
        }
        return new Config("uri:classloader://WEB-INF/classes", 
                          "uri:classloader://META-INF/jruby.home",
                          null);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy