Skip to content

Commit

Permalink
fix: Starting Fireplace app from gradle + intellij
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Mar 24, 2024
1 parent 84f4429 commit fe4aeb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fireplace-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ java {
}

application {
mainClass.set("com.github.bric3.fireplace.FireplaceMain")
mainClass.set("io.github.bric3.fireplace.FireplaceMain")
}

tasks.jar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ import java.nio.file.Files
import java.nio.file.Path
import java.util.*
import java.util.stream.Collectors.toUnmodifiableList
import javax.swing.BorderFactory
import javax.swing.JFrame
import javax.swing.JPanel
import javax.swing.JTextField
import javax.swing.SwingUtilities
import javax.swing.*

fun main(args: Array<String>) {
System.getProperties().forEach { k: Any, v: Any -> println("$k = $v") }
val paths = Arrays.stream(args)
.filter { arg -> !arg.matches("-NSRequiresAquaSystemAppearance|[Ff]alse|[Nn][Oo]|0".toRegex()) }
.map { it.replace("\$HOME", System.getProperty("user.home")) }
.map(Path::of)
.filter { path ->
Files.exists(path).also {
Expand Down

0 comments on commit fe4aeb9

Please sign in to comment.