Compare commits
2 Commits
8050f51424
...
997292d58e
| Author | SHA1 | Date | |
|---|---|---|---|
| 997292d58e | |||
| e176b3bca8 |
@@ -29,10 +29,6 @@ class DevServer extends DefaultTask {
|
|||||||
@Input
|
@Input
|
||||||
boolean debug = false
|
boolean debug = false
|
||||||
|
|
||||||
@Input
|
|
||||||
@Optional
|
|
||||||
String worldName = null
|
|
||||||
|
|
||||||
@Input
|
@Input
|
||||||
String template = null
|
String template = null
|
||||||
|
|
||||||
@@ -87,10 +83,13 @@ class DevServer extends DefaultTask {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (worldName == null) worldName = properties.get("worldName")
|
worldName = properties.get("worldName")
|
||||||
host = properties.get("host")
|
host = properties.get("host")
|
||||||
debugPort = new Random().nextInt(5001, 10000)
|
debugPort = new Random().nextInt(5001, 10000)
|
||||||
|
|
||||||
|
if (worldName == null) {
|
||||||
|
throw new GradleException("Please supply the 'worldName' in a 'steamwar.properties' files either in this project dir or any parent project!")
|
||||||
|
}
|
||||||
if (host == null) {
|
if (host == null) {
|
||||||
throw new GradleException("Please supply the 'host' in a 'steamwar.properties' files either in this project dir or any parent project!")
|
throw new GradleException("Please supply the 'host' in a 'steamwar.properties' files either in this project dir or any parent project!")
|
||||||
}
|
}
|
||||||
@@ -116,6 +115,9 @@ class DevServer extends DefaultTask {
|
|||||||
@Internal
|
@Internal
|
||||||
Boolean running = true
|
Boolean running = true
|
||||||
|
|
||||||
|
@Internal
|
||||||
|
String worldName = null
|
||||||
|
|
||||||
class Finalizer extends DefaultTask {
|
class Finalizer extends DefaultTask {
|
||||||
|
|
||||||
Finalizer() {
|
Finalizer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user