Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
b7aa3f40
Commit
b7aa3f40
authored
Mar 21, 2012
by
Jens Bendisposto
Browse files
Options
Downloads
Patches
Plain Diff
missing buildscript
parent
2ce87c69
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob2.feature/build.gradle
+48
-0
48 additions, 0 deletions
de.prob2.feature/build.gradle
with
48 additions
and
0 deletions
de.prob2.feature/build.gradle
0 → 100644
+
48
−
0
View file @
b7aa3f40
def
feature
(
artifactId
,
versionNumber
)
{
"""
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.prob</groupId>
<artifactId>de.prob.parent</artifactId>
<version>1.0.0.qualifier</version>
<relativePath>../de.prob.parent/pom.xml</relativePath>
</parent>
<groupId>de.prob</groupId>
<artifactId>${artifactId}</artifactId>
<version>${versionNumber}</version>
<packaging>eclipse-feature</packaging>
</project>
"""
}
deploy
<<{
content
=
new
File
(
"de.prob2.feature/feature.xml"
).
getText
(
"UTF-8"
)
printFileLine
=
{
if
(
it
==~
/.+version.+qualifier.+/
){
versionNumber
=
it
.
substring
(
15
,
it
.
size
()-
1
)
// possibile error: cuts off first 15 chars and leaves out last '"'
/* Version Number is taken from Feature.xml
* feature.xml is searched for version="version.qualifier"
* first 15 chars and last '"' are cut off
*/
}
}
content
.
eachLine
(
printFileLine
)
artifactId
=
'de.prob2.feature'
println
artifactId
println
"\t"
+
versionNumber
def
f
=
new
File
(
artifactId
+
'/pom.xml'
)
f
.
delete
()
f
<<
feature
(
artifactId
,
versionNumber
)
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment