All--
In an effort to be more Eclipse (and IDE) friendly, the WSM samples
should switch to using the .java file extension for web services.
I've started this work with a checkin to petstoreWeb and will finish
the rest later today. (squawk if anyone has a concern about this)
In order to do this, it's necessary to split the web service source
out from the rest of the Java source files in its directory. This is
needed because of an issue with the WSM annotation processor which
requires type dependencies be resolved to .class files in order to
process a .java web service. When using APT, this isn't always
possible if all of the .java files are built together.
So, a web service-enabled webapp that looks like:
fooWeb/
WEB-INF/
src/
service/Service.java
account/Account.java
where Service.java depends on the Account type would turn into:
fooWeb/
WEB-INF/
src/
account/Account.java
src-ws/
service/Service.java
and the build would compile WEB-INF/src and then compile
WEB-INF/src-ws. Given that WSM web services should be leaves, this
actually enforces the one way dependency from src-ws on src and
prevents the reverse dependency. The other option would be to run
<javac> on WEB-INF/src and then run <build-webservices> on
WEB-INF/src, but this doesn't enforce the one way dependency.
In the end it's just a minor change to the samples build files and a
move of .jws files to .java.
Questions / comments welcome.
Eddie