mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 08:17:11 -07:00
Added javac options to specify the directory used to place generated source files.
This commit is contained in:
parent
9941fc0d10
commit
762e099988
1 changed files with 36 additions and 0 deletions
|
@ -590,6 +590,41 @@ public class JavacOptions extends ArrayList<String> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(String path) {
|
||||||
|
add("-s");
|
||||||
|
add(path);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(File path) {
|
||||||
|
return sourceOutput(path.getAbsolutePath());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the directory used to place the generated source files.
|
||||||
|
*
|
||||||
|
* @param path the source output directory path
|
||||||
|
* @return the list of options
|
||||||
|
* @since 2.1.1
|
||||||
|
*/
|
||||||
|
public JavacOptions sourceOutput(Path path) {
|
||||||
|
return sourceOutput(path.toFile());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override location of system modules. Option is <jdk> or none.
|
* Override location of system modules. Option is <jdk> or none.
|
||||||
*
|
*
|
||||||
|
@ -602,6 +637,7 @@ public class JavacOptions extends ArrayList<String> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override location of upgradeable modules
|
* Override location of upgradeable modules
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue