How to escape absolute windows path as part of task rule


(Alexey Trenikhin) #1

I’m trying to create rule with directory as part of template: unlockDir. It works fine when I use relative path ‘gradle unlockDirTemp’, but because of absolute windows path contain colon, which is used by gradle to separate project in task path - ‘gradle unlockDirC:/Tmp’ doesn’t work, gradle assumes that it was requested to executed task ‘/Tmp’ in project ‘unlockDirC’ What is the proper way to escape colon?