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

[TIMOB-16995] When packaging an app don't start the log node process #233

Merged
merged 1 commit into from
May 20, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 24 additions & 20 deletions build_templates/blackberry/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,34 +130,38 @@ function build(logger, config, cli, finished) {
'distribute': ['o.le-v7', 'arm']};
this.ndk = cli.argv['ndk'];
this.analyticsBuildType = cli.argv['build-type'];

cli.fireHook('build.pre.compile', this, function (e) {
// Make sure we have an app.js. This used to be validated in validate(), but since plugins like
// Alloy generate an app.js, it may not have existed during validate(), but should exist now
// that build.pre.compile was fired.
ti.validateAppJsExists(this.projectDir, this.logger, 'blackberry');
var self = this;
var ipFound = false;
appc.net.interfaces(function(a){
for(var key in a) {
var obj = a[key];
if(!obj.gateway) continue;
obj.ipAddresses.forEach(function (ip) {
if(ip.family == 'IPv4') {
self.ipAddress = ip.address;
ipFound = true;
return;
}
if(cli.argv['target'] == 'distribute') {
var bbndk = new BlackBerry(self);
bbndk.build(finished);
} else {
var ipFound = false;
appc.net.interfaces(function(a){
for(var key in a) {
var obj = a[key];
if(!obj.gateway) continue;
obj.ipAddresses.forEach(function (ip) {
if(ip.family == 'IPv4') {
self.ipAddress = ip.address;
ipFound = true;
return;
}
});
if(ipFound) break;
}
getAvailablePort(function(port){
self.availablePort = port;
var bbndk = new BlackBerry(self);
bbndk.build(finished);
});
if(ipFound) break;
}
getAvailablePort(function(port){
self.availablePort = port;
var bbndk = new BlackBerry(self);
bbndk.build(finished);
});

});

}
}.bind(this));
}

Expand Down