Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
5c291907
Commit
5c291907
authored
Feb 12, 2016
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set -Pmilestone automatically based on pom version
parent
68682ce4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
mvnw
mvnw
+9
-0
No files found.
mvnw
View file @
5c291907
...
...
@@ -46,6 +46,15 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then
fi
VERSION
=
$(
sed
`
dirname
$0
`
/pom.xml
-e
'/<parent/,+4d'
|
grep
'<version'
|
head
-1
|
sed
-e
's/.*>\(.*\)<.*/\1/'
)
if
echo
$VERSION
| egrep
-q
'M|RC'
;
then
echo
Activating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_OPTS
|
grep
-q
milestone
||
MAVEN_OPTS
=
"
$MAVEN_OPTS
-Pmilestone"
else
echo
Deactivating
\"
milestone
\"
profile
for
version
=
\"
$VERSION
\"
echo
$MAVEN_OPTS
|
grep
-q
milestone
&&
MAVEN_OPTS
=
$(
echo
$MAVEN_OPTS
|
sed
-e
's/-Pmilestone//'
)
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin
=
false
;
darwin
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment