ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy XueWen Qin <a...@cisco.com>
Subject problem using Javac
Date Tue, 24 Oct 2000 20:02:25 GMT
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



Mime
View raw message