Skip to content

Conversation

@jlonnberg
Copy link
Contributor

The file attribute in the project environment adds the metadata needed to supply compiler specific files in an example project.

* Gets the folder attribute stored in the environment tag.
* @return folder in the project, or null of it does not exist.
*/
String getProjectFolder(String environmentName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface change: requires default implementation

* Return the folder attribute
* @return folder path, null if not supported.
*/
String getProjectFolder();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface change: requires default implementation

return getEnvironmentAttribute(environmentName, CmsisConstants.FOLDER);
}

private String getEnvironmentAttribute(String environmentName, String attributeName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change visibility to protected and add a comment. CpItem-based classes should be kept open for extension.

@edriouk edriouk merged commit 5c15c88 into ARM-software:master Dec 2, 2019
@edriouk
Copy link
Contributor

edriouk commented Dec 2, 2019

Thank you Joakim for the implementation

@edriouk edriouk changed the title Adding support for file attribute in example project environment. Adding support for folder attribute in example project environment. Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants