-
Notifications
You must be signed in to change notification settings - Fork 317
/
CommonTypesGenerator.mwe2
36 lines (31 loc) · 1.17 KB
/
CommonTypesGenerator.mwe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*******************************************************************************
* Copyright (c) 2023 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
module org.eclipse.xtext.common.types.CommonTypesGenerator
import org.eclipse.emf.mwe.utils.StandaloneSetup
import org.eclipse.emf.mwe.utils.DirectoryCleaner
import org.eclipse.emf.mwe2.ecore.EcoreGenerator
var project = "org.eclipse.xtext.common.types"
/**
* @author Lorenzo Bettini - Initial contribution
*/
Workflow {
bean = StandaloneSetup {
// initialize the EMF singleton with proper classpath to platform:/resource mappings
platformUri = "."
}
component = DirectoryCleaner {
directory = "emf-gen"
}
component = EcoreGenerator {
// generate the Java code for the EPackage
genModel = "platform:/resource/${project}/model/JavaVMTypes.genmodel"
srcPath = "platform:/resource/${project}/src"
lineDelimiter = "\n"
}
}