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

Bug 455423

Summary: org.eclipse.core.internal.resources.ResourceException: 'src ' is an invalid name on this platform.
Product: [Eclipse Project] JDT Reporter: Paul Verest <paul.verest>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jarthana
Version: 4.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Paul Verest CLA 2014-12-16 22:20:09 EST
JDT lets specify sources for .jar file in .jar.properties file, 
e.g. fasynchttp.jar.properties
src=..\\..\\..\\..\\mobile\\android\\Library\\src\\fasynchttp\\0.1.0\\fasynchttp\\src

Please trim such string as now
when that string ends with trailing spaces it just doesn't work.
Even error message does not specify in what exactly .jar.properties file has such string.


Error while creating a link for external folder :D:/Workspaces/PerforceWorkspace8/mobile/android/Library/src/fasynchttp/0.1.0/fasynchttp/src    

org.eclipse.core.internal.resources.ResourceException: 'src    ' is an invalid name on this platform.
	at org.eclipse.core.internal.resources.Resource.assertLinkRequirements(Resource.java:181)
	at org.eclipse.core.internal.resources.Resource.createLink(Resource.java:673)
	at org.eclipse.core.internal.resources.Resource.createLink(Resource.java:647)
	at org.eclipse.jdt.internal.core.ExternalFoldersManager.createLinkFolder(ExternalFoldersManager.java:175)
	at org.eclipse.jdt.internal.core.ExternalFoldersManager.createPendingFolders(ExternalFoldersManager.java:204)
	at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:4074)
	at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments:  -product org.eclipse.epp.package.standard.product -showLocation
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product -showLocation
Comment 1 Jay Arthanareeswaran CLA 2014-12-18 05:13:01 EST
I am not sure JDT Core reads these properties directly from the file. It should be either JDT UI (which I doubt) or the android clients you seem to be using.

I suggest you take this up with the ADT team. I am not sure if we have an ADT component here in .
Comment 2 Eclipse Genie CLA 2020-03-19 17:41:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.