Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357481

Summary: tycho-version-plugin should not allow broken version
Product: z_Archived Reporter: Holger Oehm <holger.oehm>
Component: TychoAssignee: Tobias Oberlies <t-oberlies>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed patch (checks if version can be transformed into a valid osgi version) t-oberlies: iplog+

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