ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar Stein" <st...@xtramind.com>
Subject Javac not generating class files
Date Thu, 31 May 2001 15:50:11 GMT
Hi all,

after I was advised to use Javac 1.2 instead of Javac 1.3, Ant completes the whole build script
flawlessly.
However, I noticed that Javac still doesn't create all the files it should (I noticed that
by accident, as some JUnit tests failed with a ClassNotFound exception).

Our projekt consists of a large number of java files. The javac-Task looks as follows

  <javac srcdir="${path.src}"
   includes="com/xtramind/**"
   destdir="${path.build}"
   deprecation="on"
   verbose="off"
   failonerror="false"
   debug="off"
   optimize="off">
   <classpath>
    <path refid="project.classpath" />
    <fileset dir="${path.src}/jars">
     <include name="**/*.jar" />
    </fileset>
   </classpath>
  </javac>

This correctly adds all .java files to the list of files to be compiled (600+ files).
Here's an example

    [javac] com/xtramind/common/validator/DefaultExplanation.java added as /home/tester/build/com/xtramind/common/validator/DefaultExplanation.class
doesn't exist.
    [javac] com/xtramind/common/validator/CorrectValidation.java added as /home/tester/build/com/xtramind/common/validator/CorrectValidation.class
doesn't exist.
    [javac] com/xtramind/common/validator/ValidationException.java added as /home/tester/build/com/xtramind/common/validator/ValidationException.class
doesn't exist.
    [javac] com/xtramind/common/validator/Explanation.java added as /home/tester/build/com/xtramind/common/validator/Explanation.class
doesn't exist.
    [javac] com/xtramind/common/validator/FailedValidation.java added as /home/tester/build/com/xtramind/common/validator/FailedValidation.class
doesn't exist.
    [javac] com/xtramind/common/validator/Validation.java added as /home/tester/build/com/xtramind/common/validator/Validation.class
doesn't exist.
    [javac] com/xtramind/common/validator/Validator.java added as /home/tester/build/com/xtramind/common/validator/Validator.class
doesn't exist.

then, later:

    [javac] Compiling 689 source files to /home/tester/build
    [javac] Using classic compiler
    [javac] Compilation args: -deprecation -d /home/tester/build -classpath
/home/tester/build:/home/tester:/home/tester/jakarta-ant-1.3/lib/ant.jar:/ho
me/tester/jakarta-ant-1.3/lib/jakarta-ant-1.3-optional.jar:/usr/j2se/lib/too
ls.jar:/home/tester/jaf-1.0.1/activation.jar:/home/tester/junit3.7/junit.jar
:/home/tester/xerces-1_3_0/xerces.jar:/home/tester/xalan-j_1_2_2/xalan.jar:/
home/tester/xalan-j_1_2_2/bsf.jar:/home/tester/java:/home/tester/java/jars/j
cfield451K.jar:/home/tester/java/jars/activation.jar:/home/tester/java/jars/
jakarta-oro-2.0.1.jar:/home/tester/java/jars/jdom.jar:/home/tester/java/jars
/jta-spec1_0_1.jar:/home/tester/java/jars/junit.jar:/home/tester/java/jars/j
vi6.0.0-jdk1.2.jar:/home/tester/java/jars/mail.jar:/home/tester/java/jars/va
r.jar:/home/tester/java/jars/vsm.jar:/home/tester/java/jars/xalan.jar:/home/
tester/java/jars/xerces.jar -sourcepath /home/tester/java
    [javac] Files to be compiled:
    /home/tester/java/com/xtramind/common/validator/DefaultExplanation.java
    /home/tester/java/com/xtramind/common/validator/CorrectValidation.java
    /home/tester/java/com/xtramind/common/validator/ValidationException.java
    /home/tester/java/com/xtramind/common/validator/Explanation.java
    /home/tester/java/com/xtramind/common/validator/FailedValidation.java
    /home/tester/java/com/xtramind/common/validator/Validation.java
    /home/tester/java/com/xtramind/common/validator/Validator.java
*snip*

However, when I run javac in verbose mode, I can see that these files are parsed, but their
class files are never written to the disk.
This may be related to a small number of compile errors that occur before these files (13
errors, but javac continues the compile process).

Help me, guys

Ingmar

Mime
View raw message