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

Bug 324418

Summary: [nls tooling] Properties File Editor gets confused with trailing double backslash
Product: [Eclipse Project] JDT Reporter: Jeremy <Jeremy.Nix>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: deepakazad, markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jeremy CLA 2010-09-03 10:04:41 EDT
I have properties defined in a property file in the following fashion:
test.ontology=\\\\a\\b\\c\\
test.name=My Test Ontology
test2.ontology=\\\\a\\b\\c\\d\\
test2.name=My Test Ontology #2

If I copy and past this into a properties file, save, close and reopen, i get the following properties file definition:
test.ontology=\\\\a\\b\\c\\
test2.ontology=\\\\a\\b\\c\\d\\

Now, I haven't been able to find documentation in the Java API's that says you can't have a property end with an escaped backslash, so I assume that I'm not defining these incorrectly.  And, for those who would say use slashes, not backslashes, these are conceptual paths, not file paths, and cannot be changed.

Is this a bug, or am I defining the entries incorrectly?

-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.6.0.v20100526-0800-7z8XFUJFMTfCWGoVuHImpms9H155
Comment 1 Markus Keller CLA 2010-09-08 10:49:09 EDT
This works fine for me with Eclipse 3.6 (Helios), e.g. from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php

It looks like you use a third-party properties file editor that has a bug. Your properties definitions are correct.
Comment 2 Jeremy CLA 2010-09-08 10:53:55 EDT
I apologize.  Didn't realize I had another Properties file editor installed.  Switching to the Eclipse based properties file editor resolved my issues.  Thanks for the help.