Skip to content
Snippets Groups Projects
Commit 06a5b0d0 authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

import gradle build files

git-svn-id: svn://svn.code.sf.net/p/rodin-b-sharp/svn/trunk/Handbook@14619 1434b563-b632-4741-aa49-43a3a8374d2e
parent 3f75a786
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ descriptions = [["org.rodinp.handbook.feature": "Rodin Handbook"] ] // label an ...@@ -6,7 +6,7 @@ descriptions = [["org.rodinp.handbook.feature": "Rodin Handbook"] ] // label an
repositoryName = groupID+".repository" // will be the folder name repositoryName = groupID+".repository" // will be the folder name
parentID = groupID+".parent" // will be the same as the folder name parentID = groupID+".parent" // will be the same as the folder name
targetRepositories = ["http://download.eclipse.org/releases/indigo/"] // ps Repository with Target Definition File targetRepositories = [] // ps Repository with Target Definition File
apply from: 'tycho_build.gradle' apply from: 'tycho_build.gradle'
......
...@@ -70,7 +70,7 @@ subprojects { ...@@ -70,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("../${project.name}/META-INF/MANIFEST.MF").getText("UTF-8")
printFileLine = { printFileLine = {
if( it ==~ /Bundle-Version.+qualifier/ ){ if( it ==~ /Bundle-Version.+qualifier/ ){
...@@ -98,7 +98,7 @@ subprojects { ...@@ -98,7 +98,7 @@ subprojects {
println artifactId println artifactId
println "\t"+versionNumber println "\t"+versionNumber
def f = new File(artifactId+'/pom.xml') def f = new File('../'+artifactId+'/pom.xml')
f.delete() f.delete()
f << start()+elder()+artifact(artifactId, versionNumber)+end() f << start()+elder()+artifact(artifactId, versionNumber)+end()
/* /*
...@@ -114,7 +114,7 @@ subprojects { ...@@ -114,7 +114,7 @@ subprojects {
boolean idfound = false boolean idfound = false
content = new File("${project.name}/feature.xml").getText("UTF-8") content = new File("../${project.name}/feature.xml").getText("UTF-8")
printFileLine = { printFileLine = {
...@@ -146,7 +146,7 @@ subprojects { ...@@ -146,7 +146,7 @@ subprojects {
println "\t"+versionNumber println "\t"+versionNumber
def f = new File(artifactId+'/pom.xml') def f = new File('../'+artifactId+'/pom.xml')
f.delete() f.delete()
f << feature(artifactId, versionNumber) f << feature(artifactId, versionNumber)
...@@ -167,11 +167,11 @@ clean { ...@@ -167,11 +167,11 @@ clean {
task createParent() << { task createParent() << {
// --------- define Parent --------- // // --------- define Parent --------- //
new File("${parentID}").mkdir() new File("../${parentID}").mkdir()
versionNumber = '1.0.0.qualifier' versionNumber = '1.0.0.qualifier'
artifactId = parentId() artifactId = parentId()
def f = new File(artifactId+'/pom.xml') def f = new File('../'+artifactId+'/pom.xml')
f.delete() f.delete()
f << parentPom(artifactId) f << parentPom(artifactId)
for(int i = 0; i < targetRepositories.size(); i++){ for(int i = 0; i < targetRepositories.size(); i++){
...@@ -192,17 +192,17 @@ task createRepository() << { ...@@ -192,17 +192,17 @@ task createRepository() << {
// ------------ define Repository --------- // // ------------ define Repository --------- //
new File("${repositoryName}").mkdir() new File("../${repositoryName}").mkdir()
versionNumber = '1.0.0.qualifier' versionNumber = '1.0.0.qualifier'
artifactId = repositoryName artifactId = repositoryName
featureVersionNumber = '1.0.0.qualifier' featureVersionNumber = '1.0.0.qualifier'
def f = new File(artifactId+'/category.xml') def f = new File('../'+artifactId+'/category.xml')
f.delete() f.delete()
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("../${features[i]}/feature.xml").getText("UTF-8")
printFileLine = { printFileLine = {
if( it ==~ /.+version.+qualifier.+/ ){ if( it ==~ /.+version.+qualifier.+/ ){
featureVersionNumber = it.substring(15,it.size()-1) featureVersionNumber = it.substring(15,it.size()-1)
...@@ -226,7 +226,7 @@ task createRepository() << { ...@@ -226,7 +226,7 @@ task createRepository() << {
f << categoryEnd() f << categoryEnd()
def pom = new File(artifactId+'/pom.xml') def pom = new File('../'+artifactId+'/pom.xml')
pom.delete() pom.delete()
pom << reposi() pom << reposi()
}// end of repository definition }// end of repository definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment