Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] API for changing contents of template

Sheldon, I think what you need to do is create a template process, and set the project options such as paths accordingly inside this process. This is what I’ve done – I just call System.getEnv() inside my template process to set the include and library paths based on environment variables.

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sheldon Dsouza
Sent: 25 July 2007 11:52
To: CDT General developers list.
Subject: [cdt-dev] API for changing contents of template

 

Hi,

         Just wanted to know if it is possible to modify the template XML before creating a project using API. As per my previous question on adding include paths through the templates, the includes paths needed for our projects are dependent on a particular target. So if i select a particular target for project creation the include path will change

e.g /target/usr/include this cannot be hard coded in the template. Needs to be changed on the fly while creating the project.

Regards,
Sheldon


Back to the top