Build: Add translations to gradle build (part 1 - jars)

This commit is contained in:
zzz
2021-01-03 09:08:21 -05:00
parent 2df5fb972a
commit 888311e34f
16 changed files with 77 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ sourceSets {
main {
java {
srcDir 'java/src'
srcDir 'java/build/messages-src'
exclude 'gnu/getopt'
exclude 'gnu/gettext'
}
@@ -67,6 +68,16 @@ if (System.getenv("TARGET_JAVA_HOME") == null && JavaVersion.current() != JavaVe
test.dependsOn scalaTest
}
// 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 "core/java/bundle-messages.sh".execute().text
}
}
jar.dependsOn bundle
jar {
manifest {
attributes 'Specification-Title': 'I2P Core API'

View File

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