We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
build_native.sh local.properties parsing breaks on comments
build_native.sh local.properties parsing breaks on comments
Bug #3346 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8276
Status: | Closed | |
---|---|---|
Start date: | 2013-12-04 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
For some reason in cocos2d-x-3.0alpha0-pre, the build_native.sh included in the sample code (in this instance, the TestCpp application) includes a parser for the local.properties file. However, this code doesn’t parse the file properly, printing errors when there are any comments in the file. For example, when dropping in the attached local.properties file, the script prints:
Our build system uses local.properties to configure ant. If we upgrade to cocos2d-x-3.0 I don’t want to have to support a second parser, especially if it’s brittle. If you want to be able to have a config file for build_native.sh I’d suggest possibly making the config live in a seperate file instead of trying to piggyback on this part of the java build system.
Alternatively, you could rewrite this script as an ant task which could read property files correctly if you are really wanting to use the data in the local.properties file for some reason.
local.properties (118 Bytes) fadookie, 2013-12-04 23:44