ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar Stein" <st...@xtramind.com>
Subject Re: Javac task not generating class files
Date Thu, 22 Mar 2001 13:52:58 GMT
Okay, I should have been more specific.

What I want to do is a nightly build system which compiles
a complete source tree. It create documentation, runs tests, etc.
after the compilation, but this can't succeed without class files.
So, if one out of these over 300 files fails to compile, not a single
class file is generated.

This is my taskdef:

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

Ingmar Stein

----- Original Message -----
From: "Stephane Bailliez" <sbailliez@imediation.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, March 22, 2001 2:49 PM
Subject: RE: Javac task not generating class files



I guess this is the expected behavior and also what is doing any compiler.

If files don't need to be compiled then they do not have to be compiled.
Use the fileset element to include the one that should compile and exclude
the one that should not.

If you don't know the one that should not compile then how will you know
when the compiler will not be able to compile one that should ?

--
 St├ęphane Bailliez
 Software Engineer, Paris - France
 iMediation - http://www.imediation.com
 Disclaimer: All the opinions expressed above are mine and not those from my
company.




Mime
View raw message