summaryrefslogtreecommitdiff
path: root/test cases/java/8 codegen custom target/com/mesonbuild/Simple.java
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@actronika.com>2018-10-31 12:36:13 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-02 22:27:25 +0200
commit5af84440bcfb3fd5ab8f2791b5e6a57fabfcbc19 (patch)
tree98d1662bdbfac0676eeba2fa2fd5044e74754220 /test cases/java/8 codegen custom target/com/mesonbuild/Simple.java
parentf0e1342fb263fff8b2ec514ebc2a5a178739cd28 (diff)
downloadmeson-5af84440bcfb3fd5ab8f2791b5e6a57fabfcbc19.tar.gz
ninjabackend: add generated source files to jar compile target source list
Otherwise, passing result of custom_target() to jar() target is ignored and won't be compiled resulting in build fail.
Diffstat (limited to 'test cases/java/8 codegen custom target/com/mesonbuild/Simple.java')
-rw-r--r--test cases/java/8 codegen custom target/com/mesonbuild/Simple.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test cases/java/8 codegen custom target/com/mesonbuild/Simple.java b/test cases/java/8 codegen custom target/com/mesonbuild/Simple.java
new file mode 100644
index 000000000..df3c53df3
--- /dev/null
+++ b/test cases/java/8 codegen custom target/com/mesonbuild/Simple.java
@@ -0,0 +1,12 @@
+package com.mesonbuild;
+
+import com.mesonbuild.Config;
+
+class Simple {
+ public static void main(String [] args) {
+ if (Config.FOOBAR) {
+ TextPrinter t = new TextPrinter("Printing from Java.");
+ t.print();
+ }
+ }
+}