]
Fred Bricon commented on JBDS-3048:
-----------------------------------
The default.version value is only for developers not using m2e in their workspace and is
here for convenience. the real value is injected from
Could com.jboss.devstudio.core.central plugin inherit values in
currentversion.properties from parent & root pom instead of hardcoding it?
------------------------------------------------------------------------------------------------------------------------------------------
Key: JBDS-3048
URL:
https://issues.jboss.org/browse/JBDS-3048
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: build, central
Affects Versions: 8.0.0.Beta2
Reporter: Nick Boldt
Assignee: Fred Bricon
Fix For: 8.0.0.Beta3
I see a new file was added after Beta2, on Apr 22:
{code:title=https://github.com/jbdevstudio/jbdevstudio-product/commit/30bec7071c11b2bfd941bde70093b5471af408cb#diff-62d4ce348c909d0dbe2c122f6b51d959R32}
default.version=8.0.0.Beta2
version=${devstudio.version}
{code}
Since this file will need to be manually updated w/ every milestone, I was wondering if
we could simply pull the value out of the parent pom & root pom, which inherit these
values:
{code}
${project version} = 8.0.0-SNAPSHOT
${BUILD_ALIAS} = Beta3
{code}
Then with some minor string manipulation you can produce the correct string,
8.0.0.Beta3.
(I have maven/ant code to do this, but you're in Java so YMMV.)