Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1015273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:22:37+00:00 2026-05-16T10:22:37+00:00

I have an ant task that contains javac task inside. It reports about error

  • 0

I have an ant task that contains javac task inside. It reports about error in one of the classes, but the build doesn’t fail, because it has failonerror=”false”. I suppose to see class files in the end of build, but I don’t see it. Can anybody tell me why?

Properties used:

checkout.path=work/workingcopy
classpath.path=work/build/classes
log.file=work/log.txt

Ant code:

<record name="${log.file}" action="start"/>     
<javac destdir="${classpath.path}" srcdir="${checkout.path}/src"
        debug="true" failonerror="false">
    <classpath>
        <path refid="webinf.lib"/>
        <path refid="tomcat.lib"/>
    </classpath>
</javac>
<record name="${log.file}" action="stop"/>

Log file:

[javac] Compiling 169 source files to C:\work\build\classes
[javac] C:\work\workingcopy\src\com\mycompany\exception\handlerException\CustomExceptionHandler.java:25: cannot find symbol
[javac] symbol  : class RequestContextImpl
[javac] location: package org.primefaces.context
[javac] import org.primefaces.context.RequestContextImpl;
[javac]                              ^
[javac] C:\work\workingcopy\src\com\mycompany\exception\handlerException\CustomExceptionHandler.java:103: cannot find symbol
[javac] symbol  : class RequestContextImpl
[javac] location: class com.mycompany.exception.handlerException.CustomExceptionHandler
[javac]             new RequestContextImpl(ec);
[javac]                 ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] Compile failed; see the compiler error output for details.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:22:37+00:00Added an answer on May 16, 2026 at 10:22 am

    The failonerror option is for Ant not for javac. So if failonerror=false then Ant will continue your task even javac returns an error.

    From the docs:

    failonerror Indicates whether compilation errors will fail the build; defaults to true.

    The build is Ant’s build process not javac’s !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently have an ant task that contains something similar to the following: <filelist
I have a project that contains xml files. I also have an Ant build
I have an ant build script that needs to pull files down from a
I have a bunch of ant projects that build plug-ins that all conform to
I have an ant build.xml file with XJC task definition: <taskdef name=xjc classname=com.sun.tools.xjc.XJCTask> <classpath>
I have this simple Ant task that lists all '.png' files in a folder:
I have an ant task that executes some command on a list of files.
I have an Ant task to call a java process that takes a file
I have an Ant task that creates an HTML report. Is it possible to
I have an ant task that uses an apply task to run a script

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.