Hi Sietse!

[EMAIL PROTECTED] ha scritto:
Hi Mauro,

I am not working in a big dev environment. But that doesn't make a
difference. Common schemas or parts of it isn't a problem.

I also have the webservice structure in SCM (svn in this case). Having
the generated code in there is the wrong usage of it in my opinion. This
causes duplication. What I do is:
- Check out the sources (using eclipse or another program/IDE who can
perform svn client operations);

This is a not so easy thing: our application is made up of something like 20 different software modules, each of them have its own version information and must be checked out and put together to prepare a complete project for the web application. We have some Ant scripts that can partially automatize this task, but there are some implications with Eclipse, which has a CVS support that is not so flexible... but this is another story.

- Let the IDE generate the sources (I use maven for this, but ant can
also be used);

We don't use Maven, but we can use Ant. First problem here is this: were to store the ant script to do that? Which relation should it have with the code, with the modules and with their versions? This is overhead...

I hope this helps you. I think the important bit is to NOT duplicate
sources in the SCM (which you do imho with storing the generated
sources).

But why do you say that putting Axis2 generated code under source control means duplicating code? I don't have any duplicated code! For each WSDL I have a couple of unique generated classes, while I share generated types between web services implementations by translating shared schemas. If one day you have to modify a WSDL, you just need to generate code for it again and commit it over the previous one. This also enables you to make changes to the generated code, if needed: I know this has to be done with care, but sometimes it could be necessary.

Moreover, if I understood it well, you are saying that you have some code under source control that doesn't compile as soon as you don't generate the Java code from the WSDLs each time you do a checkout?

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to