All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.plugin.structure.base.utils.contentBuilder.FileSpec.kt Maven / Gradle / Ivy

Go to download

Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.

There is a newer version: 3.290
Show newest version
/*
 * Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
 */

package com.jetbrains.plugin.structure.base.utils.contentBuilder

import com.jetbrains.plugin.structure.base.utils.createDir
import com.jetbrains.plugin.structure.base.utils.writeBytes
import java.nio.file.Path

class FileSpec(private val content: ByteArray) : ContentSpec {
  override fun generate(target: Path) {
    target.parent?.createDir()
    target.writeBytes(content)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy