2012-11-22 62 views
0

我嘗試從命令行爲我的iOS應用運行MonkeyTalk腳本。該腳本在MonkeyTalkIDE中成功運行並在模擬器上執行。在MacOSx上使用ANT運行MonkeyTalk腳本

我在test.mt的同一目錄的build.xml猴tal.jar文件

中的build.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<project name="TEST3" xmlns:monkeytalk="antlib:com.gorillalogic.monkeytalk.ant"> 
    <target name="myScript"> 
    <monkeytalk:run agent="iOS" script="test.mt" /> 
    </target> 
</project> 

我跑命令:

ant -lib monkeytalk-ant.jar test.mt 

我收到錯誤消息:

MacBook-Pro-2948:TEST3 Developer$ ant -lib monkeytalk-ant.jar test.mt 
Buildfile: /Users/Developer/Downloads/monkeytalk 2/MonkeyTalkIDE/MonkeyTalkIDE.app/Contents/MacOS/workspace/TEST3/build.xml 

BUILD FAILED 
Target "test.mt" does not exist in the project "TEST3". 

總時間:0秒

任何想法?

回答

0

我在啓動腳本時發現錯誤。

ant -lib monkeytalk-ant.jar myScript