Skip to main content
summaryrefslogtreecommitdiffstats
blob: 310ea33043baaedbd088f0ad76f484f7512467f4 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
RobotTask {
	variables = {
		## Maven Group Id
		STRING "Maven_GroupId" default "my.sample.osgi",
		## Name of the project
		STRING "BundleProject_projectName" default "${Maven_GroupId}.app",  
		## Symbolic id of the bundle
		STRING "BundleProject_bundleId" default "${Maven_GroupId}.app",
		## Name of the Bundle
		STRING "BundleProject_bundleName" default "My Sample App",
		## Vendor of the Bundle
		STRING "BundleProject_bundleVendor" default "My Company",
		## Product name
		STRING "BundleProject_productName" default "My Sample Application",
		## Bundle Version
		STRING "BundleProject_bundleVersion" default "1.0.0.qualifier",
		## Bundle Execution Environment
		STRING "BundleProject_EE" default "JavaSE-1.7",
		## Tycho integration
		BOOLEAN "TychoIntegration" default "true",
		## Native export integration
		BOOLEAN "NativeExport" default "true",
		## Eclipse DI
		BOOLEAN "EclipseDI" default "true",
		## ICU Base
		BOOLEAN "ICUBase" default "false",
		## JemmyTest
		BOOLEAN "JemmyTest" default "false"
	}
	projects = {
		BundleProject "${BundleProject_projectName}" {
			manifest = ManifestFile "${BundleProject_bundleId}" "${BundleProject_bundleVersion}" "${BundleProject_EE}" {
				bundlename = "${BundleProject_bundleName}"
				vendor = "${BundleProject_bundleVendor}"
				importedPackages = {
					"javax.inject" 				[1.0.0,] excluded-if "javascript" /# !EclipseDI; #/,
					"javax.annotation" 			[1.0.0,] excluded-if "javascript" /# !EclipseDI; #/,
					"javafx.animation" 			[2.0.0,],
					"javafx.application" 		[2.0.0,],
					"javafx.beans" 				[2.0.0,],
					"javafx.beans.binding" 		[2.0.0,],
					"javafx.beans.property" 	[2.0.0,],
					"javafx.beans.value" 		[2.0.0,],
					"javafx.collections" 		[2.0.0,],
					"javafx.concurrent" 		[2.0.0,],
					"javafx.event" 				[2.0.0,],
					"javafx.fxml" 				[2.0.0,],
					"javafx.geometry" 			[2.0.0,],
					"javafx.scene" 				[2.0.0,],
					"javafx.scene.chart" 		[2.0.0,],
					"javafx.scene.control" 		[2.0.0,],
					"javafx.scene.control.cell" [2.0.0,],
					"javafx.scene.effect" 		[2.0.0,],
					"javafx.scene.image" 		[2.0.0,],
					"javafx.scene.input" 		[2.0.0,],
					"javafx.scene.layout" 		[2.0.0,],
					"javafx.scene.media" 		[2.0.0,],
					"javafx.scene.paint" 		[2.0.0,],
					"javafx.scene.shape" 		[2.0.0,],
					"javafx.scene.text" 		[2.0.0,],
					"javafx.scene.transform" 	[2.0.0,],
					"javafx.scene.web" 			[2.0.0,],
					"javafx.stage"	 			[2.0.0,],
					"javafx.util" 				[2.0.0,]
				}
				requiredBundles = {
					"org.eclipse.fx.javafx",
					"org.eclipse.fx.osgi.util",
					"org.eclipse.fx.core.databinding",
					"org.eclipse.fx.ui.databinding",
					"org.eclipse.fx.ui.di" excluded-if "javascript" /# !EclipseDI; #/,
					
					"org.eclipse.equinox.app"
				}
			}
			pluginxml = PluginXMLFile {
				extensions = {
					// A default application
					"org.eclipse.core.runtime.applications" {
						id = "application"
						elements = {
							"application" {
								attributes = {
									{"thread","any"},
									{"cardinality","*"},
									{"visible","true"}
								}
								children = {
									"run" {
										attributes = {
											{ "class" , "${BundleProject_bundleId}.MainApplication" }
										}
									}
								}
							}
						}
					} excluded-if "javascript" /# EclipseDI; #/,
					// A DI application
					"org.eclipse.core.runtime.applications" {
						id = "application"
						elements = {
							"application" {
								attributes = {
									{"thread","any"},
									{"cardinality","*"},
									{"visible","true"}
								}
								children = {
									"run" {
										attributes = {
											{ "class" , "org.eclipse.fx.ui.di.DIApplication" }
										}
										children = {
											"parameter" {
												attributes = {
													{ "name", "mainClass"},
													{ "value", "${BundleProject_bundleId}.MainApplication"}
												}
											}
										}
									}
								}
							}
						}
					} excluded-if "javascript" /# !EclipseDI; #/,
					"org.eclipse.core.runtime.products" {
						id = "product"
						elements = {
							"product" {
								attributes = {
									{ "application", 	"${BundleProject_bundleId}.application" },
									{ "name", 			"${BundleProject_productName}" }
								}
								children = {
									"property" {
										attributes = {
											{"name","appName"},
											{"value","${BundleProject_productName}"}
										}
									}
								}
							}
						}
					}
				}
			}
			build = BuildProperties {
				binIncludes = {
					"css"
				}
			}
			resources = {
				Folder "css" {
					children = {
						// Add a file 'default.css' file which has a dummy content
						DataFile "default.css" {
							content = "/* Main CSS-File */"
						}
					}
				},
				Folder "src",
				DynamicFile "pom.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.tycho.PluginPomGenerator" 
					by "java"
					{
						## releng group id
						STRING "relengGroupId" default "${Maven_GroupId}",
						## releng artifact id
						STRING "relengArtifactId" default "${BundleProject_bundleId}.releng",
						## releng releng path
						STRING "relengPath" default "../${BundleProject_bundleId}.releng",
						## group id
						STRING "groupId" default "${Maven_GroupId}",
						## artifactId
						STRING "artifactId" default "${BundleProject_bundleId}",
						## baseVersion
						STRING "baseVersion" default "${BundleProject_bundleVersion}",
						## pom name
						STRING "name" default "${BundleProject_productName} - application bundle"
					} 
					excluded-if "javascript" /# !TychoIntegration; #/
			}
			rootfragments = {
				fragment "default-src" "src"
			}
			compilation-units = {
				"${BundleProject_bundleId}" in "default-src" {
					DynamicFile "MainApplication.java" generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.wizard.app.tpl.ApplicationClassTpl" by "java"
				}
				excluded-if "javascript" /# EclipseDI; #/,
				"${BundleProject_bundleId}" in "default-src" {
					DynamicFile "MainApplication.java" generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.wizard.app.tpl.DIApplicationClassTpl" by "java"
				}
				excluded-if "javascript" /# !EclipseDI; #/
			}
		},
		FeatureProject "${BundleProject_projectName}.feature" {
			feature = FeatureFile "${BundleProject_bundleId}.feature" { 
				version = "${BundleProject_bundleVersion}" 
				featurename = "${BundleProject_productName} Application Feature"
				description = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				copyright = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				license = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				vendor = "${BundleProject_bundleVendor}"
				plugins = {
					"${BundleProject_bundleId}",
					fragment "org.eclipse.fx.osgi",
					"org.eclipse.fx.javafx",
					"org.eclipse.fx.core.databinding",
					"org.eclipse.fx.ui.di" excluded-if "javascript" /# !EclipseDI; #/,
					"org.eclipse.fx.core" excluded-if "javascript" /# !EclipseDI; #/,
					"org.eclipse.fx.osgi.util" excluded-if "javascript" /# !EclipseDI; #/,
					"javax.annotation" excluded-if "javascript" /# !EclipseDI; #/,
					"javax.inject" excluded-if "javascript" /# !EclipseDI; #/, 
					"org.eclipse.core.databinding",
					"org.eclipse.core.databinding.observable",
					"org.eclipse.core.databinding.property",
					"org.eclipse.equinox.app",
					"org.eclipse.osgi",
					"org.eclipse.equinox.common",
					"org.eclipse.equinox.registry",
					"org.eclipse.equinox.ds",
					"org.eclipse.equinox.event",
					"org.eclipse.equinox.util",
					"org.eclipse.osgi.services",
					"com.ibm.icu"  excluded-if "javascript" /# ICUBase; #/, 
					"com.ibm.icu.base"  excluded-if "javascript" /# !ICUBase; #/, 
					"org.eclipse.e4.core.di" excluded-if "javascript" /# !EclipseDI; #/,
					"org.eclipse.e4.core.contexts" excluded-if "javascript" /# !EclipseDI; #/,
							
					"org.eclipse.core.runtime", //TODO Should be removed!
					"org.eclipse.core.jobs",
					"org.eclipse.equinox.preferences",
					"org.eclipse.core.contenttype"
				}
			}
			resources = {
				DataFile "build.properties" {
					content = "bin.includes = feature.xml"
				},
				DynamicFile "pom.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.tycho.FeaturePomGenerator" 
					by "java"
					{
						## releng group id
						STRING "relengGroupId" default "${Maven_GroupId}",
						## releng artifact id
						STRING "relengArtifactId" default "${BundleProject_bundleId}.releng",
						## releng releng path
						STRING "relengPath" default "../${BundleProject_bundleId}.releng",
						## group id
						STRING "groupId" default "${Maven_GroupId}",
						## artifactId
						STRING "artifactId" default "${BundleProject_bundleId}.feature",
						## baseVersion
						STRING "baseVersion" default "${BundleProject_bundleVersion}",
						## pom name
						STRING "name" default "${BundleProject_productName} - application feature"
					}
					excluded-if "javascript" /# !TychoIntegration; #/
			}
		},
		BundleProject "${BundleProject_projectName}.jemmy" {
			manifest = ManifestFile "${BundleProject_bundleId}.jemmy" "1.0.0.qualifier" "${BundleProject_EE}" {
				bundlename = "${BundleProject_bundleName} Jemmy UI Tests"
				vendor = "${BundleProject_bundleVendor}"
				importedPackages = {
					"javax.inject" 				[1.0.0,],
					"javax.annotation" 			[1.0.0,],
					"javafx.animation" 			[2.0.0,],
					"javafx.application" 		[2.0.0,],
					"javafx.beans" 				[2.0.0,],
					"javafx.beans.binding" 		[2.0.0,],
					"javafx.beans.property" 	[2.0.0,],
					"javafx.beans.value" 		[2.0.0,],
					"javafx.collections" 		[2.0.0,],
					"javafx.concurrent" 		[2.0.0,],
					"javafx.event" 				[2.0.0,],
					"javafx.fxml" 				[2.0.0,],
					"javafx.geometry" 			[2.0.0,],
					"javafx.scene" 				[2.0.0,],
					"javafx.scene.chart" 		[2.0.0,],
					"javafx.scene.control" 		[2.0.0,],
					"javafx.scene.control.cell" [2.0.0,],
					"javafx.scene.effect" 		[2.0.0,],
					"javafx.scene.image" 		[2.0.0,],
					"javafx.scene.input" 		[2.0.0,],
					"javafx.scene.layout" 		[2.0.0,],
					"javafx.scene.media" 		[2.0.0,],
					"javafx.scene.paint" 		[2.0.0,],
					"javafx.scene.shape" 		[2.0.0,],
					"javafx.scene.text" 		[2.0.0,],
					"javafx.scene.transform" 	[2.0.0,],
					"javafx.scene.web" 			[2.0.0,],
					"javafx.stage"	 			[2.0.0,],
					"javafx.util" 				[2.0.0,],
					// The Jemmy Stuff
					"org.jemmy.action" 				[3.0.0,],
					"org.jemmy.browser" 			[3.0.0,],
					"org.jemmy.control" 			[3.0.0,],
					"org.jemmy.dock" 				[3.0.0,],
					"org.jemmy.env" 				[3.0.0,],
					"org.jemmy.fx" 					[3.0.0,],
					"org.jemmy.fx.control" 			[3.0.0,],
					"org.jemmy.fx.control.caspian"	[3.0.0,],
					"org.jemmy.image" 				[3.0.0,],
					"org.jemmy.image.pixel" 		[3.0.0,],
					"org.jemmy.input" 				[3.0.0,],
					"org.jemmy.input.glass" 		[3.0.0,],
					"org.jemmy.interfaces" 			[3.0.0,],
					"org.jemmy.lookup" 				[3.0.0,],
					"org.jemmy.operators" 			[3.0.0,],
					"org.jemmy.resources" 			[3.0.0,],
					"org.jemmy.support" 			[3.0.0,],
					"org.jemmy.timing" 				[3.0.0,]
				}
				requiredBundles = {
					"org.junit",
					"org.eclipse.fx.jemmy"
				}
			}
			build = BuildProperties {
				
			}
			resources = {
				Folder "src",
				DynamicFile "${BundleProject_bundleId}.jemmy.launch" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.JemmyFeatureLaunchGenerator" 
					by "java"
					{
						## Project name
						STRING "projectName" default "${BundleProject_bundleId}.jemmy",
						## Launch features
						STRING "featureList" default "org.eclipse.fx.jemmy.feature,org.eclipse.fx.jemmy.junit.feature,${BundleProject_bundleId}.feature,${BundleProject_bundleId}.jemmy.feature",
						## Test Suite class
						STRING "testSuite" default "${BundleProject_bundleId}.jemmy.TestSuite",
						## Test Product Id
						STRING "testProductId" default "${BundleProject_bundleId}.product"
					},
				DynamicFile "pom.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.tycho.JemmyPomGenerator" 
					by "java" 
					{
						## releng group id
						STRING "relengGroupId" default "${Maven_GroupId}",
						## releng artifact id
						STRING "relengArtifactId" default "${BundleProject_bundleId}.releng",
						## releng releng path
						STRING "relengPath" default "../${BundleProject_bundleId}.releng",
						## group id
						STRING "groupId" default "${Maven_GroupId}",
						## artifactId
						STRING "artifactId" default "${BundleProject_bundleId}.jemmy",
						## baseVersion
						STRING "baseVersion" default "${BundleProject_bundleVersion}",
						## name
						STRING "name" default "${BundleProject_productName} - jemmy tests",
						## testBundleId
						STRING "testBundleId" default "${BundleProject_bundleId}.jemmy",
						## testSuite
						STRING "testSuite" default "${BundleProject_bundleId}.jemmy.TestSuite",
						## testProductId
						STRING "testProductId" default "${BundleProject_bundleId}.product",
						## testProductFeature
						STRING "testProductFeature" default "${BundleProject_bundleId}.feature"
					}
			}
			rootfragments = {
				fragment "default-src" "src"
			}
			compilation-units = {
				"${BundleProject_bundleId}.jemmy" in "default-src" { 
					DynamicFile "SampleTestCase.java" generated-from "bundleclass://org.eclipse.fx.ide.pde.ui.e4/org.eclipse.fx.ide.pde.ui.e4.project.template.SampleTestCaseGenerator" by "java"
				},
				"${BundleProject_bundleId}.jemmy" in "default-src" { 
					DynamicFile "TestSuite.java" generated-from "bundleclass://org.eclipse.fx.ide.pde.ui.e4/org.eclipse.fx.ide.pde.ui.e4.project.template.TestSuiteGenerator" by "java"
				}
			}
		} excluded-if "javascript" /# !JemmyTest; #/,
		FeatureProject "${BundleProject_projectName}.jemmy.feature" {
			feature = FeatureFile "${BundleProject_bundleId}.jemmy.feature" {
				version = "${BundleProject_bundleVersion}" 
				featurename = "${BundleProject_productName} Jemmy JUnit Feature"
				description = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				copyright = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				license = LinkedString "http://www.efxclipse.org" {
					"TODO FILL WITH CONTENT"
				}
				vendor = "${BundleProject_bundleVendor}"
				plugins = {
					"${BundleProject_projectName}.jemmy"
				}
			}
			resources = {
				DataFile "build.properties" {
					content = "bin.includes = feature.xml"
				}
			}
		} excluded-if "javascript" /# !JemmyTest; #/,
		SimpleProject "${BundleProject_projectName}.product" {
			resources = {
				ProductFileFeaturebase "${BundleProject_bundleId}.product" {
					productName = "${BundleProject_productName}"
					application = "${BundleProject_bundleId}.application"
					version = "1.0.0" 
					programArgs = "-nosplash"
					vmArgs = "-Dosgi.framework.extensions=org.eclipse.fx.osgi"
					startconfigurations = {
						"org.eclipse.core.runtime" 		autostarted at  0,
						"org.eclipse.equinox.common" 	autostarted at  2, 
						"org.eclipse.equinox.ds" 		autostarted at  1,
						"org.eclipse.osgi" 				autostarted at -1  
					}
					features = {
						"${BundleProject_bundleId}.feature" "${BundleProject_bundleVersion}"
					}
				},
				DynamicFile "${BundleProject_bundleId}.product.product.launch" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.FeatureLaunchGenerator"
					by "java" 
					{
						## Project name
						STRING "projectName" default "${BundleProject_bundleId}.product",
						## Launch feature
						STRING "feature" default "${BundleProject_projectName}.feature"
					},
				DynamicFile "pom.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.tycho.ProductPomGenerator" 
					by "java"
					{
						## releng group id
						STRING "relengGroupId" default "${Maven_GroupId}",
						## releng artifact id
						STRING "relengArtifactId" default "${BundleProject_bundleId}.releng",
						## releng releng path
						STRING "relengPath" default "../${BundleProject_bundleId}.releng",
						## group id
						STRING "groupId" default "${Maven_GroupId}",
						## artifactId
						STRING "artifactId" default "${BundleProject_bundleId}.product",
						## baseVersion
						STRING "baseVersion" default "${BundleProject_bundleVersion}",
						## pom name
						STRING "name" default "${BundleProject_productName} - application product"
					} 
					excluded-if "javascript" /# !TychoIntegration; #/
			}
		},
		SimpleProject "${BundleProject_projectName}.releng" { 
			resources = {
				DynamicFile "pom.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui/org.eclipse.fx.ide.pde.ui.templates.tycho.RootPomGenerator" 
					by "java"
					{
						## groupId
						STRING "groupId" default "${Maven_GroupId}",
						## groupId
						STRING "artifactId" default "${BundleProject_bundleId}.releng",
						## description
						STRING "name" default "${BundleProject_productName} - releng",
						## baseVersion
						STRING "baseVersion" default "${BundleProject_bundleVersion}",
						## modules
						STRING "modules" default "../${BundleProject_projectName};../${BundleProject_projectName}.feature;../${BundleProject_projectName}.product;../${BundleProject_projectName}.jemmy",
						## repos
						STRING "repos" default "efxclipse-repo@http://downloads.efxclipse.org/p2-repos/runtime/releases/latest"
					},
				DynamicFile "build.xml" 
					generated-from "bundleclass://org.eclipse.fx.ide.pde.ui.e4/org.eclipse.fx.ide.pde.ui.e4.project.template.NativeLaunchGenerator" by "java"
					excluded-if "javascript" /# !NativeExport #/,
				URLFile "fx-osgi-launch.jar" "platform:/plugin/org.eclipse.fx.ide.pde.ui.e4/build_bin/fx-osgi-launch.jar"
					excluded-if "javascript" /# !NativeExport #/ 
			}
		} excluded-if "javascript" /# !TychoIntegration; #/
	}
}

Back to the top