I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8de0c0bd authored by str4d's avatar str4d
Browse files

Correct Jar/War split for addressbook, snark and i2ptunnel

parent aa3ac754
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,10 @@ dependencies { ...@@ -13,6 +13,10 @@ dependencies {
providedCompile project(':apps:jetty') providedCompile project(':apps:jetty')
} }
jar {
exclude { it.name == 'Servlet.class' }
}
war { war {
webXml = file('web.xml') webXml = file('web.xml')
} }
...@@ -4,16 +4,37 @@ sourceSets { ...@@ -4,16 +4,37 @@ sourceSets {
main { main {
java { java {
srcDir 'java/src' srcDir 'java/src'
include 'org/klomp/snark/web/**'
}
}
jar {
java {
srcDir 'java/src'
exclude 'org/klomp/snark/web'
} }
} }
} }
dependencies { dependencies {
compile project(':core') jarCompile project(':core')
jarCompile project(':apps:ministreaming')
providedCompile sourceSets.jar.output
providedCompile project(':apps:ministreaming') providedCompile project(':apps:ministreaming')
providedCompile project(':apps:jetty') providedCompile project(':apps:jetty')
} }
task i2psnarkJar(type: Jar) {
from sourceSets.jar.output
manifest {
attributes 'Main-Class': 'org.klomp.snark.Snark'
attributes 'Class-Path': 'i2p.jar mstreaming.jar streaming.jar'
}
}
artifacts {
archives i2psnarkJar
}
war { war {
into '.icons', { into '.icons', {
from 'icons' from 'icons'
......
...@@ -4,6 +4,15 @@ sourceSets { ...@@ -4,6 +4,15 @@ sourceSets {
main { main {
java { java {
srcDir 'java/src' srcDir 'java/src'
include 'net/i2p/i2ptunnel/web/EditBean.java'
include 'net/i2p/i2ptunnel/web/IndexBean.java'
}
}
jar {
java {
srcDir 'java/src'
exclude 'net/i2p/i2ptunnel/web/EditBean.java'
exclude 'net/i2p/i2ptunnel/web/IndexBean.java'
} }
} }
test { test {
...@@ -14,11 +23,24 @@ sourceSets { ...@@ -14,11 +23,24 @@ sourceSets {
} }
dependencies { dependencies {
compile project(':core') jarCompile project(':core')
providedCompile project(':apps:ministreaming') jarCompile project(':apps:ministreaming')
providedCompile sourceSets.jar.output
providedCompile project(':apps:jetty') providedCompile project(':apps:jetty')
} }
task i2ptunnelJar(type: Jar) {
from sourceSets.jar.output
manifest {
attributes 'Main-Class': 'net.i2p.i2ptunnel.I2PTunnel'
attributes 'Class-Path': 'i2p.jar mstreaming.jar'
}
}
artifacts {
archives i2ptunnelJar
}
war { war {
from 'jsp' from 'jsp'
exclude 'jsp/web.xml' exclude 'jsp/web.xml'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment