Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2MQTT
Commits
0093a2b6
Commit
0093a2b6
authored
Jul 01, 2019
by
Georg Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor adjustments
parent
9a4fbf49
Pipeline
#155387
passed with stages
in 1 minute and 9 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/de/monticore/lang/monticar/generator/mqtt/GeneratorMqtt.java
...monticore/lang/monticar/generator/mqtt/GeneratorMqtt.java
+2
-2
src/main/java/de/monticore/lang/monticar/generator/mqtt/template/MqttTemplates.java
.../lang/monticar/generator/mqtt/template/MqttTemplates.java
+1
-1
No files found.
src/main/java/de/monticore/lang/monticar/generator/mqtt/GeneratorMqtt.java
View file @
0093a2b6
...
...
@@ -28,7 +28,7 @@ public class GeneratorMqtt
model
.
addPorts
(
ports
);
//Generate files and write to project
String
content
=
MqttTemplates
.
generate
Ros
Adapter
(
model
);
String
content
=
MqttTemplates
.
generate
Mqtt
Adapter
(
model
);
File
file
=
new
File
(
"./target/generated-sources/ports.txt"
);
files
.
add
(
file
);
...
...
@@ -40,7 +40,7 @@ public class GeneratorMqtt
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
finally
{
//
c
lose resources
//
C
lose resources
try
{
fr
.
close
();
}
catch
(
IOException
e
)
{
...
...
src/main/java/de/monticore/lang/monticar/generator/mqtt/template/MqttTemplates.java
View file @
0093a2b6
...
...
@@ -32,7 +32,7 @@ public class MqttTemplates {
}
}
public
static
String
generate
Ros
Adapter
(
MqttAdapterModel
model
)
{
public
static
String
generate
Mqtt
Adapter
(
MqttAdapterModel
model
)
{
HashMap
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"model"
,
model
);
return
generate
(
PrettyPrint
,
data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment