This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext | |
apply plugin: "jetty" | |
def newResourceCollection(File... resources) { | |
shell = new GroovyShell(JettyPluginWebAppContext.class.classLoader) | |
shell.setProperty("resources", resources as String[]) | |
return shell.evaluate(file("resource_collection.groovy")) | |
} | |
jettyRun.doFirst { | |
jettyRun.webAppConfig = new JettyPluginWebAppContext() | |
jettyRun.webAppConfig.baseResource = newResourceCollection( | |
file("src/test/webapp"), | |
file("src/main/webapp")) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.mortbay.resource.ResourceCollection | |
new ResourceCollection(resources) |
Комментариев нет:
Отправить комментарий