| Summary: | "Name" field in "Hello World ANSI C Project" default comment does not contain characters past the first space. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Jared Mathis <dshinka> | ||||
| Component: | cdt-build | Assignee: | cdt-build-inbox <cdt-build-inbox> | ||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||
| Severity: | trivial | ||||||
| Priority: | P3 | CC: | malaperle, stg.open | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jared Mathis
Created attachment 187908 [details]
fix
The file name is set by ${projectName}, while the default comment's file name value is set by ${baseName}. The comment should use the same parameter as the actual file.
The patch applies this change to the other HelloWorld projects, in addition to the one pointed by the bug.
I don't think we should replace ${baseName} with ${projectName} in this case. Rather, handling of ${baseName} should be fixed to return proper base name of file with spaces.
${baseName} is set from MBSWizardHandler.getBaseName(). It takes the project name and ignores everything after the last "." until the following " ".
so projectName = "test.content" becomes baseName = "content"
and projectName = "test content" becomes baseName = "test".
If we change baseName to return the exact project name, then why not use projectName directly?
|