Skip to content

Commit

Permalink
Fix the .bat file, used for running on Windows
Browse files Browse the repository at this point in the history
This is a workaround for an issue with the generated .bat file, reported
in #463.

Instead of listing each and every .jar file in the lib directory, we
just use a wildcard to include everything in the lib directory in the
classpath.
  • Loading branch information
dirkgroot committed Apr 9, 2024
1 parent 3f2a4a1 commit c0a85cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ tasks {
}
}

startScripts {
// This is a workaround for an issue with the generated .bat file,
// reported in https://github.com/avisi-cloud/structurizr-site-generatr/issues/463.
// Instead of listing each and every .jar file in the lib directory, we just use a
// wildcard to include everything in the lib directory in the classpath.
classpath = files("lib/*")
}

withType<Tar> {
archiveExtension.set("tar.gz")
compression = Compression.GZIP
Expand Down

0 comments on commit c0a85cb

Please sign in to comment.