mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
Merge branch 'master' into 4.0.x (JAVA_HOME on Ubuntu)
This commit is contained in:
@@ -101,7 +101,8 @@ module.exports.check_java = function() {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// See if we can derive it from javac's location.
|
// See if we can derive it from javac's location.
|
||||||
var maybeJavaHome = path.dirname(path.dirname(javacPath));
|
// fs.realpathSync is require on Ubuntu, which symplinks from /usr/bin -> JDK
|
||||||
|
var maybeJavaHome = path.dirname(path.dirname(fs.realpathSync(javacPath)));
|
||||||
if (fs.existsSync(path.join(maybeJavaHome, 'lib', 'tools.jar'))) {
|
if (fs.existsSync(path.join(maybeJavaHome, 'lib', 'tools.jar'))) {
|
||||||
process.env['JAVA_HOME'] = maybeJavaHome;
|
process.env['JAVA_HOME'] = maybeJavaHome;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ found at https://code.google.com/p/robotium/ and the jar should be put in the
|
|||||||
To run manually from command line:
|
To run manually from command line:
|
||||||
|
|
||||||
0. Build by entering `ant debug install`
|
0. Build by entering `ant debug install`
|
||||||
0. Run tests by clicking on "CordovaTest" icon on device
|
0. Run tests by clicking on "CordovaNativeTests" app icon on the device
|
||||||
|
|
||||||
To run from Eclipse:
|
To run from Eclipse:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user