Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
EMADL2CPP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
generators
EMADL2CPP
Commits
1c3a9400
Commit
1c3a9400
authored
Nov 18, 2020
by
Evgeny Kusmenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'OptionsFixMergeRequest' into 'master'
Options fix merge request See merge request
!42
parents
ef53c7bc
4d2ab244
Pipeline
#365981
failed with stage
in 60 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
src/main/java/de/monticore/lang/monticar/emadl/generator/EMADLGeneratorCli.java
...core/lang/monticar/emadl/generator/EMADLGeneratorCli.java
+4
-32
No files found.
src/main/java/de/monticore/lang/monticar/emadl/generator/EMADLGeneratorCli.java
View file @
1c3a9400
...
...
@@ -16,20 +16,6 @@ import static de.monticore.lang.monticar.generator.cpp.GeneratorCppCli.*;
public
class
EMADLGeneratorCli
{
public
static
final
Option
OPTION_MODELS_PATH
=
Option
.
builder
(
"m"
)
.
longOpt
(
"models-dir"
)
.
desc
(
"full path to directory with EMADL models e.g. C:\\Users\\vpupkin\\proj\\MyAwesomeAutopilot\\src\\main\\emam"
)
.
hasArg
(
true
)
.
required
(
true
)
.
build
();
public
static
final
Option
OPTION_ROOT_MODEL
=
Option
.
builder
(
"r"
)
.
longOpt
(
"root-model"
)
.
desc
(
"fully qualified name of the root model e.g. de.rwth.vpupkin.modeling.mySuperAwesomeAutopilotComponent"
)
.
hasArg
(
true
)
.
required
(
true
)
.
build
();
public
static
final
Option
OPTION_OUTPUT_PATH
=
Option
.
builder
(
"o"
)
.
longOpt
(
"output-dir"
)
.
desc
(
"full path to output directory for tests e.g. C:\\Users\\vpupkin\\proj\\MyAwesomeAutopilot\\target\\gen-cpp\n"
+
...
...
@@ -81,27 +67,13 @@ public class EMADLGeneratorCli {
public
static
Options
getOptions
()
{
Options
options
=
new
Options
();
options
.
addOption
(
OPTION_MODELS_PATH
);
options
.
addOption
(
OPTION_ROOT_MODEL
);
options
.
addOption
(
OPTION_OUTPUT_PATH
);
options
.
addOption
(
OPTION_FLAG_TESTS
);
options
.
addOption
(
OPTION_FLAG_ARMADILLO
);
options
.
addOption
(
OPTION_FLAG_AUTOPILOT_ADAPTER
);
options
.
addOption
(
OPTION_FLAG_CHECK_MODEL_DIR
);
options
.
addOption
(
OPTION_FLAG_SERVER_WRAPPER
);
options
.
addOption
(
OPTION_FLAG_ALGEBRAIC
);
options
.
addOption
(
OPTION_FLAG_THREADING
);
options
.
addOption
(
OPTION_FLAG_EXEC_LOGGING
);
options
.
addOption
(
OPTION_FLAG_CMAKE
);
options
.
addOption
(
OPTION_BACKEND
);
options
.
addOption
(
OPTION_RESTRAINED_TRAINING
);
options
.
addOption
(
OPTION_TRAINING_PYTHON_PATH
);
options
.
addOption
(
OPTION_COMPILE
);
addBaseOptions
(
options
);
addEMADL2CPPOptions
(
options
);
addEMADL2CPPOptions
(
options
);
return
options
;
}
// Add EMADL Options
// Add EMADL
2CPP
Options
public
static
void
addEMADL2CPPOptions
(
Options
options
)
{
options
.
addOption
(
OPTION_BACKEND
);
options
.
addOption
(
OPTION_RESTRAINED_TRAINING
);
...
...
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