mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 03:11:08 -06:00
UseJava: add INCLUDE_MODULES argument to add_jar
Arguments are added to the dependencies list, and to the "--module-path" passed to javac, which is only generated for adequate JDK versions.
This commit is contained in:
13
Tests/JavaModExportImport/Import/Import.java
Normal file
13
Tests/JavaModExportImport/Import/Import.java
Normal file
@@ -0,0 +1,13 @@
|
||||
import org.foo.Foo;
|
||||
import com.bar.Bar;
|
||||
|
||||
class Import
|
||||
{
|
||||
public static void main(String args[])
|
||||
{
|
||||
Foo foo = new Foo();
|
||||
Bar bar = new Bar();
|
||||
foo.printName();
|
||||
bar.printName();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user