Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] option-element in inputtype not working as expected

Hi list,

I tried to define an inputType for a tool as described in the MBS
reference:

"option: 	 
The id of an Option element that is used on the command line to
identify inputs of this type. If specified, the name(s) of the input
files
for this input type are taken from the value specified for the option."

So the ${inputs} variable should be filled with the options value after
that, 
But whatever I tried, it was put to the ${flags} variable. I'm not sure
if it's
A bug or if I got something wrong. In outputType it shows the same
(mis?-)behavior.

When I define the option as abstract an in an global context, it's not
recognized
In any way.


W2K, Eclipse 3.2.2, CDT 3.1.2


Snippet:
    <tool
          id="org.eclipse.cdt.fujitsumcu.converter"
          name="Object Copy Flash"
          outputFlag="-o"
          commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG}
${OUTPUT} ${INPUTS}"
          natureFilter="both">
	
	....

      <inputType 
      	id="org.eclipse.cdt.fujitsumcu.converter.input" 
      	name="Input"
      	option="org.eclipse.cdt.fujitsumcu.converter.InFileName" 
      	multipleOfType="true" 
      	sources="elf" 
      />
     <option 
      	id="org.eclipse.cdt.fujitsumcu.converter.InFileName" 
      	isAbstract="false" 
      	resourceFilter="all" 
      	value="${BuildArtifactFileName}" 
      	valueType="string"
      />
	</tool>


Generated makefile snippet:

adc-test.mhx: adc-test.elf
	@echo 'Invoking: Fujitsu Object Copy Flash'
	f2ms adc-test.elf -o "adc-test.mhx"
	@echo 'Finished building: $@'
	@echo ' ' 



Michael


Back to the top