Merge pull request #656 from eclipse/so_fix_xbase_generator

set rootpath and basename in GenerateXbase
This commit is contained in:
Stefan Oehme 2015-10-06 09:11:24 +02:00
commit 7594456e64

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)