Updated Branches: refs/heads/master 67d25e315 -> 0cd68732e
[CB-1137] emulate and log script failure when launched from external working directory Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/0cd68732 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/0cd68732 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/0cd68732 Branch: refs/heads/master Commit: 0cd68732e96111351f019330b31a8f4b224938bf Parents: 67d25e3 Author: Shazron Abdullah <shaz...@apache.org> Authored: Wed Jul 25 17:33:22 2012 -0700 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Wed Jul 25 17:33:22 2012 -0700 ---------------------------------------------------------------------- bin/templates/project/cordova/emulate | 2 +- bin/templates/project/cordova/log | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/0cd68732/bin/templates/project/cordova/emulate ---------------------------------------------------------------------- diff --git a/bin/templates/project/cordova/emulate b/bin/templates/project/cordova/emulate index 3822121..1bee7c6 100755 --- a/bin/templates/project/cordova/emulate +++ b/bin/templates/project/cordova/emulate @@ -51,7 +51,7 @@ fi # launch using ios-sim if which ios-sim >/dev/null; then - ios-sim launch $APP_PATH --stderr console.log --stdout console.log & + ios-sim launch $APP_PATH --stderr $CORDOVA_PATH/console.log --stdout $CORDOVA_PATH/console.log & else echo -e '\033[31mError: ios-sim was not found. Please download, build and install version 1.4 or greater from https://github.com/phonegap/ios-sim into your path. Or "brew install ios-sim" using homebrew: http://mxcl.github.com/homebrew/\033[m'; exit 1; fi http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/0cd68732/bin/templates/project/cordova/log ---------------------------------------------------------------------- diff --git a/bin/templates/project/cordova/log b/bin/templates/project/cordova/log index fd1261c..580d659 100755 --- a/bin/templates/project/cordova/log +++ b/bin/templates/project/cordova/log @@ -18,9 +18,6 @@ # under the License. # -# -# USAGE -# -# ./log [path] -# -tail -f ${1:-".."}/console.log +CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) + +tail -f $CORDOVA_PATH/console.log