How do I configure ant to include class files from a separate project / separate directory structure?
I am trying to build an robotium android test project with ant. The test project references not the robotium jars but the robotium source code, which I have modified slightly (added a method and some logging). However when I try and run an ant debug right now, the compiler isn't seeing the robotium code.
How do I tell ant to include those robotium classes from the other directory? In eclipse it's working fine, as I have the robotium project in the build path. Looking for the equivalent in ant.
Thanks!!
-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
您可以jar修改后的Robotium类,然后将此文件放入沙箱/库
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.