File tree 1 file changed +3
-2
lines changed
buildSrc/src/main/groovy/org/elasticsearch/gradle/test
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -291,9 +291,10 @@ class ClusterFormationTasks {
291
291
File configDir = new File (node. homeDir, ' config' )
292
292
copyConfig. into(configDir) // copy must always have a general dest dir, even though we don't use it
293
293
for (Map.Entry < String ,Object > extraConfigFile : node. config. extraConfigFiles. entrySet()) {
294
+ Object extraConfigFileValue = extraConfigFile. getValue()
294
295
copyConfig. doFirst {
295
296
// make sure the copy won't be a no-op or act on a directory
296
- File srcConfigFile = project. file(extraConfigFile . getValue() )
297
+ File srcConfigFile = project. file(extraConfigFileValue )
297
298
if (srcConfigFile. isDirectory()) {
298
299
throw new GradleException (" Source for extraConfigFile must be a file: ${ srcConfigFile} " )
299
300
}
@@ -303,7 +304,7 @@ class ClusterFormationTasks {
303
304
}
304
305
File destConfigFile = new File (node. homeDir, ' config/' + extraConfigFile. getKey())
305
306
// wrap source file in closure to delay resolution to execution time
306
- copyConfig. from({ extraConfigFile . getValue() }) {
307
+ copyConfig. from({ extraConfigFileValue }) {
307
308
// this must be in a closure so it is only applied to the single file specified in from above
308
309
into(configDir. toPath(). relativize(destConfigFile. canonicalFile. parentFile. toPath()). toFile())
309
310
rename { destConfigFile. name }
You can’t perform that action at this time.
0 commit comments