Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] cdt template addFiles process

Ok, my mistake was I used realtive path to the root of my plugin. My bad  ... 
Merci ! 
Robin 


2014-03-11 15:17 GMT+01:00 Marc-André Laperle <marc-andre.laperle@xxxxxxxxxxxx>:
It looks like the path should be relative to the template file:
path = TemplateEngineHelper.getTemplateResourceURLRelativeToTemplate(template, fileSourcePath);

Also, this is the case in this built-in template:
org.eclipse.cdt.managedbuilder.gnu.ui/templates/projecttemplates/HelloWorldCCProject/template.xml

Marc-André


On 14-03-11 09:44 AM, Robin Bussenot wrote:
Hi,
I'm creating a template with the plugin org.eclipse.cdt.core.templates. And when i try to add a source file for the process org.eclipse.cdt.core.AddFiles, I have an error "Add file failure : template source not found" . 

I've seen in the documentation, the source element : source: Use this to specify the source file location in the file system. 

But I tried many paths for this element and no one is found ... 

Can you tell me what kind of path is expected here ? Or did you have some exemple of template.xml ? 
 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top