Bug 46783 - erroronmissingdir not supported by javac task
Summary: erroronmissingdir not supported by javac task
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.7.1
Hardware: Macintosh Mac OS X 10.4
: P2 normal with 1 vote (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2009-03-01 19:54 UTC by Tim Dean
Modified: 2011-01-12 20:39 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Dean 2009-03-01 19:54:27 UTC
According to the Ant 1.7.1 documentation, the javac task "forms an implicit FileSet and supports all attributes of <fileset> (dir becomes srcdir) as well as the nested <include>, <exclude> and <patternset> elements."

The FileSet element has added the erroronmissingdir attribute in Ant 1.7.1, but it does not appear to be supported by the javac task. I believe this is a bug, and that <javac> should support this new attribute. At the very least, the current behavior does not match the documentation.
Comment 1 Stefan Bodewig 2009-05-07 01:54:23 UTC
svn revision 772556 fixes the manual

I haven't made up my mind on whether <javac> should support erroronmissingdir at all.
Comment 2 Andy 2009-07-23 12:53:51 UTC
Ant Documentation 1.7.1:

<zipfileset> supports all attributes of <fileset> in addition to those listed below.

Unfortunately, <zipfileset> doesn't support erroronmissingdir
Comment 3 Stefan Bodewig 2009-07-30 07:01:20 UTC
ZipFileSet does support erroronmissingdir (it comes in inherited from AbstractFileSet).
Comment 4 Lee Breisacher 2011-01-12 19:57:20 UTC
If javac is not going to support erroronmissingdir, then how *does* one tell javac to ignore a directory? The use case I've got is this: I have several components to compile, so I wrote a macrodef to do the compile. Some of the components have more than one src directory (e.g. src, gen/src), but others do not (just src, no gen/src). I want to put both src and gen/src on the javac srcdir and have it simply ignore a missing directory. I've tried various combinations of <src> and srcdir and <fileset> to no avail.