tbroyer / gwt-maven-archetypes

Apache License 2.0
152 stars 39 forks source link

Use the gwt-version property for the dtd declaration inside gwt.xml files #23

Closed nmorel closed 12 years ago

nmorel commented 12 years ago

Hello,

Here is a small patch to use the gwt-version property for the dtd instead of the hard-coded 2.4.0 version.

buildhive commented 12 years ago

Thomas Broyer » gwt-maven-archetypes #13 SUCCESS This pull request looks good (what's this?)

tbroyer commented 12 years ago

I'd actually be tempted to remove the DOCTYPEs altogether, what do you think?

(while I generally agree with the change –thanks–, it will break for self-built GWT distros –which you'd likely version as 2.5.0-mycompany-r11161-patched or similar– or when/iff GWT starts to publish snapshots)

nmorel commented 12 years ago

Ah right, I forgot about the self-build distro.

If we keep the hard-coded dtd version, it works for any distro but it's not sync to the gwt version used.

If we remove them, no one will have the dtd, validation, auto-completion... People new to GWT would probably prefer to have it as they are not using a self-build distro.

If we keep the doctype and use the gwt-version property, people using self-build distro will just get a warning by their IDE (I think there is one too if the doctype declaration is missing anyway).

Other suggestions :

tbroyer commented 12 years ago

OK, convinced. Power-users (using custom-built distros) will just have one line to delete or update.