mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 23:37:12 -07:00
Initial commit
This commit is contained in:
parent
05b1ce9e95
commit
c40209698c
15 changed files with 584 additions and 0 deletions
23
war/build.gradle.kts
Normal file
23
war/build.gradle.kts
Normal file
|
@ -0,0 +1,23 @@
|
|||
plugins {
|
||||
war
|
||||
}
|
||||
|
||||
base {
|
||||
archivesName.set("hello")
|
||||
version = 1.0
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots") } // only needed for SNAPSHOT
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":app"))
|
||||
}
|
||||
|
||||
tasks.war {
|
||||
webAppDirectory.set(file("../app/src/main/webapp"))
|
||||
webXml = file("src/web.xml")
|
||||
rootSpec.exclude("**/jetty*.jar", "**/slf4j*.jar")
|
||||
}
|
18
war/src/web.xml
Normal file
18
war/src/web.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
<filter>
|
||||
<filter-name>RIFE2</filter-name>
|
||||
<filter-class>rife.servlet.RifeFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>rifeSiteClass</param-name>
|
||||
<param-value>hello.App</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>RIFE2</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
</web-app>
|
Loading…
Add table
Add a link
Reference in a new issue