blob: 8165aa2681eceb93c108b13b225f62b39205cd79 [file] [log] [blame]
configurations {
epsilon
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
mavenCentral()
}
dependencies {
epsilon 'org.eclipse.epsilon:org.eclipse.epsilon.workflow:2.3.0-SNAPSHOT'
epsilon 'org.eclipse.epsilon:org.eclipse.epsilon.workflow.emf:2.3.0-SNAPSHOT'
}
task setupEpsilonTasks {
// Set up the core Epsilon tasks
ant.taskdef(resource: 'org/eclipse/epsilon/workflow/tasks/tasks.xml',
classpath: configurations.epsilon.asPath, loaderref: 'epsilon')
// Set up the Epsilon EMF tasks
ant.taskdef(resource: 'org/eclipse/epsilon/workflow/tasks/emf/tasks.xml',
classpath: configurations.epsilon.asPath, loaderref: 'epsilon')
// Set logging level to info so that EOL's println() is not suppressed
ant.lifecycleLogLevel = 'INFO'
}
task run {
dependsOn tasks.setupEpsilonTasks
// Load the library.model EMF model
ant.'epsilon.emf.loadModel'(name:'Library',
modelfile:'library.model', metamodelfile:'library.ecore')
// Run library.eol against it
ant.'epsilon.eol'(src: 'library.eol'){ model(ref: 'Library') }
}