Gradle zip plugin, How to create empty folder within zip?

后端 未结 1 866
囚心锁ツ
囚心锁ツ 2021-01-23 03:09

I have the follow Gradle task which does packaging. In which it produces a zip file. However I am trying create a empty folder call log within the zip file as part of final dist

相关标签:
1条回答
  • 2021-01-23 03:59

    I do something like this:

    package.doFirst {
        new File(buildDir, 'log/log').mkdirs()
    }
    
    0 讨论(0)
提交回复
热议问题