blob: 2cf9fb3f0bb677b3951a4716c3cdbd92e272169f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Willink Transformations Ltd., University of York and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Adolfo Sanchez-Barbudo Herrera (University of York) - initial API and implementation
*
*******************************************************************************/
module org.eclipse.qvtd.build.mwe2.GenerateExample1Models
import org.eclipse.ocl.examples.autogen.*
import org.eclipse.ocl.examples.build.utilities.*
import org.eclipse.ocl.examples.build.xtend.*
import org.eclipse.emf.ecore.resource.impl.*
var projectName = "org.eclipse.qvtd.cs2as.compiler.tests"
var examplesFolder = "models/Source2Target"
Workflow {
bean = ResourceSetImpl : resourceSet {}
bean = ProjectMapSetup{ resourceSet = resourceSet}
bean = EcoreGenModelSetup { resourceSet = resourceSet }
component = GenerateModel { resourceSet = resourceSet skipOnErrors = true
genModel = "/${projectName}/${examplesFolder}/SourceMM1.genmodel" clearResourceSet = false
}
component = GenerateModel { resourceSet = resourceSet skipOnErrors = true
genModel = "/${projectName}/${examplesFolder}/TargetMM1.genmodel" clearResourceSet = false
}
component = GenerateModel { resourceSet = resourceSet skipOnErrors = true
genModel = "/${projectName}/${examplesFolder}/EnvExample1.genmodel" clearResourceSet = false
}
component = GenerateASVisitors { resourceSet = resourceSet
projectName = "${projectName}"
superProjectName = ""
genModelFile = "${examplesFolder}/TargetMM1.genmodel"
}
component = @SubGenerateAutoASModel { resourceSet = resourceSet
projectName = "${projectName}"
genModelFile = "${examplesFolder}/TargetMM1.genmodel"
lookupFilePath = "${examplesFolder}/Source2TargetLookup.ocl"
}
}