Does WSDL2Java or at least the associated ant task have dependency checking?
This question resulted from reading Chapter 15 page 362 of Java Development with Ant http://www.manning.com/hatcher/chap15.pdf I have copied the relevant paragraph below: "We supply a path to the source directory to include both our source and the generated files. One irritation of the current SOAP import process is that the Java files are always regenerated, which means they always need recompilation. This makes the build longer than it need be. Unless WSDL2Java adds dependency checking, you should use something similar to <uptodate> to bypass the import-wsdl target when it is not needed. There is an extra complication here; you need to use a <filesmatch> test inside a <condition> to verify that the file you just fetched with <get> hasn't changed. We omit all this because it is so complex." This book used the Beta2 version of Axis so a lot has probably changed since then.