From ec7b834b6e76aac8cc64b37a9cad643d556139c5 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 8 Feb 2018 00:33:17 +0000 Subject: ninja: add build dir to javac -sourcepath To allow the javac -implicit:class behaviour to know where to find generated .java files then the build directory for the target is also added to the -sourcefile path. --- test cases/java/7 codegen/com/mesonbuild/Simple.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test cases/java/7 codegen/com/mesonbuild/Simple.java (limited to 'test cases/java/7 codegen/com/mesonbuild/Simple.java') diff --git a/test cases/java/7 codegen/com/mesonbuild/Simple.java b/test cases/java/7 codegen/com/mesonbuild/Simple.java new file mode 100644 index 000000000..df3c53df3 --- /dev/null +++ b/test cases/java/7 codegen/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(); + } + } +} -- cgit v1.2.3