NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
Here's another peculiarity I found with the JWSC Ant Task
- even though the documentation specifies that the srcdir
attribute is mandatory, it is not enforced which leads to falsely reported failures during the 'Processing x JAX-WS web services...'
This one had me stumbled for a while. JWSC was reporting compilation failures, but the final build status was a success. In addition when I examined the produced WAR
file, it contained the very classes and packages that JWSC was claiming were missing.
My JWSC task was being used like this...
Since I was using module
and specifying srcdir
attribute on the jwsfileset
, I didn't think to set the same attribute on the jwsc
This resulted in output like this (sanitised for readability):
Once I set the srcdir
attribute on the jwsc
task, all of these processing errors went away. It seems a little redundant to have to specify the source directory in multiple places to me, but I guess there is little choice if you want clean build system output.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...