Class JmodOperation


public class JmodOperation extends AbstractToolProviderOperation<JmodOperation>
Create JMOD files with the jmod tool.
Since:
2.1.0
  • Constructor Details

    • JmodOperation

      public JmodOperation()
  • Method Details

    • execute

      public void execute() throws Exception
      Description copied from class: AbstractToolProviderOperation
      Runs an instance of the tool.

      On success, command line arguments are automatically cleared.

      Overrides:
      execute in class AbstractToolProviderOperation<JmodOperation>
      Throws:
      Exception - if an error occurred
    • jmodFile

      public String jmodFile()
      Retrieves the name of the JMOD file to create or from which to retrieve information.
      Returns:
      the JMOD file
    • jmodFile

      public JmodOperation jmodFile(String file)
      Specifies name of the JMOD file to create or from which to retrieve information.

      The JMOD file is required.

      Parameters:
      file - the JMOD file
      Returns:
      this operation instance
    • jmodFile

      public JmodOperation jmodFile(File file)
      Specifies name of the JMOD file to create or from which to retrieve information.

      The JMOD file is required.

      Parameters:
      file - the JMOD file
      Returns:
      this operation instance
    • jmodFile

      public JmodOperation jmodFile(Path file)
      Specifies name of the JMOD file to create or from which to retrieve information.

      The JMOD file is required.

      Parameters:
      file - the JMOD file
      Returns:
      this operation instance
    • jmodOptions

      public JmodOptions jmodOptions()
      Retrieves the list of options for the jmod tool.

      This is a modifiable list that can be retrieved and changed.

      Returns:
      the map of jmod options
    • jmodOptions

      public JmodOperation jmodOptions(Map<String,String> options)
      Provides a list of options to provide to the jmod tool.

      A copy will be created to allow this list to be independently modifiable.

      Parameters:
      options - the list of jmod options
      Returns:
      this operation instance
    • operationMode

      public JmodOperation operationMode(JmodOperation.OperationMode mode)
      Provides the operation mode.

      The operation mode is required.

      Parameters:
      mode - the mode
      Returns:
      this operation instance