Skip to content

Commit

Permalink
delete temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Jun 19, 2024
1 parent 8c15e87 commit 7444996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Old GroupIds Alerter - Change Log

### 1.9.3 (WIP)
* delete temporary files created by the plugin.

### 1.9.2 (2024/05/24)
* strictly identical to 1.9.0. I had some problems with my Maven setup (again ^_^), which refused to publish the 1.9.0 plugin release. I was using Maven 3.9.6. I had to revert to 3.9.0 (and I updated my deployment script to use the Maven wrapper, finally), and I cleared my m2 cache (to fix a weird error about a missing class in a Maven plugin). After that, I have been able to prepare and publish the 1.9.2 release.

Expand Down
1 change: 1 addition & 0 deletions src/main/java/biz/lermitage/oga/util/IOTools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ object IOTools {
private fun locationToFile(location: String, locator: ResourceManager, log: Log): File {
try {
val resolvedLocation = Files.createTempFile("oga-", ".json")
resolvedLocation.toFile().deleteOnExit()
log.debug("Resolved file from '$location' to '$resolvedLocation'")
return locator.getResourceAsFile(location, resolvedLocation.pathString)
?: throw MojoExecutionException("Could not resolve $location")
Expand Down

0 comments on commit 7444996

Please sign in to comment.