Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357481 - tycho-version-plugin should not allow broken version
Summary: tycho-version-plugin should not allow broken version
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 minor (vote)
Target Milestone: ---   Edit
Assignee: Tobias Oberlies CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 08:58 EDT by Holger Oehm CLA
Modified: 2021-04-28 16:55 EDT (History)
0 users

See Also:


Attachments
proposed patch (checks if version can be transformed into a valid osgi version) (4.02 KB, patch)
2011-09-13 09:00 EDT, Holger Oehm CLA
t-oberlies: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Oehm CLA 2011-09-13 08:58:41 EDT
Build Identifier: 0.14.0-SNAPSHOT

With the tycho-version-plugin it was possible to change the version to something like 1.2.3_SNAPSHOT, which left you with a broken project (it didnt allow you to change the version back to something valid, like 1.2.3-SNAPSHOT).


Reproducible: Always

Steps to Reproduce:
1. mvn org.eclipse.tycho:tycho-versions-plugin:0.14.0-SNAPSHOT:set-version -DnewVersion=1.2.3_SNAPSHOT
2. mvn org.eclipse.tycho:tycho-versions-plugin:0.14.0-SNAPSHOT:set-version -DnewVersion=1.2.3-SNAPSHOT

Second step fails. (Preferred would be: First step fails :-).
Comment 1 Holger Oehm CLA 2011-09-13 09:00:45 EDT
Created attachment 203244 [details]
proposed patch (checks if version can be transformed into a valid osgi version)
Comment 2 Tobias Oberlies CLA 2011-10-07 10:24:52 EDT
Fixed with cd1e4c6. Thanks for the patch :-)