Refactor a bit
This commit is contained in:
parent
c6fdc4c26d
commit
f2f478fec0
4 changed files with 7 additions and 8 deletions
|
@ -35,14 +35,14 @@ tasks {
|
||||||
named<ShadowJar>("shadowJar") {
|
named<ShadowJar>("shadowJar") {
|
||||||
mergeServiceFiles()
|
mergeServiceFiles()
|
||||||
manifest {
|
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) {
|
val jar by tasks.getting(Jar::class) {
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Main-Class"] = "org.bm00.data-accessor.MainKt"
|
attributes["Main-Class"] = "org.bm00.DataAccessor.MainKt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.bm00.`data-accessor`
|
package org.bm00.DataAccessor
|
||||||
|
|
||||||
import dev.dirs.ProjectDirectories
|
import dev.dirs.ProjectDirectories
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
@ -6,7 +6,6 @@ import java.io.FileInputStream
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
import java.io.OutputStream
|
import java.io.OutputStream
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.nio.file.Path
|
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package org.bm00.`data-accessor`
|
package org.bm00.DataAccessor
|
||||||
|
|
||||||
import jexer.TApplication
|
import jexer.TApplication
|
||||||
|
import org.bm00.DataAccessor.windows.ProgramWindow
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
// This creates a Jexer application (and calls the "backend type" which is how its rendered)
|
||||||
class Application : TApplication(BackendType.SWING) {
|
class Application : TApplication(BackendType.SWING) {
|
||||||
init {
|
init {
|
||||||
ProgramWindow(this)
|
ProgramWindow(this)
|
|
@ -1,11 +1,9 @@
|
||||||
package org.bm00.`data-accessor`
|
package org.bm00.DataAccessor.windows
|
||||||
|
|
||||||
import jexer.TAction
|
import jexer.TAction
|
||||||
import jexer.TApplication
|
import jexer.TApplication
|
||||||
import jexer.TWindow
|
import jexer.TWindow
|
||||||
import jexer.layout.StretchLayoutManager
|
import jexer.layout.StretchLayoutManager
|
||||||
import java.io.IOException
|
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
class ProgramWindow private constructor(parent: TApplication, flags: Int) :
|
class ProgramWindow private constructor(parent: TApplication, flags: Int) :
|
||||||
TWindow(parent, "O.S.D.A.", 0, 0, 46, 10, flags) {
|
TWindow(parent, "O.S.D.A.", 0, 0, 46, 10, flags) {
|
Loading…
Reference in a new issue