k2js: fix debug logging
This commit is contained in:
+3
-10
@@ -78,14 +78,6 @@ public class K2JSCompilerMojo extends KotlinCompileMojo {
|
|||||||
*/
|
*/
|
||||||
private Boolean appendLibraryJS;
|
private Boolean appendLibraryJS;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether verbose logging is enabled or not.
|
|
||||||
*
|
|
||||||
* @parameter default-value="false"
|
|
||||||
* @parameter expression="${verbose}"
|
|
||||||
*/
|
|
||||||
private Boolean verbose;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() throws MojoExecutionException, MojoFailureException {
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
||||||
super.execute();
|
super.execute();
|
||||||
@@ -164,8 +156,9 @@ public class K2JSCompilerMojo extends KotlinCompileMojo {
|
|||||||
if (arguments instanceof K2JSCompilerArguments) {
|
if (arguments instanceof K2JSCompilerArguments) {
|
||||||
K2JSCompilerArguments k2jsArgs = (K2JSCompilerArguments)arguments;
|
K2JSCompilerArguments k2jsArgs = (K2JSCompilerArguments)arguments;
|
||||||
k2jsArgs.outputFile = outputFile;
|
k2jsArgs.outputFile = outputFile;
|
||||||
if (verbose != null) {
|
k2jsArgs.verbose = true;
|
||||||
k2jsArgs.verbose = verbose;
|
if (getLog().isDebugEnabled()) {
|
||||||
|
k2jsArgs.verbose = true;
|
||||||
}
|
}
|
||||||
List<String> sources = getSources();
|
List<String> sources = getSources();
|
||||||
if (sources.size() > 0) {
|
if (sources.size() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user