blob: 5cf9b1bbdaf8d7811a0f27555ce8b3746d50041a [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'
epsilon 'org.eclipse.emfatic:org.eclipse.emfatic.core:0.8.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.flexmi EMF model
ant.'epsilon.emf.loadModel'(name: 'Library',
modelfile: '../library.flexmi', metamodelfile: '../library.emf')
// Run library.eol against it
ant.'epsilon.eol'(src: '../library.eol'){ model(ref: 'Library') }
}