scubacabra / gradle-jaxb-plugin

Gradle plugin to ease projects that use xsds and the ant jaxb task
GNU General Public License v2.0
49 stars 44 forks source link

The xsdDir, episodesDir and bindingsDir do not accept absolute paths #48

Open rgenna opened 8 years ago

rgenna commented 8 years ago

We have a build env where we need to be able to configure an absolute paths for the xsdDir, episodesDir and bindingsDir. If you attempt to do this now the plugin appends the project.rootDir to the path even if it is already absolute. Also I would argue that in the case of a relative path appending project.rootDir is actually incorrect because in a multi-project build that location is the parent project which means the path always has to be relative to the parent project's directory and not the current project's directory. It probably should be project.projectDir instead.

HasanSusam commented 8 years ago

Totally agree, in case of multi-project build it must be 'project.projectDir' instead of root project location

adrianjgeorge commented 8 years ago

You can check out our fork which handles all of this correctly. it also is thread safe for building in parallel, as well as a number of other enhancements. https://github.com/rackerlabs/gradle-jaxb-plugin

wdschei commented 8 years ago

@rgenna & @HasanSusam

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