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

Don't use explicit url and version in generated category.xml

parent c688c318
Branches
No related tags found
No related merge requests found
...@@ -374,7 +374,6 @@ task createRepository() { ...@@ -374,7 +374,6 @@ task createRepository() {
String versionNumber = '1.0.0.qualifier' String versionNumber = '1.0.0.qualifier'
String artifactId = repositoryName String artifactId = repositoryName
String featureVersionNumber = '1.0.0.qualifier'
String featureArtifactId String featureArtifactId
def f = new File(workspacePath + artifactId + '/category.xml') def f = new File(workspacePath + artifactId + '/category.xml')
f.delete() f.delete()
...@@ -382,10 +381,9 @@ task createRepository() { ...@@ -382,10 +381,9 @@ task createRepository() {
for (int i = 0; i < features.size(); i++) { for (int i = 0; i < features.size(); i++) {
def parsedXml = new XmlParser().parse("${workspacePath}${features[i]}/feature.xml") def parsedXml = new XmlParser().parse("${workspacePath}${features[i]}/feature.xml")
featureVersionNumber = parsedXml.attribute("version")
featureArtifactId = parsedXml.attribute("id") featureArtifactId = parsedXml.attribute("id")
f << categoryFeature(categoryId, featureArtifactId.replace(workspacePath, ''), featureVersionNumber) f << categoryFeature(categoryId, featureArtifactId.replace(workspacePath, ''))
} }
f << categoryDef(categoryId, categoryLabel, categoryDescription) f << categoryDef(categoryId, categoryLabel, categoryDescription)
...@@ -573,8 +571,8 @@ def categoryHead() {"""\ ...@@ -573,8 +571,8 @@ def categoryHead() {"""\
<site> <site>
"""} """}
def categoryFeature(category, artifactId, versionNumber) {""" def categoryFeature(category, artifactId) {"""
<feature url="features/${artifactId}_${versionNumber}.jar" id="${artifactId}" version="${versionNumber}"> <feature id="${artifactId}" version="0.0.0">
<category name="${category}"/> <category name="${category}"/>
</feature> </feature>
"""} """}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment