Logging all classes not found during ant compile

Posted on 2012-08-19
Last Modified: 2012-09-14
We have a large project and we are making some changes to the jars in the classpath. We would like to compile the project in ant and log all classes that are not found during compilation. I guess I will have to set failonerror=false so ant continues to compile even on error. However, I would like to know if there is a way to log (to a file) a list of all classes that were not found at compile time.
Question by:ctoan
    1 Comment
    LVL 86

    Accepted Solution

    You can get verbose output from Ant with the debug flag. That can go into a log file which can then be searched for what you need. e.g.

    ant -d build >ant.log 2>&1

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    FizzBuzz challenge 9 64
    factorial example challenge 10 44
    word0 challenge 4 37
    pairs challenge 5 29
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now