Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 409259 - xtend-maven-plugin fails to work with symlinked project source folder
Summary: xtend-maven-plugin fails to work with symlinked project source folder
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.4.1   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.4.3
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-28 04:55 EDT by Sven Lange CLA
Modified: 2017-10-31 11:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Lange CLA 2013-05-28 04:55:25 EDT
The class org.eclipse.xtend.maven.MavenTraceURIConverter is not able to work with symlinked source folders. 

In this class there is a method deresolve. In here the line 

URI root = URI.createFileURI(rootString);

should be changed to something like 

URI root = URI.createFileURI(new File(rootString).getCanonicalPath());

This way the actual path to the source is used and not the symliked path. If the symlinked path is used the method DefaultTraceURIConverter.isPrefix returns false and this leads to a RuntimeException.
Comment 1 Sven Lange CLA 2013-05-29 03:00:43 EDT
it is important not to forget the trailing slash.

rootString = new File(rootString).getCanonicalPath() + "/"
URI root = URI.createFileURI(rootString);
Comment 2 Sven Lange CLA 2013-06-17 08:05:02 EDT
will this fix be available for 2.4.2?
Comment 3 Sven Efftinge CLA 2013-06-17 08:31:11 EDT
No, it hasn't been fixed so far.
Comment 4 Sven Efftinge CLA 2013-08-05 07:54:03 EDT
pushed to review
Comment 5 Eclipse Webmaster CLA 2017-10-31 11:06:40 EDT
Requested via bug 522520.

-M.
Comment 6 Eclipse Webmaster CLA 2017-10-31 11:18:04 EDT
Requested via bug 522520.

-M.