Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
361b97b2
Commit
361b97b2
authored
2 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Put all features in the same category instead of one per feature
parent
7a460925
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+15
-0
15 additions, 0 deletions
build.gradle
tycho_build.gradle
+6
-17
6 additions, 17 deletions
tycho_build.gradle
with
21 additions
and
17 deletions
build.gradle
+
15
−
0
View file @
361b97b2
...
@@ -8,6 +8,21 @@ project.ext {
...
@@ -8,6 +8,21 @@ project.ext {
]
]
groupID
=
"de.prob"
groupID
=
"de.prob"
categoryId
=
"de.prob2.feature.category"
categoryLabel
=
"ProB for Rodin"
// When editing the description here,
// also update the descriptions in all feature.xml files!
categoryDescription
=
"""\
ProB is an animator and model checker for the B-Method. It allows
fully automatic animation of many B specifications, and can be
used to systematically check a specification for errors.
Part of the research and development was conducted within the
EPSRC funded projects ABCD and iMoc, and within the EU funded
projects Rodin and Deploy and the DFG projects Gepavas and Gepavas II.
ProB has been successfully used on various industrial specifications
and is now being used e.g. within Siemens, Alstom, Thales and ClearSy.
"""
.
stripIndent
()
}
}
apply
from:
'tycho_build.gradle'
apply
from:
'tycho_build.gradle'
...
...
This diff is collapsed.
Click to expand it.
tycho_build.gradle
+
6
−
17
View file @
361b97b2
...
@@ -484,21 +484,10 @@ task createRepository() {
...
@@ -484,21 +484,10 @@ task createRepository() {
featureVersionNumber
=
parsedXml
.
attribute
(
"version"
)
featureVersionNumber
=
parsedXml
.
attribute
(
"version"
)
featureArtifactId
=
parsedXml
.
attribute
(
"id"
)
featureArtifactId
=
parsedXml
.
attribute
(
"id"
)
if
(
noDescriptions
)
{
f
<<
categoryFeature
(
categoryId
,
featureArtifactId
.
replace
(
workspacePath
,
''
),
featureVersionNumber
)
categoryDescriptions
[
0
].
put
(
features
[
i
],
parsedXml
.
attribute
(
"label"
))
categoryDescriptions
[
1
].
put
(
features
[
i
],
parsedXml
.
description
.
text
())
}
f
<<
categoryFeatures
(
featureArtifactId
.
replace
(
workspacePath
,
''
),
featureVersionNumber
)
}
}
for
(
int
i
=
0
;
i
<
features
.
size
();
i
++)
{
f
<<
categoryDef
(
categoryId
,
categoryLabel
,
categoryDescription
)
if
(
noDescriptions
)
{
// featureName, label, description
f
<<
categoryDescription
(
features
[
i
],
categoryDescriptions
[
0
][
features
[
i
]],
categoryDescriptions
[
1
][
features
[
i
]])
}
else
{
f
<<
categoryDescription
(
features
[
i
],
categoryDescriptions
[
features
[
i
]][
0
],
categoryDescriptions
[
features
[
i
]][
1
])
}
}
f
<<
categoryEnd
()
f
<<
categoryEnd
()
...
@@ -723,14 +712,14 @@ def categoryHead() {"""\
...
@@ -723,14 +712,14 @@ def categoryHead() {"""\
<site>
<site>
"""
}
"""
}
def
categoryFeature
s
(
artifactId
,
versionNumber
)
{
"""
def
categoryFeature
(
category
,
artifactId
,
versionNumber
)
{
"""
<feature url="features/${artifactId}_${versionNumber}.jar" id="${artifactId}" version="${versionNumber}">
<feature url="features/${artifactId}_${versionNumber}.jar" id="${artifactId}" version="${versionNumber}">
<category name="${
artifactId}.
category"/>
<category name="${category
}
"/>
</feature>
</feature>
"""
}
"""
}
def
categoryDe
scription
(
artifactId
,
categoryName
,
categorydescription
)
{
"""
def
categoryDe
f
(
id
,
label
,
categorydescription
)
{
"""
<category-def name="${
artifactId}.category" label="${categoryName
}">
<category-def name="${
id}" label="${label
}">
<description>
<description>
${categorydescription}
${categorydescription}
</description>
</description>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment