Android SDK ツール v14 にアップグレードし、既存のプロジェクトを最新のプロジェクト構造に更新するant test
と、次のエラー メッセージで失敗します。
test:
[echo] Running tests ...
[exec] Syntax error: Bad substitution`
の出力ant -v test
[echo] Running tests ...
[exec] Current OS is Mac OS X
[exec] Executing '/opt/local/share/java/android-sdk-mac_x86/platform-tools/adb' with arguments:
[exec] 'shell'
[exec] 'am'
[exec] 'instrument'
[exec] '-w'
[exec] '-e'
[exec] 'coverage'
[exec] 'false'
[exec] 'xxx.xxx/xxx.xxx'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
ただし、コマンドを直接実行しadb shell am instrument
ても問題ありません。私の環境は、Mac 上の Apache Ant(TM) バージョン 1.8.2 です。助けてください。