stianh / gradle-jaxb-plugin

Gradle plugin for generating jaxb classes.
17 stars 11 forks source link

Make it possible to override generated package #4

Open stigkj opened 12 years ago

stigkj commented 12 years ago

The package can be specified inside the xsd now, but sometimes one needs to overwrite it. For example when you're using an external schema that one "cannot" change.

peterwalker commented 12 years ago

This would be a very useful enhancement.

stesieber commented 12 years ago

I'd also be glad to have this feature. I tried to have a look at the sources to find the spot where I can add that property - no luck so far ;) Is that plugin similar to the antlr plugin from gradleware?

stigkj commented 12 years ago

Just to make sure; you know that this can be specified inside the xsd? This is more for when you're using an external xsd that you "cannot" change, but need another package.

stesieber commented 12 years ago

Yes I've seen this in your samples. But when generating code from the schema, the common case is that you have an external xsd. Usually not patching the external xsd is favored.

Nice Plugin btw :)

spina commented 12 years ago

I just submitted a pull request for a fix to this issue. I hope you find it suitable.