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

com.github.aoudiamoncef.apollo.plugin.util.BuildDirLayout.kt Maven / Gradle / Ivy

package com.github.aoudiamoncef.apollo.plugin.util

import com.github.aoudiamoncef.apollo.plugin.config.CompilationUnit
import org.apache.maven.project.MavenProject
import java.io.File

object BuildDirLayout {
    internal fun operationOuput(project: MavenProject, compilationUnit: CompilationUnit): File {
        return File(
            project.build.directory.plus("/generated/operationOutput/apollo/${compilationUnit.name}/operationOutput.json")
        )
    }

    internal fun metadata(project: MavenProject, compilationUnit: CompilationUnit): File {
        return File(
            project.build.directory.plus(
                "/generated/metadata/apollo/${compilationUnit.name}/metadata.json"
            )
        )
    }

    internal fun sources(project: MavenProject, compilationUnit: CompilationUnit): File {
        return File(
            project.build.directory.plus(
                "/generated-sources/apollo/${compilationUnit.name}"
            )
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy