diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 2010-06-24 19:25:55 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 2010-06-24 19:25:55 +0000 |
commit | 678283aaaa382c5d1971476cab9a4c3077cf3923 (patch) | |
tree | 7b2340cd6ecda071ddeade9fc788f6006767471c | |
parent | 01453606b84bc552939d82c414da140b6e1e250d (diff) | |
download | MPC-678283aaaa382c5d1971476cab9a4c3077cf3923.tar.gz |
Fix a problem where Eclipse would get confused due to relative paths in
linked resources. Symptoms are strange messages such as
"Cannot find resource /TAO_IDL" when importing projects into an eclipse
workspace.
-rw-r--r-- | templates/cdt6project.mpd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/cdt6project.mpd b/templates/cdt6project.mpd index 1a4e8984..f99d8b3d 100644 --- a/templates/cdt6project.mpd +++ b/templates/cdt6project.mpd @@ -86,7 +86,7 @@ <!-- source files --> <%foreach(source_files)%> <link> - <name><%source_file%></name> + <name><%if(starts_with(source_file, \.\.))%><%basename(source_file)%><%else%><%source_file%><%endif%></name> <type>1</type> <location><%full_path(source_file)%></location> </link> @@ -94,7 +94,7 @@ <!-- header files --> <%foreach(header_files)%> <link> - <name><%header_file%></name> + <name><%if(starts_with(header_file, \.\.))%><%basename(header_file)%><%else%><%header_file%><%endif%></name> <type>1</type> <location><%full_path(header_file)%></location> </link> @@ -102,7 +102,7 @@ <%if(pch_header)%> <!-- pch header --> <link> - <name><%pch_header%></name> + <name><%if(starts_with(pch_header, \.\.))%><%basename(pch_header)%><%else%><%pch_header%><%endif%></name> <type>1</type> <location><%full_path(pch_header)%></location> </link> @@ -110,7 +110,7 @@ <!-- inline files --> <%foreach(inline_files)%> <link> - <name><%inline_file%></name> + <name><%if(starts_with(inline_file, \.\.))%><%basename(inline_file)%><%else%><%inline_file%><%endif%></name> <type>1</type> <location><%full_path(inline_file)%></location> </link> @@ -118,7 +118,7 @@ <!-- template files --> <%foreach(template_files)%> <link> - <name><%template_file%></name> + <name><%if(starts_with(template_file, \.\.))%><%basename(template_file)%><%else%><%template_file%><%endif%></name> <type>1</type> <location><%full_path(template_file)%></location> </link> |