Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
c6498193
Commit
c6498193
authored
Jul 04, 2016
by
Bechir Zalila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* (ocarina_cmd.adb): Handle the presence of the
Ocarina_Config::Enable_Annexes property in scenario files.
parent
2c7ec13f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
src/main/ocarina_cmd.adb
src/main/ocarina_cmd.adb
+51
-0
No files found.
src/main/ocarina_cmd.adb
View file @
c6498193
...
...
@@ -143,6 +143,7 @@ procedure Ocarina_Cmd is
Source_Files
:
List_Id
;
Ref_Files
:
List_Id
;
Needed_PS
:
List_Id
;
Enabled_Anx
:
List_Id
;
Use_CL
:
Boolean
:=
False
;
Used_Generator_Options
:
List_Id
;
Dirname
:
Name_Id
;
...
...
@@ -181,6 +182,8 @@ procedure Ocarina_Cmd is
Get_String_Name
(
Ocarina_Config
&
"::aadl_version"
);
Timeout_Property
:
constant
Name_Id
:=
Get_String_Name
(
Ocarina_Config
&
"::timeout_property"
);
Enable_Annexes
:
constant
Name_Id
:=
Get_String_Name
(
Ocarina_Config
&
"::enable_annexes"
);
-------------------------------
-- Extract_Referencial_Files --
...
...
@@ -403,6 +406,54 @@ procedure Ocarina_Cmd is
Use_CL
:=
False
;
end
if
;
-- See what annexes are enabled foir this model. If none are
-- given, assume the user want to disable them all.
if
Is_Defined_List_Property
(
Root_System
,
Enable_Annexes
)
then
Enabled_Anx
:=
Get_List_Property
(
Root_System
,
Enable_Annexes
);
else
Enabled_Anx
:=
No_List
;
end
if
;
declare
N
:
Node_Id
;
begin
if
not
Is_Empty
(
Enabled_Anx
)
then
N
:=
First_Node
(
Enabled_Anx
);
Reset_Annex_Action
;
while
Present
(
N
)
loop
declare
A
:
constant
String
:=
Get_Name_String
(
Name
(
Identifier
(
N
)));
begin
if
A
=
"annex_all"
then
Unset_Annex_Action
(
Disable_ALL
);
Unset_Annex_Action
(
Disable_REAL
);
Unset_Annex_Action
(
Disable_BA
);
elsif
A
=
"annex_none"
then
null
;
elsif
A
=
"behavior_specification"
then
Unset_Annex_Action
(
Disable_BA
);
elsif
A
=
"real_specification"
then
Unset_Annex_Action
(
Disable_REAL
);
else
raise
Program_Error
with
"Internal error : make sure you handle "
&
"with all annexes declared in ocarina_config.aadl"
;
end
if
;
end
;
N
:=
Next_Node
(
N
);
end
loop
;
end
if
;
end
;
-- Extract the generator options.
if
Is_Defined_List_Property
(
Root_System
,
Generator_Options
)
then
...
...
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