mirror of
https://github.com/rife2/bld
synced 2026-02-04 09:13:41 +01:00
Add support for --source and --target in JavacOptions
This commit is contained in:
parent
43eabcb5b6
commit
20845e4fcb
|
|
@ -253,6 +253,30 @@ public class JavacOptions extends ArrayList<String> {
|
|||
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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue