aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/java/JavaModule.qbs
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2015-02-03 09:35:25 -0800
committerJake Petroules <jake.petroules@petroules.com>2015-02-05 16:37:53 +0000
commit5a8a2764a669a4deff9426be42ebb1542c71da65 (patch)
tree1844f1b02d56382f47383cd81af6cdc11593400b /share/qbs/modules/java/JavaModule.qbs
parent9d886e297718c5636d13acae9529901f2a754154 (diff)
Add additionalJarFlags to Java module for JAR files.
Change-Id: Iacc76c2ba2d1a8c09db75a194c6d092f9690d70f Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'share/qbs/modules/java/JavaModule.qbs')
-rw-r--r--share/qbs/modules/java/JavaModule.qbs5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/qbs/modules/java/JavaModule.qbs b/share/qbs/modules/java/JavaModule.qbs
index 701edc085..59060f7cc 100644
--- a/share/qbs/modules/java/JavaModule.qbs
+++ b/share/qbs/modules/java/JavaModule.qbs
@@ -7,6 +7,7 @@ import "utils.js" as JavaUtils
Module {
property stringList additionalClassPaths
property stringList additionalCompilerFlags
+ property stringList additionalJarFlags
property stringList bootClassPaths
property string compilerFilePath: FileInfo.joinPaths(jdkPath, compilerName)
property string compilerName: "javac"
@@ -129,6 +130,10 @@ Module {
args.unshift(flags);
+ var otherFlags = ModUtils.moduleProperty(product, "additionalJarFlags");
+ if (otherFlags)
+ args = args.concat(otherFlags);
+
for (i in inputs["java.class"])
args.push(FileInfo.relativePath(ModUtils.moduleProperty(product, "classFilesDir"),
inputs["java.class"][i].filePath));