Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed Jan 12, 2021
1 parent 908d029 commit d41d052
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/PUBLISH_SNAPSHOT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
- name: test
run: |
pwd
cd empty_project && pwd
mkdir empty && cd empty && pwd
pwd
- name: Generate wrappers
run: |
mkdir empty_voodoo_project
java -jar voodoo/build/libs/voodoo-${{ env.VERSION }}-all.jar --rootDir empty_voodoo_project generateWrapper
zip -r ../empty_voodoo_project.zip ./empty_voodoo_project
zip -r empty_voodoo_project.zip ./empty_voodoo_project
- name: Create prerelease
uses: meeDamian/[email protected]
with:
Expand Down
9 changes: 5 additions & 4 deletions voodoo/src/main/kotlin/voodoo/cli/GenerateWrapperCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import mu.withLoggingContext
import voodoo.util.maven.MavenUtil
import voodoo.voodoo.GeneratedConstants
import java.io.File
import java.io.StringWriter
import java.util.*

class GenerateWrapperCommand : CliktCommand(
Expand Down Expand Up @@ -47,13 +48,13 @@ class GenerateWrapperCommand : CliktCommand(
prop["distributionUrl"] = "${GeneratedConstants.MAVEN_URL}/$groupPath/voodoo/$version/voodoo-$version-${GeneratedConstants.MAVEN_SHADOW_CLASSIFIER}.jar"
prop["distributionPath"] = "wrapper/bin"
}
propertiesFile.createNewFile()
propertiesFile.writer().use {
// properties.store(it, "generated at ${DateTimeFormatter.ISO_INSTANT.format(Instant.now())}")

StringWriter().use {
properties.store(it, "generated by: voodoo generateWrapper")
propertiesFile.writeText(it.toString())
}

//TODO: generate shellscripts
// generate shellscripts

rootDir.resolve("voodoo.bat").let { batFile ->
if(batFile.exists()) {
Expand Down

0 comments on commit d41d052

Please sign in to comment.