build.xml

Java, Ant, Eclipse Add comments

I found a bug in my build.xml script. I let Eclipse compile all my source with the exception of Version.java which is dynamically built by Ant and then compiled before I generate the project JAR file. The problem is that even though my Eclipse project settings were set to 5.0, I didn’t set the target in the javac task in the build file. This resulted in a Bad Version Number error if I built the project on a machine where Java 6 was the default.

Leave a Reply

You must be logged in to post a comment.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login