Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Template Engine: Problem with AppendToMBSStringListOptionValues

Hi

Platform: Eclipse 3.3.1, CDT 4.0.3, XP.

I have written a New C Project Wizard template using the template engine. I have been using the template to set various compiler options, like the compiler defines, include paths etc. We are shipping the template in our product and it works well.

I have just come to extend the template to set library paths, and it is not working.

Let me clarify that. The library paths are being set internally (I can edit the .cproject file and see them) but they are not being shown in the Settings dialog, and the linker is not using them.

Any clues as to what might be going wrong?

Here is a snippet of my template. As I said, it is working for compiler include paths, but not for library paths:
 <process

type="org.eclipse.cdt.managedbuilder.core.AppendToMBSStringListOptionValues">
  <simple name="projectName" value="$(projectName)" />
  <complex-array name="resourcePaths">
   <element>
    <simple name="id" value=".*compiler\.option\.include.*" />
    <simple-array name="values">
    <element
      value="my/include/path1" />
     <element
      value="my/include/path2" />
     </simple-array>
    <simple name="path" value="" />
   </element>

   <element>
    <simple name="id" value=".*link.option.paths.*" />
    <simple-array name="values">
     <element
      value="my/library/path1" />
     <element
      value="my/library/path2" />
    </simple-array>
    <simple name="path" value="" />
   </element>
  </complex-array>
 </process>


--
Subs


Back to the top