Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Belle2019-09-01 10:44:35 +0000
committerJan Belle2019-09-01 10:44:35 +0000
commitf83e60ebc1218b4f323fbc15092b22d44313c667 (patch)
tree097ed6813c40b689499b1d85106ef613139e2113
parent6a6d7cc5f617533838cc2955fedeff33de25965a (diff)
downloadorg.eclipse.etrice-f83e60ebc1218b4f323fbc15092b22d44313c667.tar.gz
org.eclipse.etrice-f83e60ebc1218b4f323fbc15092b22d44313c667.tar.xz
org.eclipse.etrice-f83e60ebc1218b4f323fbc15092b22d44313c667.zip
[examples] Add Gradle build for traffic light simulator
-rw-r--r--examples/org.eclipse.etrice.tutorials.simulators.trafficlight/build.gradle7
-rw-r--r--gradle/etGenerator.gradle12
-rw-r--r--settings.gradle1
3 files changed, 14 insertions, 6 deletions
diff --git a/examples/org.eclipse.etrice.tutorials.simulators.trafficlight/build.gradle b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight/build.gradle
new file mode 100644
index 000000000..55984cae4
--- /dev/null
+++ b/examples/org.eclipse.etrice.tutorials.simulators.trafficlight/build.gradle
@@ -0,0 +1,7 @@
+apply plugin: 'application'
+
+sourceSets.main.java.srcDirs = ['src']
+
+mainClassName = 'org.eclipse.etrice.tutorials.simulators.trafficlight.Main'
+
+distTar.enabled = false \ No newline at end of file
diff --git a/gradle/etGenerator.gradle b/gradle/etGenerator.gradle
index 7f5d0ab3e..35cdc1131 100644
--- a/gradle/etGenerator.gradle
+++ b/gradle/etGenerator.gradle
@@ -19,12 +19,12 @@ dependencies {
}
/**
- * Creates an eTrice generator task
- * @param name: The name of the new task
- * @param lang: One of the following languages 'c', 'cpp', 'java'
- * @param models: A list of models passed to the generator
- * @param genDir: The generation directory
- * @param options: The eTrice generator options
+ * Creates an eTrice generator task.
+ * @param name the name of the new task
+ * @param lang one of the following languages 'c', 'cpp', 'java'
+ * @param models a list of models passed to the generator
+ * @param genDir the generation directory
+ * @param options the eTrice generator options
* @return the generator task
*/
ext.createGeneratorTask = { name, lang, models, genDir = 'src-gen', options = [] ->
diff --git a/settings.gradle b/settings.gradle
index 272743d6f..8d8dd863e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -33,6 +33,7 @@ include 'plugins:org.eclipse.etrice.core.common',
'examples:org.eclipse.etrice.tutorials.c',
'examples:org.eclipse.etrice.tutorials.cpp',
'examples:org.eclipse.etrice.tutorials.java',
+ 'examples:org.eclipse.etrice.tutorials.simulators.trafficlight',
'tests:org.eclipse.etrice.runtime.c.tests',
'tests:org.eclipse.etrice.runtime.cpp.tests',

Back to the top