dcsimg
Using failonerror=false in the javac task
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   debbie_unchis
Posted On:   Wednesday, March 13, 2002 07:44 PM

Hi all- Due to memory constraints and the size of my project I divide my compilation into several javac tasks: srcdir="${src}" includes="com/**" excludes="com/dunchis/applications/**/**" classpath="${classpath}" destdir="${build}" failonerror="false"/> srcdir="${src}" includes="com/dunchis/application/**/**" excludes="com/dunchis/application/extrastuff/**/**" cla   More>>

Hi all-



Due to memory constraints and the size of my project I divide my compilation into several javac tasks:












srcdir="${src}"

includes="com/**"

excludes="com/dunchis/applications/**/**"

classpath="${classpath}"

destdir="${build}"

failonerror="false"/>







srcdir="${src}"

includes="com/dunchis/application/**/**"

excludes="com/dunchis/application/extrastuff/**/**"

classpath="${classpath}"

destdir="${build}"

failonerror="false"/>


I need all of the compile errors at once, so that the developers know
everything that they need to fix. So I've started using the failonerror=false
attribute. Of course I still want the build to fail. How can I get it to do this?
Is there BuildException that is thrown that I can catch or test using the
task? I notice that the junit task has a failureProperty that can be set, is there
a similar workaround for javac?


Thanks.    <<Less

Re: Using failonerror=false in the javac task

Posted By:   Erik_Hatcher  
Posted On:   Thursday, March 14, 2002 01:56 AM

No, there is no property like that for , sorry.
About | Sitemap | Contact