mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
Merge pull request #656 from eclipse/so_fix_xbase_generator
set rootpath and basename in GenerateXbase
This commit is contained in:
commit
7594456e64
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue