I'm working on extending Jan Berkel's Android Plugin for SBT.
Right now, I'm wondering, how can I convert sbt.SettingKey[sbt.package.File]
to java.io.File
? Is there a way to extract java.io.File
from sbt.SettingKey[sbt.package.File]
?
For example:
I have a function:
def isUpToDate(input: java.io.File): Boolean
which expects java.io.File
as an argument.
I have a sbt.SettingKey[sbt.package.File]
(named myFileKey
) which is mapped to my File
I need.
How do I call isUpToDate
with the File mapped to myFileKey
?