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
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'
// Local tasks
......
......@@ -3,10 +3,7 @@ apply plugin: 'base'
def projects(int i){
///
String subprojectsName = subprojects.name[i]
subprojectsName = subprojectsName.replace(workspacePath,'')
return subprojectsName
return subprojects.name[i]
}
// returns the name of a subproject listed in the settings.gradle file
......@@ -73,7 +70,7 @@ subprojects {
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 = {
if( it ==~ /Bundle-Version.+qualifier/ ){
......@@ -120,7 +117,7 @@ subprojects {
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 = {
......@@ -211,7 +208,7 @@ task createRepository() << {
f << categoryHead()
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
printFileLine = {
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