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.
Aug 28
Jul 22
My Ant build script stopped working when I moved from Elipse-3.2.2 to
Eclipse 3.3.0. It was failing with a null pointer on the input task.
By process of elimination I discovered that if a defaultvalue was set
in the input task, then it would fail. That is odd for sure. I
downloaded Ant 1.7.0 and had no problem executing my build script,
therefore, the problem had to be with Eclipse 3.30. Through
experimentation I discovered that by setting Ant to run in the same JRE
as the workspace the input task succeeded!

Powered by ScribeFire.
Recent Comments