Class DecryptToClipboardMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
au.net.causal.maven.plugins.jgitcrypt.AbstractDecryptFileMojo
au.net.causal.maven.plugins.jgitcrypt.DecryptToClipboardMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="decrypt-to-clipboard",
aggregator=true,
requiresProject=false)
public class DecryptToClipboardMojo
extends AbstractDecryptFileMojo
Decrypt a single git-crypt encrypted file to the user's clipboard. This can be used to avoid saving any decrypted data to
disk. The file being decrypted should be a text file.
-
Field Summary
FieldsFields inherited from class au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
mavenSession, projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected InputStreamStream of encrypted data to decrypt.protected OutputStreamStream to write decrypted data to.Methods inherited from class au.net.causal.maven.plugins.jgitcrypt.AbstractKeyBasedMojo
getGitcryptKeyLocationDescription, loadGitcryptKeyMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
sourceFile
The file to decrypt.
-
-
Constructor Details
-
DecryptToClipboardMojo
public DecryptToClipboardMojo()
-
-
Method Details
-
sourceInputStream
Description copied from class:AbstractDecryptFileMojoStream of encrypted data to decrypt.- Specified by:
sourceInputStreamin classAbstractDecryptFileMojo- Throws:
IOException
-
targetOutputStream
Description copied from class:AbstractDecryptFileMojoStream to write decrypted data to.- Specified by:
targetOutputStreamin classAbstractDecryptFileMojo- Throws:
IOException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractDecryptFileMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-