gradle-jaxb-plugin icon indicating copy to clipboard operation
gradle-jaxb-plugin copied to clipboard

Support for specifying a specific xsd file to process.

Open bszeliga opened this issue 11 years ago • 7 comments

It would be nice in the xjc convention to be able to specify a specific xsd file relative to the jaxb.xsdDir to process.

bszeliga avatar Sep 04 '14 04:09 bszeliga

why not just make that the only xsd file in the folder?

scubacabra avatar Sep 05 '14 02:09 scubacabra

That would be a work around, but it would be nice to add a filter for files so that you could possibly do a subset of files in a directory.

bszeliga avatar Sep 05 '14 03:09 bszeliga

I guess it would be nice.

I happen to like the workaround. It keeps xsds organized by folder and what they represent, and that correlates to a project that uses xjc for those set of xsds.

Specifying one file in a folder kind of defeats that purpose for me. On Sep 4, 2014 11:04 PM, "Brandon Szeliga" [email protected] wrote:

That would be a work around, but it would be nice to add a filter for files so that you could possibly do a subset of files in a directory.

— Reply to this email directly or view it on GitHub https://github.com/jacobono/gradle-jaxb-plugin/issues/9#issuecomment-54576619 .

scubacabra avatar Sep 05 '14 03:09 scubacabra

I'm +1 on this as we can't always determine how the schemas are being structure, especially when you didn't write them yourself. I'm trying to generate code out of XSD's I received from the IRS, they have tons of them and it is unrealistic to try to fix that.

c4milo avatar Nov 21 '14 21:11 c4milo

I think this would be nice too.

If you want to submit a pull request for this feature I'd be more than happy to assist :+1:!

scubacabra avatar Nov 21 '14 22:11 scubacabra

This is fixed in https://github.com/jacobono/gradle-jaxb-plugin/pull/47

wdschei avatar Feb 18 '16 21:02 wdschei

@bszeliga & @c4milo

The OpenRepose.org updated version of this plugin is now available in the Gradle Plugins repository and is compatible with JSE7.

wdschei avatar Sep 09 '16 19:09 wdschei