ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KC Baltz <KBa...@responsenetworks.com>
Subject RE: javac task does not error on bad paths?
Date Wed, 09 May 2001 20:43:56 GMT
Most of Ant is like this.  When you specify a fileset (javac is implicitly a
fileset) you are specifying a pattern of files to include.  By specifying a
non-existant path, you are simply providing a pattern that will never be
matched.  Unmatched patterns are not considered a failure.

Now, as to whether or not this is a Good Thing(tm) ....

K.C.

> -----Original Message-----
> From: Rhodes, Phillip C. [mailto:Phillip.Rhodes@alcoa.com]
> Sent: Wednesday, May 09, 2001 3:11 PM
> To: Ant User
> Subject: javac task does not error on bad paths?
> 
> 
> javac tasks that refer to paths that are nonexistent do not 
> generate errors.
> 
> Can someone explain anything more on this?
> 
> Thanks in advance,
> Phillip
> 
> 
> <target name="compile">
> <javac srcdir="/src" 
> destdir="/classes">
> <classpath>
> <pathelement path="${base.classpath}" />
> </classpath>
> <include name="**/${pkgroot}badpath/**" />
> </javac> 
> </target>
> 

Mime
View raw message