Skip to content

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

Merged
edriouk merged 3 commits into
ARM-software:masterfrom
jlonnberg:master
Dec 2, 2019
Merged

Adding support for folder attribute in example project environment.#92
edriouk merged 3 commits into
ARM-software:masterfrom
jlonnberg:master

Conversation

@jlonnberg

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

edriouk commented Dec 2, 2019

Copy link
Copy Markdown
Contributor

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