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

Bug 318613

Summary: Improve context info in the deprecated version syntax message
Product: [WebTools] WTP Common Tools Reporter: Scott Huff <shuff>
Component: Faceted Project FrameworkAssignee: Konstantin Komissarchik <konstantin>
Status: RESOLVED FIXED QA Contact: Konstantin Komissarchik <konstantin>
Severity: normal    
Priority: P3 CC: david_williams, jsholl
Version: unspecifiedFlags: david_williams: pmc_approved+
konstantin: pmc_approved? (raghunathan.srinivasan)
konstantin: pmc_approved? (naci.dai)
konstantin: pmc_approved? (deboer)
konstantin: pmc_approved? (neil.hauge)
konstantin: pmc_approved? (kaloyan)
Target Milestone: 3.2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard: PMC_approved
Attachments:
Description Flags
Patch none

Description Scott Huff CLA 2010-07-01 10:37:46 EDT
The message for deprecatedSyntaxNoPlugin should ideally give some form of identification about the offending plugin or extension; without that info, it is doubtful anyone will ever fix their deprecated code.

Message:

!ENTRY org.eclipse.wst.common.project.facet.core 2 0 2010-04-26 14:05:45.703
!MESSAGE The ">", ">=", "<", and "<=" notation in version expressions has been deprecated. Note that the angle brackets are represented via "&lt;" and "&gt;" in the plugin.xml files. The functionality has been replaced with range notation. For instance "[X-Y)" means all versions greater or equals to  X and less than Y. Open ranges such as "(X" or "Y]" are also allowed.
Comment 1 Konstantin Komissarchik CLA 2010-07-02 20:36:17 EDT
Created attachment 173338 [details]
Patch

There was already code in place to report plugin id if the code path in question happened to have this information. The attached patch also adds reporting of the version expr string that was used as well as the facet that it was used with. That should help identify the use site.
Comment 2 Konstantin Komissarchik CLA 2010-07-02 20:40:39 EDT
Raising for PMC approval for 3.2.1 as this change affects localization. Note that affect is very minor as the affected strings are used in a logged message meant for framework consumers rather than end users.
Comment 3 David Williams CLA 2010-07-07 01:56:07 EDT
FYI, for PMC approval, it helps process to put "PMC" in whiteboard ... then it will show up in our PMC review summary pages, such as 
http://www.eclipse.org/webtools/plans/3.2.1/pmc-bug-approval.php
Comment 4 Konstantin Komissarchik CLA 2010-07-07 14:31:05 EDT
Released the patch to WTP 3.2.1 and fproj 2.0 streams.