public class CreateFileEvent extends AbstractTransactionEvent
| Modifier and Type | Field and Description |
|---|---|
private String |
content |
private File |
destination |
| Constructor and Description |
|---|
CreateFileEvent(String content,
File destination,
List<? extends org.codehaus.plexus.digest.Digester> digesters) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit this event.
|
void |
rollback()
Rollback the even already committed.
|
createBackup, createChecksums, getDigesterFileExtension, getDigesters, mkDirs, restoreBackup, restoreBackups, revertFilesCreated, revertMkDirs, writeStringToFileprivate final File destination
public CreateFileEvent(String content, File destination, List<? extends org.codehaus.plexus.digest.Digester> digesters)
content - destination - digesters - List<Digester> digesters to use for checksummingpublic void commit() throws IOException
TransactionEventIOException - if an error occurred committing the changepublic void rollback() throws IOException
TransactionEventIOException - if an error occurred reverting the changeCopyright © 2006–2023 The Apache Software Foundation. All rights reserved.