Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple file extensions explicitly #71

Closed
franzbecker opened this issue Dec 19, 2016 · 0 comments
Closed

Support multiple file extensions explicitly #71

franzbecker opened this issue Dec 19, 2016 · 0 comments
Assignees

Comments

@franzbecker
Copy link
Contributor

In Xtext I can have multiple file extensions for a given Xtext language by configuring the MWE2 workflow like this:

language = StandardLanguage {
    name = "com.example.Demo"
    fileExtensions = "demo,example"
}

In the xtext-gradle-plugin this does not work out of the box. I can do something like this:

xtext {
    languages {
        demo {
            fileExtension = 'demo'
            setup = 'com.example.DemoStandaloneSetup'
        }
        demoExample {
            fileExtension = 'example'
            setup = 'com.example.DemoStandaloneSetup'
        }
    }
}

but when generating Java code it seems that I need to add generator.outlet.producesJava = true to every language.

It would be nice to have a syntax such as:

xtext {
    languages {
        demo {
            fileExtensions = 'demo,example'
            setup = 'com.example.DemoStandaloneSetup'
        }
    }
}
ArneDeutsch added a commit that referenced this issue Jun 11, 2018
Deprecated 'fileExtension' in favor to 'fileExtensions'.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
@ArneDeutsch ArneDeutsch self-assigned this Jun 11, 2018
@oehme oehme closed this as completed in d9ddb26 Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants