Skip to content
Browse files

move javascript compilation out of the if block, enable debug option …

…for javascript compilation depending on gradle logging level
  • Loading branch information...
1 parent 209d165 commit c19737b3dfb674a7a7ea3834b73d8767310384c9 fpape committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 build.gradle
View
14 build.gradle
@@ -48,7 +48,7 @@ task 'jqgrid-min'(dependsOn: 'jqgrid') {
doLast {
ant.taskdef(name: 'jscompile', classname: 'com.google.javascript.jscomp.ant.CompileTask', classpath: configurations.jscompiler.asPath)
- ant.jscompile(output: jqGridMinFile, warning: 'QUIET') {
+ ant.jscompile(output: jqGridMinFile, warning: 'QUIET', debug: logger.debugEnabled) {
ant.sources(dir: jqGridFile.parent) {
ant.file(name: jqGridFile.name)
}
@@ -66,12 +66,12 @@ task 'min-files'(dependsOn: 'init') {
doLast {
if (!minDir.exists()) {
minDir.mkdirs()
- ant.taskdef(name: 'jscompile', classname: 'com.google.javascript.jscomp.ant.CompileTask', classpath: configurations.jscompiler.asPath)
- files.each { File f ->
- ant.jscompile(output: new File(minDir, f.name), warning: 'QUIET') {
- ant.sources(dir: f.parent) {
- ant.file(name: f.name)
- }
+ }
+ ant.taskdef(name: 'jscompile', classname: 'com.google.javascript.jscomp.ant.CompileTask', classpath: configurations.jscompiler.asPath)
+ files.each { File f ->
+ ant.jscompile(output: new File(minDir, f.name), warning: 'QUIET', debug: logger.debugEnabled) {
+ ant.sources(dir: f.parent) {
+ ant.file(name: f.name)
}
}
}

0 comments on commit c19737b

Please sign in to comment.
Something went wrong with that request. Please try again.