Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for folder attribute in example project environment. #92

Merged
merged 3 commits into from
Dec 2, 2019

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