mirror of
https://github.com/rife2/bld
synced 2026-02-09 18:43:42 +01:00
Add support for --add-exports in JavacOptions
This commit is contained in:
parent
20845e4fcb
commit
db2adfaf7f
|
|
@ -46,6 +46,32 @@ public class JavacOptions extends ArrayList<String> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies a package to be considered as exported from its defining
|
||||||
|
* module to additional modules or to all unnamed modules when the value
|
||||||
|
* of other-module is ALL-UNNAMED.
|
||||||
|
*
|
||||||
|
* @return this list of options
|
||||||
|
* @since 2.3.1
|
||||||
|
*/
|
||||||
|
public JavacOptions addExports(String... modules) {
|
||||||
|
return addExports(Arrays.asList(modules));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies a package to be considered as exported from its defining
|
||||||
|
* module to additional modules or to all unnamed modules when the value
|
||||||
|
* of other-module is ALL-UNNAMED.
|
||||||
|
*
|
||||||
|
* @return this list of options
|
||||||
|
* @since 2.3.1
|
||||||
|
*/
|
||||||
|
public JavacOptions addExports(List<String> modules) {
|
||||||
|
add("--add-exports");
|
||||||
|
add(StringUtils.join(modules, ","));
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Root modules to resolve in addition to the initial modules,
|
* Root modules to resolve in addition to the initial modules,
|
||||||
* or all modules on the module path if a module is
|
* or all modules on the module path if a module is
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue