Skip to content

Commit

Permalink
Create the download directory if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 6, 2023
1 parent ce1f0b2 commit c1792f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private static boolean copyURLToFileIfNewer(URL url, Path target) throws IOExcep
}

// Always download to a temp-file to avoid partially downloaded files persisting a VM crash/shutdown
Files.createDirectories(target.getParent());
Path tempFile = Files.createTempFile(target.getParent(), target.getFileName().toString(), ".download");

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NeoformDependencyManagerTest extends SimpleTestSpecification {
"""

when:
def result = gradleRunner().build()
def result = gradleRunner().withArguments("-s").build()

then:
result.output.contains('BUILD SUCCESSFUL')
Expand Down

0 comments on commit c1792f4

Please sign in to comment.