Class ChConCommand.Builder

    • Constructor Detail

      • Builder

        public Builder​(org.apache.maven.plugin.logging.Log log,
                       CommandExecutorDelegate delegate)
        Create a new instance of this builder
        Parameters:
        log - The Maven Log
        delegate - The executor delegate
    • Method Detail

      • withRecursiveOption

        public ChConCommand.Builder withRecursiveOption()
        Sets the recursive flag on the chcon command
        Returns:
        this builder instance
      • withReferenceDirectory

        public ChConCommand.Builder withReferenceDirectory​(String sourceDirectory,
                                                           String targetDirectory)
        Allows to specify the security context type
        Parameters:
        sourceDirectory - The source directory to base the context on
        targetDirectory - The target directory to apply the SELinux context of the source directory to
        Returns:
        this builder instance
      • build

        public Command build()
        Returns the constructed command
        Returns:
        The constructed command