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

Move Epsilon progam execution to doLast block in Gradle #28

Open
kolovos opened this issue Apr 28, 2024 · 0 comments
Open

Move Epsilon progam execution to doLast block in Gradle #28

kolovos opened this issue Apr 28, 2024 · 0 comments

Comments

@kolovos
Copy link
Contributor

kolovos commented Apr 28, 2024

Reported by @agarciadom on Slack.

I noticed an issue in the Gradle files generated by the Epsilon Playground. The actual transformation should be put in a doLast block, so it will only be run in the execution phase of Gradle. Otherwise, it runs in the configuration phase (which is executed by the Gradle support in IDEs like Visual Studio), which will create issues if someone wanted to use remote debugging capabilities. So something like this:

task run {
    dependsOn tasks.setupEpsilonTasks
    doLast {
      // Load the MarkingMate model
      ant.'epsilon.emf.loadModel'(name: 'M', modelfile: 'model/markingmate.xml', metamodelfile: 'model/markingmate.ecore')
      ant.'epsilon.evl'(src: 'epsilon/markingmate.evl'){
        model(ref: 'M')
      }
    }
}
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

1 participant