Class DirectoryValidationContext

  • All Implemented Interfaces:
    org.apache.jackrabbit.vault.validation.spi.ValidationContext

    public class DirectoryValidationContext
    extends Object
    implements org.apache.jackrabbit.vault.validation.spi.ValidationContext
    Validation context built from files in two directories:
    • workDir, the directory in which the GenerateMetadataMojo has written all automatically generated files (must have name META-INF)
    • metaInfDir, the directory in which meta inf files have been manually written (must have name META-INF)
    • Constructor Detail

      • DirectoryValidationContext

        public DirectoryValidationContext​(boolean isIncremental,
                                          @NotNull
                                          @NotNull Path generatedMetaInfRootDirectory,
                                          Path metaInfRootDirectory,
                                          @NotNull
                                          @NotNull Path packageRootDirectory,
                                          DependencyResolver resolver,
                                          @NotNull
                                          @NotNull org.apache.maven.plugin.logging.Log log)
                                   throws IOException,
                                          org.apache.jackrabbit.vault.fs.config.ConfigurationException
        Throws:
        IOException
        org.apache.jackrabbit.vault.fs.config.ConfigurationException
    • Method Detail

      • getProperties

        @NotNull
        public @NotNull org.apache.jackrabbit.vault.packaging.PackageProperties getProperties()
        Specified by:
        getProperties in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
      • getFilter

        @NotNull
        public @NotNull org.apache.jackrabbit.vault.fs.api.WorkspaceFilter getFilter()
        Specified by:
        getFilter in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
      • getContainerValidationContext

        public org.apache.jackrabbit.vault.validation.spi.ValidationContext getContainerValidationContext()
        Specified by:
        getContainerValidationContext in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
      • getPackageRootPath

        @NotNull
        public @NotNull Path getPackageRootPath()
        Specified by:
        getPackageRootPath in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
      • getDependenciesPackageInfo

        @NotNull
        public @NotNull Collection<org.apache.jackrabbit.vault.packaging.PackageInfo> getDependenciesPackageInfo()
        Specified by:
        getDependenciesPackageInfo in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext
      • isIncremental

        public boolean isIncremental()
        Specified by:
        isIncremental in interface org.apache.jackrabbit.vault.validation.spi.ValidationContext