Map toMap()

in src/main/groovy/org/jetbrains/gradle/ext/PackagePrefixContainer.groovy [19:30]


  Map<String, ?> toMap() {
    def contentRoot = module.contentRoot.absolutePath
    def result = new LinkedHashMap<String, String>()
    for (def entry : this) {
      def path = entry.key
      def prefix = entry.value
      def file = new File(contentRoot, path)
      def sourceDir = file.path.replace(File.separator, '/')
      result.put(sourceDir, prefix)
    }
    return result
  }