• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Logging all classes not found during ant compile

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.
1 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


Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now