Skip to content
Snippets Groups Projects
Commit a979aa7f authored by birkhoff's avatar birkhoff
Browse files

workspacePath

parent 868d4d10
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ targetRepositories = ["http://cobra.cs.uni-duesseldorf.de/prob_dev_target/","htt ...@@ -19,6 +19,7 @@ targetRepositories = ["http://cobra.cs.uni-duesseldorf.de/prob_dev_target/","htt
workspacePath = "" // Relative Path to workspace directory e.g. your build is located in the folder workspace/buildscript please set relativePath to ".../" workspacePath = "" // Relative Path to workspace directory e.g. your build is located in the folder workspace/buildscript please set relativePath to ".../"
apply from: 'tycho_build.gradle' apply from: 'tycho_build.gradle'
// Local tasks // Local tasks
......
...@@ -3,10 +3,7 @@ apply plugin: 'base' ...@@ -3,10 +3,7 @@ apply plugin: 'base'
def projects(int i){ def projects(int i){
/// return subprojects.name[i]
String subprojectsName = subprojects.name[i]
subprojectsName = subprojectsName.replace(workspacePath,'')
return subprojectsName
} }
// returns the name of a subproject listed in the settings.gradle file // returns the name of a subproject listed in the settings.gradle file
...@@ -73,7 +70,7 @@ subprojects { ...@@ -73,7 +70,7 @@ subprojects {
if(features.every{ it != project.name }){ // Generating Poms for sub projects except features if(features.every{ it != project.name }){ // Generating Poms for sub projects except features
content = new File("${project.name}/META-INF/MANIFEST.MF").getText("UTF-8") content = new File(workspacePath+"${project.name}/META-INF/MANIFEST.MF").getText("UTF-8")
printFileLine = { printFileLine = {
if( it ==~ /Bundle-Version.+qualifier/ ){ if( it ==~ /Bundle-Version.+qualifier/ ){
...@@ -120,7 +117,7 @@ subprojects { ...@@ -120,7 +117,7 @@ subprojects {
boolean idfound = false boolean idfound = false
content = new File("${project.name}/feature.xml").getText("UTF-8") content = new File(workspacePath+"${project.name}/feature.xml").getText("UTF-8")
printFileLine = { printFileLine = {
...@@ -211,7 +208,7 @@ task createRepository() << { ...@@ -211,7 +208,7 @@ task createRepository() << {
f << categoryHead() f << categoryHead()
for(int i = 0; i < features.size(); i++){ for(int i = 0; i < features.size(); i++){
content = new File("${features[i]}/feature.xml").getText("UTF-8") content = new File("${workspacePath}${features[i]}/feature.xml").getText("UTF-8")
boolean idfound = false boolean idfound = false
printFileLine = { printFileLine = {
if( it ==~ /.+version.+qualifier.+/ ){ if( it ==~ /.+version.+qualifier.+/ ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment