[jbosstools-issues] [JBoss JIRA] (JBDS-3048) Could com.jboss.devstudio.core.central plugin inherit values in currentversion.properties from parent & root pom instead of hardcoding it?

Fred Bricon (JIRA) issues at jboss.org
Tue May 27 17:19:56 EDT 2014


    [ https://issues.jboss.org/browse/JBDS-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971010#comment-12971010 ] 

Fred Bricon edited comment on JBDS-3048 at 5/27/14 5:18 PM:
------------------------------------------------------------

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 https://github.com/jbdevstudio/jbdevstudio-product/commit/30bec7071c11b2bfd941bde70093b5471af408cb#diff-58c9bc2461e193f4fafd8d4983e335e7R26

Also see https://github.com/jbosstools/jbosstools-base/blob/master/foundation/plugins/org.jboss.tools.foundation.core/src/org/jboss/tools/foundation/core/properties/internal/VersionExtractor.java


was (Author: fbricon):
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 https://github.com/jbdevstudio/jbdevstudio-product/commit/30bec7071c11b2bfd941bde70093b5471af408cb#diff-58c9bc2461e193f4fafd8d4983e335e7R26

> 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.)



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jbosstools-issues mailing list