<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to change references command line in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-change-references-command-line/m-p/567774#M13192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="157873_157873.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122073iC2EAEA4418A9552D/image-size/large?v=v2&amp;amp;px=999" role="button" title="157873_157873.jpg" alt="157873_157873.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1228iA7C2C4EB4ACDFD8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="help1.jpg" alt="help1.jpg" /&gt;&lt;/span&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;I have downloaded a project from a repository that refers to another project. I'd really like to build this project with &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: Arial, sans-serif; font-size: 11.5pt; line-height: 1.73;"&gt;Codewarrior 10.4's command line tools. However, the reference path in my .project file doesn't correspond to the location of the project it references, on my computer. I needed a command-line, programmatic way of changing the reference path to the correct location on my machine. So I tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project project_pathName -allConfigs -remove wrongReferencePathName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;with the intent of then running&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project project_pathName -allConfigs -add correctReferencePathName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;But the first command gave me a file not found error. So, it looks like I can only remove references to projects that actually exist on my system, and can't get rid of bogus references to projects that aren't even valid locations on my filesystem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: #51626f; font-size: 11.5pt; font-family: 'inherit',serif; font-style: inherit;"&gt;Is there any way to remove a bad reference, one that doesn't correspond to a valid project location, from the command line?&lt;/STRONG&gt; &lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If not, can you think of any other way I might approach this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Just for context, the way our company avoids this issue normally is via representing our projects and their references in a .wsd file. We drag-drop the file into the CodeWarrior GUI, and this automatically fixes all the references in all our .project files.&lt;/SPAN&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #51626f; font-size: 11.5pt; font-family: 'inherit',serif;"&gt;The issue is that we can't figure out how to invoke the wsd file from the command line.&lt;/STRONG&gt; &lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If you know of any way of doing this, it would actually be much more helpful than an answer to my other question!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;I tried multiple options for wrongReferencePathName. Above I tested "file:/C:/Development/DSM33/DSM33_India/DSM33_FS_v02.02/AlphaBoot", but I also tried "C:/Development/DSM33/DSM33_India/DSM33_FS_v02.02/AlphaBoot" and "C:\Users\Ross\Desktop\Round2\DM3\Freescale\DSM33_FS_v02.02\Firmware\.project".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;They all produced the same error. The paths I'm trying don't exist in my filesystem--I have different paths to the referenced projects in my filesystem--so it kinda makes sense that I'm getting a fileNotFoundException. Maybe it's that the references tool is looking for a .project or .cproject file at the provided reference path and crashes out if none is found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If this is true, I might try spoofing the bogus filepath in my system and copying over a .project file, but this is a real pain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;It's also possible that I'm just not using the referencedProjectLocation argument correctly--for reference command syntax is&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project path [-config name | -allConfigs] ( -list | -add | -remove) referencedProjectLocation [buildConfigurationName]. I'm assuming this argument can only take a project filepath, but if I'm wrong or if there's a different way to identify a project with this argument, I'd love to know!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Here is the error output--not sure the full backtrace will be helpful &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="157884_157884.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122074i7DB0AD224C4D118C/image-size/large?v=v2&amp;amp;px=999" role="button" title="157884_157884.jpg" alt="157884_157884.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1317iF77BFFED11611664/image-size/large?v=v2&amp;amp;px=999" role="button" title="help3.jpg" alt="help3.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="157883_157883.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122075iAC67C9C9704C0862/image-size/large?v=v2&amp;amp;px=999" role="button" title="157883_157883.jpg" alt="157883_157883.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1273iD12E5CD53FC31CA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="help2.jpg" alt="help2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 17:30:02 GMT</pubDate>
    <dc:creator>rossrhone</dc:creator>
    <dc:date>2016-08-03T17:30:02Z</dc:date>
    <item>
      <title>How to change references command line</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-change-references-command-line/m-p/567774#M13192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="157873_157873.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122073iC2EAEA4418A9552D/image-size/large?v=v2&amp;amp;px=999" role="button" title="157873_157873.jpg" alt="157873_157873.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1228iA7C2C4EB4ACDFD8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="help1.jpg" alt="help1.jpg" /&gt;&lt;/span&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;I have downloaded a project from a repository that refers to another project. I'd really like to build this project with &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: Arial, sans-serif; font-size: 11.5pt; line-height: 1.73;"&gt;Codewarrior 10.4's command line tools. However, the reference path in my .project file doesn't correspond to the location of the project it references, on my computer. I needed a command-line, programmatic way of changing the reference path to the correct location on my machine. So I tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project project_pathName -allConfigs -remove wrongReferencePathName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;with the intent of then running&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project project_pathName -allConfigs -add correctReferencePathName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;But the first command gave me a file not found error. So, it looks like I can only remove references to projects that actually exist on my system, and can't get rid of bogus references to projects that aren't even valid locations on my filesystem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: #51626f; font-size: 11.5pt; font-family: 'inherit',serif; font-style: inherit;"&gt;Is there any way to remove a bad reference, one that doesn't correspond to a valid project location, from the command line?&lt;/STRONG&gt; &lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If not, can you think of any other way I might approach this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Just for context, the way our company avoids this issue normally is via representing our projects and their references in a .wsd file. We drag-drop the file into the CodeWarrior GUI, and this automatically fixes all the references in all our .project files.&lt;/SPAN&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #51626f; font-size: 11.5pt; font-family: 'inherit',serif;"&gt;The issue is that we can't figure out how to invoke the wsd file from the command line.&lt;/STRONG&gt; &lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If you know of any way of doing this, it would actually be much more helpful than an answer to my other question!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;I tried multiple options for wrongReferencePathName. Above I tested "file:/C:/Development/DSM33/DSM33_India/DSM33_FS_v02.02/AlphaBoot", but I also tried "C:/Development/DSM33/DSM33_India/DSM33_FS_v02.02/AlphaBoot" and "C:\Users\Ross\Desktop\Round2\DM3\Freescale\DSM33_FS_v02.02\Firmware\.project".&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;They all produced the same error. The paths I'm trying don't exist in my filesystem--I have different paths to the referenced projects in my filesystem--so it kinda makes sense that I'm getting a fileNotFoundException. Maybe it's that the references tool is looking for a .project or .cproject file at the provided reference path and crashes out if none is found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;If this is true, I might try spoofing the bogus filepath in my system and copying over a .project file, but this is a real pain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;It's also possible that I'm just not using the referencedProjectLocation argument correctly--for reference command syntax is&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;ecd -references -project path [-config name | -allConfigs] ( -list | -add | -remove) referencedProjectLocation [buildConfigurationName]. I'm assuming this argument can only take a project filepath, but if I'm wrong or if there's a different way to identify a project with this argument, I'd love to know!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Here is the error output--not sure the full backtrace will be helpful &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="157884_157884.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122074i7DB0AD224C4D118C/image-size/large?v=v2&amp;amp;px=999" role="button" title="157884_157884.jpg" alt="157884_157884.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1317iF77BFFED11611664/image-size/large?v=v2&amp;amp;px=999" role="button" title="help3.jpg" alt="help3.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="157883_157883.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122075iAC67C9C9704C0862/image-size/large?v=v2&amp;amp;px=999" role="button" title="157883_157883.jpg" alt="157883_157883.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="help2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1273iD12E5CD53FC31CA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="help2.jpg" alt="help2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 17:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-change-references-command-line/m-p/567774#M13192</guid>
      <dc:creator>rossrhone</dc:creator>
      <dc:date>2016-08-03T17:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change references command line</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-change-references-command-line/m-p/567775#M13193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this this the same discussion as &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/430638"&gt;How to change references by command line?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;So I input my comments there.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 09:56:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-change-references-command-line/m-p/567775#M13193</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-08-23T09:56:51Z</dc:date>
    </item>
  </channel>
</rss>

