From a979aa7faefbebd28837e083715e3a7a91c7b535 Mon Sep 17 00:00:00 2001
From: birkhoff <mike.birkhoff@gmx.de>
Date: Thu, 3 May 2012 16:37:35 +0200
Subject: [PATCH] workspacePath

---
 build.gradle       |  1 +
 tycho_build.gradle | 11 ++++-------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/build.gradle b/build.gradle
index ea817fc8..62368189 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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
diff --git a/tycho_build.gradle b/tycho_build.gradle
index 12311927..409e4d5d 100644
--- a/tycho_build.gradle
+++ b/tycho_build.gradle
@@ -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.+/ ){
-- 
GitLab