Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 115fccf

Browse filesBrowse files
committed
Use a CachingOutputStream when using the build context
1 parent 628b04e commit 115fccf
Copy full SHA for 115fccf

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/main/java/org/codehaus/plexus/build/DefaultBuildContext.java

Copy file name to clipboardExpand all lines: src/main/java/org/codehaus/plexus/build/DefaultBuildContext.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import org.codehaus.plexus.util.DirectoryScanner;
2828
import org.codehaus.plexus.util.Scanner;
29+
import org.codehaus.plexus.util.io.CachingOutputStream;
2930
import org.slf4j.Logger;
3031
import org.slf4j.LoggerFactory;
3132

@@ -76,7 +77,7 @@ public boolean hasDelta(List<String> relpaths) {
7677

7778
/** {@inheritDoc} */
7879
public OutputStream newFileOutputStream(File file) throws IOException {
79-
return Files.newOutputStream(file.toPath());
80+
return new CachingOutputStream(file.toPath());
8081
}
8182

8283
/** {@inheritDoc} */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.