Skip to content
Snippets Groups Projects
Verified Commit cacc347e authored by Griefed's avatar Griefed :joystick:
Browse files

Create dir first before listing files

parent dddc70c5
No related branches found
No related tags found
4 merge requests!554Milestone 5 Release,!534Beta,!533Beta,!387draft: milestone: Rebuild the entire GUI for better UX, overall usability and expandability and more features
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate i18n Files" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="generateI18n4kFiles" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
\ No newline at end of file
......@@ -80,18 +80,18 @@ tasks.test {
}
fun cleanup() {
projectDir.resolve("tests")
.listFiles()
.filter { !it.name.endsWith("gitkeep") }
.forEach {
it.deleteRecursively()
}
val tests = File(projectDir,"tests").absoluteFile
mkdir(tests.absolutePath)
val gitkeep = File(tests,".gitkeep").absoluteFile
if (!gitkeep.exists()) {
File(tests,".gitkeep").writeText("Hi")
}
projectDir.resolve("tests")
.listFiles()
.filter { !it.name.endsWith("gitkeep") }
.forEach {
it.deleteRecursively()
}
}
tasks.jar {
......
......@@ -94,16 +94,19 @@ class ServerPackCreator(private val args: Array<String>) {
when (mode) {
Mode.HELP -> {
System.setProperty("java.awt.headless", "true")
printHelp()
continuedRunOptions()
}
Mode.UPDATE -> {
System.setProperty("java.awt.headless", "true")
updateChecker.updateCheck(true)
continuedRunOptions()
}
Mode.WEB -> {
System.setProperty("java.awt.headless", "true")
apiWrapper.stageOne()
migrationManager!!.migrate()
apiWrapper.stageTwo()
......@@ -113,6 +116,7 @@ class ServerPackCreator(private val args: Array<String>) {
}
Mode.CGEN -> {
System.setProperty("java.awt.headless", "true")
apiWrapper.stageOne()
migrationManager!!.migrate()
apiWrapper.stageTwo()
......@@ -122,6 +126,7 @@ class ServerPackCreator(private val args: Array<String>) {
}
Mode.CLI -> {
System.setProperty("java.awt.headless", "true")
apiWrapper.stageOne()
migrationManager!!.migrate()
apiWrapper.stageTwo()
......@@ -149,6 +154,7 @@ class ServerPackCreator(private val args: Array<String>) {
}
Mode.SETUP -> {
System.setProperty("java.awt.headless", "true")
apiWrapper.setup(force = true)
log.info("Setup completed.")
log.debug("Exiting...")
......
Hi
\ No newline at end of file
Hi
\ No newline at end of file
Hi
\ No newline at end of file
Hi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment