Class AbstractExecSetPropertyMojo

    • Constructor Detail

      • AbstractExecSetPropertyMojo

        public AbstractExecSetPropertyMojo()
    • Method Detail

      • getPropertyName

        protected abstract String getPropertyName()
        Get the name of the property to set.
        Returns:
        the name of the property to set
      • executeAndSetProperty

        protected void executeAndSetProperty​(File directory,
                                             List<String> command)
                                      throws MojoExecutionException
        Execute command and set the property from standard output.
        Parameters:
        directory - new process current working directory, or null to inherit
        command - command and parameters
        Throws:
        MojoExecutionException - if execution fails
      • isNonEmpty

        protected boolean isNonEmpty​(String value)