Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cda9df3351d75ee4cf870428e483c9c7df79a46b (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
module org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything

Workflow {

	bean = org.eclipse.emf.ecore.resource.impl.ResourceSetImpl : rSet {}
	bean = org.eclipse.ocl.examples.build.utilities.ProjectMapSetup { resourceSet = rSet }
	bean = org.eclipse.ocl.examples.build.utilities.EcoreGenModelSetup { resourceSet = rSet }
	
	// We run the Xtext Generator
	component = @org.eclipse.qvtd.doc.GenerateMiniOCLCS { }
	
	
	// We inject the CS trace property
	component = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector {
		resourceSet = rSet
		cSTraceInfo = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector.CSTraceInfo {
			targetGenModel = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel"	
		}
		aSTraceType = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector.ASTraceInfo {
			targetGenModel = "platform:/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel"
			targetTypeName = "Element"
		}
	}
	
	// We regenerate the CS model
	component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
		genModel = "/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel"
	}
	
	// We regenerate the AS model
	component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
		genModel = "/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel"
	}
	
	component = org.eclipse.ocl.examples.build.xtend.GenerateASVisitors { resourceSet = rSet
		projectName = "org.eclipse.qvtd.doc.miniocl"
		genModelFile = "model/MiniOCL.genmodel"
	}
	
	// We regenerate the AS Lookup model
	component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
		genModel = "/org.eclipse.qvtd.doc.miniocl/model/Lookup.genmodel"
	}
	
	// We generate the AS Lookup infrastructure
	component = @SubGenerateAutoASModel { resourceSet = rSet
    	projectName = "org.eclipse.qvtd.doc.miniocl"
    	genModelFile = "model/MiniOCL.genmodel"
    	lookupFilePath = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl"
    }
    
    
    // We generate the CS2AS infrastructure
	
    component = org.eclipse.ocl.examples.build.utilities.CopyAndRename {
    	script = "org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything"
    	fromProject = "../../plugins/org.eclipse.qvtd.runtime/src"
    	toProject = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
    	packageCopy = {
    		from = "org.eclipse.qvtd.runtime.internal.cs2as"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageCopy = {
    		from = "org.eclipse.qvtd.runtime.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageCopy = {
    		from = "org.eclipse.qvtd.runtime.internal.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
    	}
    	packageCopy = {
    		from = "org.eclipse.qvtd.runtime.labels"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtexts.labels"
    	}
    	packageCopy = {
    		from = "org.eclipse.qvtd.runtime.library.model"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
    	}
    	
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.internal.cs2as"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.internal.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.labels"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.labels"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.library.model"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
    	}
    }
    
     component = org.eclipse.ocl.examples.build.utilities.CopyAndRename {
    	script = "org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything"
    	fromProject = "../../plugins/org.eclipse.qvtd.cs2as.xtext.runtime/src"
    	toProject = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
    	packageCopy = {
    		from = "org.eclipse.qvtd.cs2as.xtext.runtime"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.internal.cs2as"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    }

	bean = org.eclipse.emf.ecore.resource.impl.ResourceSetImpl : rSet2 {}
	bean = org.eclipse.ocl.examples.build.utilities.ProjectMapSetup { resourceSet = rSet2 }
	bean = org.eclipse.ocl.examples.build.utilities.EcoreGenModelSetup { resourceSet = rSet2 }
  
	component = org.eclipse.ocl.examples.build.utilities.GenerateCGedQVTiTransformation {
		debug = true 
		resourceSet = rSet2
		oclDocURI = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.ocl"
		javaFolder = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
		javaPackage = "org.eclipse.qvtd.doc.minioclcs.xtext"
		lookupSolverClassName = "org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupSolver"
		lookupResultItfName = "org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupResult"
		
		packageRename = {
    		from = "org.eclipse.qvtd.runtime.library.model"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.internal.cs2as"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
    	}
    	packageRename = {
    		from = "org.eclipse.qvtd.runtime.internal.evaluation"
    		to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
    	}
	}
}

Back to the top