Class GradleProject


  • public class GradleProject
    extends Project
    Class representing a Gradle project.
    Since:
    0.1.0
    Author:
    nandorholozsnyak
    • Constructor Detail

      • GradleProject

        public GradleProject​(File basedir,
                             String name)
    • Method Detail

      • getDefaultOutputFolder

        public String getDefaultOutputFolder​(String moduleName)
        Description copied from class: Project
        Returns the default output folder based on the Project instance and module name (in multi-module setup).

        For example: multi-module-parent/multi-module-a/target/property-docs

        Overrides:
        getDefaultOutputFolder in class Project
        Parameters:
        moduleName - module's name.
        Returns:
        output folder based on the incoming parameters.
      • getDefaultOutputFolder

        public String getDefaultOutputFolder()
        Description copied from class: Project
        Returns the default output folder based on the Project instance.

        For example: module-a/target/property-docs

        Overrides:
        getDefaultOutputFolder in class Project
        Returns:
        output folder based on the incoming parameter.
      • getDefaultTargetFilePath

        public String getDefaultTargetFilePath​(TemplateType templateType)
        Description copied from class: Project
        Returns the output file path based on the Project instance and template type value.

        For example: multi-module-parent/target/property-docs/multi-module-parent-property-docs-aggregated.md

        Overrides:
        getDefaultTargetFilePath in class Project
        Parameters:
        templateType - type of the template, the extension will be determined based on this.
        Returns:
        target file path based on the project instance and template type.
      • getDefaultAggregatedTargetFilePath

        public String getDefaultAggregatedTargetFilePath​(String extension)
        Description copied from class: Project
        Returns the output file path based on the Project instance and template type value.

        For example: module-a/target/property-docs/module-a-property-docs.md

        Overrides:
        getDefaultAggregatedTargetFilePath in class Project
        Parameters:
        extension - extension (like .md, .adoc etc)
        Returns:
        target file path based on the incoming parameters.
      • getPossibleMetadataFilePaths

        public List<String> getPossibleMetadataFilePaths()
        Description copied from class: Project
        Returns the list of the possible metadata file paths inside a project.
        Overrides:
        getPossibleMetadataFilePaths in class Project
        Returns:
        list of the possible metadata file paths.