# Incorrect path in .project file

**URL:** <https://forum.sierrawireless.com/t/incorrect-path-in-project-file/4390>\
**Category:** Development tools\
**Created:** [April 27, 2010, 7:36am UTC](https://forum.sierrawireless.com/t/incorrect-path-in-project-file/4390 "2010-04-27T07:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisbrown](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@chrisbrown](https://forum.sierrawireless.com/u/chrisbrown)\
**Post date:** [April 27, 2010, 7:36am UTC](https://forum.sierrawireless.com/t/incorrect-path-in-project-file/4390/1 "2010-04-27T07:36:58Z")

</div>

I have a reference to an incorrect path in my .project file. The path specified was valid when the project was created, but the project has since been renamed, and the location no longer exists.

I can’t find an option anywhere in the GUI that is pointing to this location, so I don’t know how to correct the reference. This value appears to be used by M2M, because whenever I switch build targets, the path is updated to point to the expected sub-folder (but still in the wrong location).

Here is a trimmed version of the .project file. The invalid path is indicated with \<OLD\_PROJECT\_NAME\>.

```auto
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	...
	<buildSpec>
		...
		<buildCommand>
			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
			<arguments>
				...
				<dictionary>
					<key>org.eclipse.cdt.make.core.buildLocation</key>
					<value>${workspace_loc:/<OLD_PROJECT_NAME>/[Target]_ARM_ELF_GCC_Debug}</value>
				</dictionary>
				...
			</arguments>
		</buildCommand>
		...
	</buildSpec>
	...
</projectDescription>
```

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [April 27, 2010, 9:45am UTC](https://forum.sierrawireless.com/t/incorrect-path-in-project-file/4390/2 "2010-04-27T09:45:41Z")

</div>

Eclipse CDT has clearly issues regarding projects renaming  
(e.g. cf [https://bugs.eclipse.org/bugs/show\_bug.cgi?id=289704](https://bugs.eclipse.org/bugs/show_bug.cgi?id=289704))

While waiting they update the behavior, you can safely update the .project content with the new name (as soon as M2M Studio is closed, or at least the project itself is closed)
