Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set output directory for generated classes #44

Open
dpenney opened this issue Jan 26, 2023 · 1 comment
Open

How to set output directory for generated classes #44

dpenney opened this issue Jan 26, 2023 · 1 comment

Comments

@dpenney
Copy link

dpenney commented Jan 26, 2023

In version 1.4.3 there was an outputDirectory option - how can I set that in 2.0?

@dlmiles
Copy link

dlmiles commented Mar 10, 2023

In looking at this request.

In 2.0.x the output directory is based on the SourceSet name, by default this would be 'main' but if you were to create a custom SourceSet name just for your XJC you should achieve some control over the output directory, even if you can't fully specify it.

Strategy suggestion in lieu of feature:

Gradle allows easy sub-project creation, so structuring your larger project requirement around any pre or post processing for XJC could be done at the project level, meaning a project's only aim could be to package an output that another project consumes. This 2nd project reprocesses and the output from this project is the real output you are after.

I am assuming you want more control over outputDirectory because of some additional process only to affected XJC output or to manage many processes separately (in a single project) and keep them apart.

It is not clear how using a sub-project (while additional work for you to setup) does not address that concern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants