Skip to content

Commit

Permalink
fix already exists exeption at creating buildInstaller.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
apollox committed Jul 20, 2023
1 parent c9df409 commit b901dad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.ptrxwsmitt</groupId>
<artifactId>wxs-generator-maven-plugin</artifactId>
<version>0.8.1</version>
<version>0.8.2</version>
<packaging>maven-plugin</packaging>

<name>WXS Generator - Maven Plugin</name>
Expand All @@ -25,6 +25,13 @@
<role>developer</role>
</roles>
</developer>
<developer>
<id>apollox</id>
<name>Frithjof Schulte</name>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>

<licenses>
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/wxsgen/service/BatchFileGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class BatchFileGenerator {
val mustacheTemplate = MustacheUtil.prepareTemplateFromResource("buildInstaller.bat.mustache")

val batchPath = targetDirectory.resolve("buildInstaller.bat")
Files.createFile(batchPath)
val batchWriter = Files.newBufferedWriter(batchPath)
batchWriter.use {
mustacheTemplate?.execute(it, batchTemplateData)?.flush()
Expand Down

0 comments on commit b901dad

Please sign in to comment.