CB-8410 Fix all jshint issues for Android platform (close #153)

This commit is contained in:
Murat Sutunc
2015-02-03 12:10:50 -08:00
committed by Andrew Grieve
parent d0ade1d190
commit aed4859642
11 changed files with 59 additions and 75 deletions
+5 -3
View File
@@ -19,6 +19,8 @@
under the License.
*/
/* jshint sub:true */
var shelljs = require('shelljs'),
child_process = require('child_process'),
Q = require('q'),
@@ -63,7 +65,7 @@ module.exports.get_target = function() {
return extractFromFile(path.join(ROOT, 'project.properties'));
}
throw new Error('Could not find android target. File missing: ' + path.join(ROOT, 'project.properties'));
}
};
// Returns a promise. Called only by build and clean commands.
module.exports.check_ant = function() {
@@ -140,7 +142,7 @@ module.exports.check_java = function() {
return tryCommand('javac -version', msg);
});
});
}
};
// Returns a promise.
module.exports.check_android = function() {
@@ -242,5 +244,5 @@ module.exports.run = function() {
console.log('ANDROID_HOME=' + process.env['ANDROID_HOME']);
console.log('JAVA_HOME=' + process.env['JAVA_HOME']);
});
}
};