Refactor a bit

This commit is contained in:
nelle 2024-02-16 03:19:36 -07:00
parent c6fdc4c26d
commit f2f478fec0
4 changed files with 7 additions and 8 deletions

View file

@ -35,14 +35,14 @@ tasks {
named<ShadowJar>("shadowJar") {
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "org.bm00.data-accessor.MainKt"))
attributes(mapOf("Main-Class" to "org.bm00.DataAccessor.MainKt"))
}
}
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "org.bm00.data-accessor.MainKt"
attributes["Main-Class"] = "org.bm00.DataAccessor.MainKt"
}
}

View file

@ -1,4 +1,4 @@
package org.bm00.`data-accessor`
package org.bm00.DataAccessor
import dev.dirs.ProjectDirectories
import java.io.File
@ -6,7 +6,6 @@ import java.io.FileInputStream
import java.io.FileOutputStream
import java.io.OutputStream
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
import java.util.*

View file

@ -1,8 +1,10 @@
package org.bm00.`data-accessor`
package org.bm00.DataAccessor
import jexer.TApplication
import org.bm00.DataAccessor.windows.ProgramWindow
import java.util.*
// This creates a Jexer application (and calls the "backend type" which is how its rendered)
class Application : TApplication(BackendType.SWING) {
init {
ProgramWindow(this)

View file

@ -1,11 +1,9 @@
package org.bm00.`data-accessor`
package org.bm00.DataAccessor.windows
import jexer.TAction
import jexer.TApplication
import jexer.TWindow
import jexer.layout.StretchLayoutManager
import java.io.IOException
import java.util.*
class ProgramWindow private constructor(parent: TApplication, flags: Int) :
TWindow(parent, "O.S.D.A.", 0, 0, 46, 10, flags) {