Skip to content
Snippets Groups Projects
Commit 361b97b2 authored by dgelessus's avatar dgelessus
Browse files

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
...@@ -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'
......
...@@ -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 categoryFeatures(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 categoryDescription(artifactId, categoryName, categorydescription) {""" def categoryDef(id, label, categorydescription) {"""
<category-def name="${artifactId}.category" label="${categoryName}"> <category-def name="${id}" label="${label}">
<description> <description>
${categorydescription} ${categorydescription}
</description> </description>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment