1
如何配置ant以包含來自單獨項目/單獨目錄結構的類文件?robotium測試項目在eclipse中生成,但不在ant中
我想與螞蟻建立一個robotium android測試項目。測試項目不是引用robotium jar,而是引用了我稍微修改的robotium源代碼(添加了一個方法和一些日誌記錄)。但是,當我嘗試運行Ant調試時,編譯器沒有看到robotium代碼。
如何告訴ant從其他目錄中包含這些robotium類?在Eclipse中它工作正常,因爲我在構建路徑中有robotium項目。尋找螞蟻中的等價物。
謝謝!
-compile:
[javac] Compiling 3 source files to /Users/swolfe/Documents/git/android/automation-suite/sandbox/bin/classes
[javac] /Users/swolfe/Documents/git/android/automation-suite/sandbox/src/com/foobar/bookings/test/SearchTestHoneycomb.java:9: package com.jayway.android.robotium.solo does not exist
[javac] import com.jayway.android.robotium.solo.Solo;
[javac] ^
[javac] /Users/swolfe/Documents/git/android/automation-suite/sandbox/src/com/foobar/bookings/test/SearchTestHoneycomb.java:15: cannot find symbol
[javac] symbol : class Solo
[javac] location: class com.foobar.bookings.test.SearchTestHoneycomb
[javac] private Solo solo;
[javac] ^
[javac] /Users/swolfe/Documents/git/android/automation-suite/sandbox/src/com/foobar/bookings/test/SearchTestHoneycomb.java:23: cannot find symbol
[javac] symbol : class Solo
[javac] location: class com.foobar.bookings.test.SearchTestHoneycomb
[javac] solo = new Solo(getInstrumentation(), getActivity());
[javac] ^
[javac] 3 errors
據透露任何人誰在未來臨到這一點,我做了什麼來解決是添加副本的步驟,其中所需的類文件被複制到ant工作目錄中,因此可用。像這樣: –