Bug 92899 - Empty extra attributes list should not appear in .classpath
Summary: Empty extra attributes list should not appear in .classpath
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 08:57 EDT by Jerome Lanneluc CLA
Modified: 2005-05-12 09:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2005-04-27 08:57:27 EDT
I20050426

If the list of extra attributes is empty, it should not be put in the .classpath
file as:
 <classpathentry kind="src" path="src">
      <attributes>
      </attributes>
 </classpathentry>
Comment 1 Jerome Lanneluc CLA 2005-05-02 07:25:51 EDT
Changed ClasspathEntry#elementEncode(...) to not generate the extra attributes
if the list is empty.
Updated ClasspathTests to reflect this change.
Comment 2 Frederic Fusier CLA 2005-05-12 09:55:27 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.