Ant Javac task :
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Divesh_Goyal
Posted On:   Thursday, June 2, 2005 08:58 PM

Im using the core Ant task javac to compile my source code (100 files). The problem Im facing is that if the compiler bails out
even if 1 file fails to compile. I've used the failonerror="false" attribute, but all that happens is that flow moves on to the next target/task leaving the compilation incomplete.

Does anyone have an idea how to force to compile the remaining 99 files even if one fails?

Pointers appreciated.

Re: Ant Javac task :

Posted By:   Anonymous  
Posted On:   Friday, June 3, 2005 06:46 AM

Manual sais: "Indicates whether the build will continue even if there are compilation errors; defaults to true." You could exclude files using conditional selectors. Or you try your best over all files:

















Trying to compile ${file}

srcdir="${src.dir}"
destdir="${classes.dir}"
includes="${file.name}"
failonerror="false"
listfiles="true"
/>



About | Sitemap | Contact