如何配置 ant 以包含来自单独项目/单独目录结构的类文件?
我正在尝试用ant构建一个robotium android测试项目。测试项目引用的不是robotium jar,而是robotium 源代码,我对它进行了一些修改(添加了一个方法和一些日志记录)。但是,当我现在尝试运行 ant 调试时,编译器看不到机器人代码。
我如何告诉 ant 包含其他目录中的那些机器人类?在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