Skip to content

Convert versions to OSGi format before passing them to the OSGi runtime.#256

Merged
asfgit merged 1 commit intoapache:masterfrom
neykov:fix/version-handling
Jul 13, 2016
Merged

Convert versions to OSGi format before passing them to the OSGi runtime.#256
asfgit merged 1 commit intoapache:masterfrom
neykov:fix/version-handling

Conversation

@neykov
Copy link
Copy Markdown
Member

@neykov neykov commented Jul 13, 2016

No description provided.

return Maybe.of(new VersionedName(parts[0], v));
}

public static String toOsgiVersion(String version) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth adding a test that demonstrates the behaviour (even though the code is copy-pasted). I'd also like to see that a version such as 0.10.0-20160713.1653 is converted to 0.10.0.20160713_1653. Note the last dot is converted to an underscore.

@asfgit asfgit merged commit 72787ab into apache:master Jul 13, 2016
asfgit pushed a commit that referenced this pull request Jul 13, 2016
@neykov neykov deleted the fix/version-handling branch July 13, 2016 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants