You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andy XueWen Qin <aq...@cisco.com> on 2000/10/24 22:02:25 UTC
problem using Javac
I'm trying to use Ant to compile a small project, but
seems like Ant's javac never go to compile an imported
file if that file is not under the "srcdir"
----------------------
In my build.xml:
---------------
<property name="classpath" value=".:/abc/test1:/jdk/lib/classes.zip" />
<javac srcdir="/tdd/fortest" destdir="/tdd/fortest" debug="on">
<classpath path="${classpath}"/>
</javac>
-----------------
file "/tdd/fortest/A.java" has "import com.self.util.csCgi"
and there IS a java file "/abc/test1/com/self/util/csCgi.java"
but Ant never compile it, the error message is:
[javac] /tdd/fortest/A.java:12: Class com.self.util.csCgi not found in
import.
[javac] import com.self.util.csCgi;
[javac] ^
thanks
/andy