mirror of
https://github.com/rife2/bld
synced 2026-04-26 17:54:09 +02:00
Compare commits
No commits in common. "db2adfaf7fd1fd8ec5ff5da7394dd5f78eb7fd4d" and "43eabcb5b6b1b0a24071d67951ee0ab2e90c7408" have entirely different histories.
db2adfaf7f
...
43eabcb5b6
|
|
@ -46,32 +46,6 @@ 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
|
||||||
|
|
@ -279,30 +253,6 @@ public class JavacOptions extends ArrayList<String> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Provide source compatibility with the specified Java SE release.
|
|
||||||
*
|
|
||||||
* @return this list of options
|
|
||||||
* @since 2.3.1
|
|
||||||
*/
|
|
||||||
public JavacOptions source(int version) {
|
|
||||||
add("--source");
|
|
||||||
add(Convert.toString(version));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generate class files suitable for the specified Java SE release.
|
|
||||||
*
|
|
||||||
* @return this list of options
|
|
||||||
* @since 2.3.1
|
|
||||||
*/
|
|
||||||
public JavacOptions target(int version) {
|
|
||||||
add("--target");
|
|
||||||
add(Convert.toString(version));
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate debugging info
|
* Generate debugging info
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue