https://kotlinlang.org logo
#dsl
Title
# dsl
m

Marc Reichelt

01/28/2019, 12:44 PM
Mainly, the
Configuration
class does not have an
isDirectory
property - but how could the Groovy code then work in the first place?
d

Dominaezzz

01/28/2019, 1:45 PM
You might need to do some casting.
m

Marc Reichelt

01/28/2019, 1:47 PM
how should I cast
Configuration
to a
File
?
d

Dominaezzz

01/28/2019, 1:50 PM
I'm not sure what type it really is. You could print it out with
println()
to check and then cast to the expected type with
as
.
5 Views