Class Project

    • Method Detail

      • getBasedir

        public File getBasedir()
      • setModules

        public void setModules​(List<String> modules)
      • getName

        public String getName()
      • getDefaultOutputFolder

        public String getDefaultOutputFolder​(String moduleName)
        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

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

        public String getDefaultOutputFolder()
        Returns the default output folder based on the Project instance.

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

        Returns:
        output folder based on the incoming parameter.
      • getDefaultTargetFilePath

        public String getDefaultTargetFilePath​(TemplateType templateType)
        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

        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)
        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

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

        public List<String> getPossibleMetadataFilePaths()
        Returns the list of the possible metadata file paths inside a project.
        Returns:
        list of the possible metadata file paths.