org.gradle.api.internal.file.copy.CopyActionProcessingStream Java Examples
The following examples show how to use
org.gradle.api.internal.file.copy.CopyActionProcessingStream.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Cpio.java From gradle-plugins with MIT License | 5 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream copyActionProcessingStream) { try (CpioArchiveOutputStream archiveOutputStream = new CpioArchiveOutputStream( new FileOutputStream(getArchiveFile().get().getAsFile()), format.get(), blockSize.get(), encoding.get() )) { copyActionProcessingStream.process(new StreamAction(archiveOutputStream, getFormat().get())); return WorkResults.didWork(true); } }
Example #2
Source File: Ar.java From gradle-plugins with MIT License | 5 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream copyActionProcessingStream) { try (ArArchiveOutputStream archiveOutputStream = new ArArchiveOutputStream(new FileOutputStream(getArchiveFile().get().getAsFile()))) { archiveOutputStream.setLongFileMode(this.longFileMode.get()); copyActionProcessingStream.process(new StreamAction(archiveOutputStream)); return WorkResults.didWork(true); } }
Example #3
Source File: Cpio.java From gradle-plugins with MIT License | 5 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream copyActionProcessingStream) { try (CpioArchiveOutputStream archiveOutputStream = new CpioArchiveOutputStream( new FileOutputStream(getArchiveFile().get().getAsFile()), format.get(), blockSize.get(), encoding.get() )) { copyActionProcessingStream.process(new StreamAction(archiveOutputStream, getFormat().get())); return WorkResults.didWork(true); } }
Example #4
Source File: Ar.java From gradle-plugins with MIT License | 5 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream copyActionProcessingStream) { try (ArArchiveOutputStream archiveOutputStream = new ArArchiveOutputStream(new FileOutputStream(getArchiveFile().get().getAsFile()))) { archiveOutputStream.setLongFileMode(this.longFileMode.get()); copyActionProcessingStream.process(new StreamAction(archiveOutputStream)); return WorkResults.didWork(true); } }
Example #5
Source File: SevenZip.java From gradle-plugins with MIT License | 4 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream stream) { try (SevenZOutputFile outputFile = new SevenZOutputFile(getArchiveFile().get().getAsFile())) { if (contentCompression.isPresent()) { outputFile.setContentCompression(contentCompression.get()); } stream.process(new StreamAction(outputFile)); outputFile.finish(); return WorkResults.didWork(true); } }
Example #6
Source File: SevenZip.java From gradle-plugins with MIT License | 4 votes |
@SneakyThrows private WorkResult execute(CopyActionProcessingStream stream) { try (SevenZOutputFile outputFile = new SevenZOutputFile(getArchiveFile().get().getAsFile())) { if (contentCompression.isPresent()) { outputFile.setContentCompression(contentCompression.get()); } stream.process(new StreamAction(outputFile)); outputFile.finish(); return WorkResults.didWork(true); } }