I want to know the default value that gradle/javac is using for -encoding
option.
I tried below -
tasks.withType(JavaCompile) {
println 'Compiler args: ' + options.compilerArgs
println 'encoding args: ' + options.encoding
}
and the corresponding output is -
Compiler args: []
encoding args: null
The thing is I want to know the default value for this option on my platform before I set it explicitly.
I know how to explicitly set the java compile -encoding
option value using gradle?
compileJava { //uncomment the value you want to use.
options.encoding = "windows-1252"
//options.encoding = "UTF-8"
//options.encoding = "US-ASCII"
}
But my intent is to find the default value. Any suggestions?
Note: This Question is not about the runtime option -Dfile.encoding
but is instead about the compile time option -encoding
.