set rootpath and basename in GenerateXbase

also add a validation so that this doesn't go unnoticed again
This commit is contained in:
Stefan Oehme 2015-10-06 08:47:58 +02:00
parent 4825c50e78
commit 66cde8ea28

View file

@ -44,11 +44,15 @@ class WizardConfig extends XtextProjectConfig {
override checkConfiguration(Issues issues) {
super.checkConfiguration(issues)
val runtimeBase = runtimeRoot?.path
if (runtimeBase.nullOrEmpty) {
issues.addError('The property \'runtimeRoot\' must be set.', this)
if (rootPath == null) {
issues.addError('The property \'rootPath\' must be set.', this)
return
}
if (baseName == null) {
issues.addError('The property \'baseName\' must be set.', this)
return
}
val runtimeBase = runtimeRoot?.path
if (!Character.isJavaIdentifierPart(runtimeBase.charAt(runtimeBase.length - 1)))
issues.addError('The runtime root path must end with a valid package name.', this)
if ((ideaEditor || webSupport) && !genericIdeSupport)