Build: Add translations to gradle build (part 2 - wars)

Several fixes for i2ptunnel gradle build
This commit is contained in:
zzz
2021-01-03 09:55:42 -05:00
parent 888311e34f
commit 152ad1659b
8 changed files with 59 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ sourceSets {
main {
java {
srcDir 'src/java/src'
srcDir 'src/build/messages-src'
}
}
}
@@ -15,6 +16,16 @@ dependencies {
providedCompile project(':apps:jetty')
}
// Create the java files from the po files. The jar task will compile them.
// This requires gettext 0.19 or higher.
// We don't support the "slow way"
task bundle {
doLast {
println "apps/susidns/src/bundle-messages.sh".execute().text
}
}
war.dependsOn bundle
war {
from 'src/jsp'
from 'src/index.html'

View File

@@ -10,6 +10,7 @@
#
# zzz - public domain
#
cd `dirname $0`
CLASS=i2p.susi.dns.messages
TMPFILE=tmp/javafiles.txt
export TZ=UTC