瀏覽代碼

Use idiomatic string interpolation in build file

Stuart Kent 9 年之前
父節點
當前提交
38e8cbab5d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      exercises/build.gradle

+ 3
- 3
exercises/build.gradle 查看文件

@@ -9,14 +9,14 @@ subprojects { project ->
9 9
       java.srcDirs = ["src/example/java"]
10 10
     }
11 11
     project["compileJava"].doFirst { compileTask ->
12
-      println "  (source = " + compileTask.source.asPath + ")"
12
+      println "  (source = ${compileTask.source.asPath})"
13 13
     }
14 14
 
15 15
     starterSource {
16 16
       java.srcDirs = ["src/main/java"]
17 17
     }
18 18
     project["compileStarterSourceJava"].doFirst { compileTask ->
19
-      println "  (source = " + compileTask.source.asPath + ")"
19
+      println "  (source = ${compileTask.source.asPath})"
20 20
     }
21 21
 
22 22
     // In lieu of being able to disable @Ignore in JUnit tests, we filter
@@ -25,7 +25,7 @@ subprojects { project ->
25 25
       java.srcDirs = ["build/gen/test/java"]
26 26
     }
27 27
     project["compileTestJava"].doFirst { compileTask ->
28
-      println "  (source = " + compileTask.source.asPath + ")"
28
+      println "  (source = ${compileTask.source.asPath})"
29 29
     }
30 30
   }
31 31