diff options
Diffstat (limited to 'meson/test cases/java/1 basic')
-rw-r--r-- | meson/test cases/java/1 basic/com/mesonbuild/Simple.java | 7 | ||||
-rw-r--r-- | meson/test cases/java/1 basic/meson.build | 11 | ||||
-rw-r--r-- | meson/test cases/java/1 basic/test.json | 5 |
3 files changed, 23 insertions, 0 deletions
diff --git a/meson/test cases/java/1 basic/com/mesonbuild/Simple.java b/meson/test cases/java/1 basic/com/mesonbuild/Simple.java new file mode 100644 index 000000000..325a49a21 --- /dev/null +++ b/meson/test cases/java/1 basic/com/mesonbuild/Simple.java @@ -0,0 +1,7 @@ +package com.mesonbuild; + +class Simple { + public static void main(String [] args) { + System.out.println("Java is working.\n"); + } +} diff --git a/meson/test cases/java/1 basic/meson.build b/meson/test cases/java/1 basic/meson.build new file mode 100644 index 000000000..ef1a4b74c --- /dev/null +++ b/meson/test cases/java/1 basic/meson.build @@ -0,0 +1,11 @@ +project('simplejava', 'java') + +javaprog = jar('myprog', 'com/mesonbuild/Simple.java', + main_class : 'com.mesonbuild.Simple', + install : true, + install_dir : get_option('bindir')) +test('mytest', javaprog) + +jc = meson.get_compiler('java') +message(jc.get_id()) +message(jc.get_linker_id()) diff --git a/meson/test cases/java/1 basic/test.json b/meson/test cases/java/1 basic/test.json new file mode 100644 index 000000000..b5b1539ad --- /dev/null +++ b/meson/test cases/java/1 basic/test.json @@ -0,0 +1,5 @@ +{ + "installed": [ + {"type": "file", "file": "usr/bin/myprog.jar"} + ] +} |