Community
Participate
Working Groups
I have a few projects in older format which I am now trying to migrate to the newer format. As part of this migration I need to also move the project files. In some of the projects, the files are actually linked resources which make use of the Path variables. So to resolve the links to the files I need to migrate the Path Variables also to the new project. However this is not happening. Below is code which I used to migrate the Path Variables. project is the object of IProject. IProjectDescription newDesc = project.getDescription(); ((ProjectDescription) newDesc).setVariableDescriptions(oldDesc.getVariables()); project.setDescription(newDesc, null); I also tried the following: IProjectDescription newDesc = project.getDescription(); HashMap<String, VariableDescription> variables = oldDesc.getVariables(); for (String varName : variables.keySet()){ ((ProjectDescription) newDesc).setVariableDescription(varName, variables.get(varName)); } project.setDescription(newDesc, null); In both the cases, the Path Variables is not reflecting in the new project. Is this a bug or am I doing something differently? Thanks.
I don't think cdt-source-nav is the right component for this bug. Source navigation has to do with features like Open Declaration, Find References, Type Hierarchy, etc. I would suggest cdt-core or cdt-build instead.