Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] processRunner to the template engine

Hello all, especially Bala, 

I want to produce ma own process runner method. 
i have read the docs under 
org.eclipse.cdt/all/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html
and found the mail  http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg10713.html


unfortunately that doesn't work for me and i can't find the mistake. 

here is my code 

in the plugin.xml 


        <extension point="org.eclipse.cdt.core.templateProcessTypes">
                <processType name="TargetDestination"
                        
processRunner="com.conrad.target.SetDestinationTarget">
                    <simple 
                                name="targetDestination">
                        </simple>         
                </processType>     
        </extension>    

then i have build a file with the process method 
called cpptemplate.xml 

        <process type="com.conrad.target.TargetDestination">
                <simple name="targetDestination" value="$(projectName)"/>
        </process>

that would be found because the wizard will show the specified wizardpage 


and i have build a class SetDestinationTarget which is located in 
<plugin_dir>/src/com/conrad/target/SetDestinationTarget.java

if i try to build a new Project i will get the error 

SetDestinationTarget Unknown process: com.conrad.target.TargetDestination
Unknown process: com.conrad.target.TargetDestination

  No Condition--> Process 1 
(org.eclipse.cdt.managedbuilder.core.NewManagedProject)-->Success: Executed 
successfully with args: [name:qqqqq, 
location:/data/ebs/emlix/intern/src/eclipse/runtime-EclipseApplication, 
artifactExtension:exe, isCProject:false]
  No Condition--> Process 2 
(org.eclipse.cdt.core.CreateSourceFolder)-->Success: Executed successfully 
with args: [projectName:qqqqq, path:src]
  No Condition--> Process 3 (org.eclipse.cdt.core.AddFiles)-->Success: 
Executed successfully with args: [projectName:qqqqq, files:
{{source:Basename.cpp, target:src/qqqqq.cpp, replaceable:true}}]


any ideas c~


Back to the top