-
Notifications
You must be signed in to change notification settings - Fork 420
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
Annotation processor that generates resource-config.json during build #703
Labels
theme: codegen
An issue or change related to the picocli-codegen module
Milestone
Comments
remkop
added
the
theme: codegen
An issue or change related to the picocli-codegen module
label
May 23, 2019
remkop
added a commit
that referenced
this issue
May 23, 2019
remkop
added a commit
that referenced
this issue
May 23, 2019
remkop
added a commit
that referenced
this issue
May 23, 2019
remkop
added a commit
that referenced
this issue
May 24, 2019
* fixed resource bundle related bugs in CommandLine (bundle may be null while bundleBaseName is not null in annotation processors) * all annotation processors now support a `relative.path` option (replaces the `groupId` and `artifactId` options) * DynamicProxyConfigGeneratorProcessor now supports a `interfaceClasses` option for additional interface names * ResourceConfigGeneratorProcessor now supports a `bundles` option for additional resource bundles and a `resourceRegex` option for additional other resources * added tests
Remaining tasks:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Picocli already offers support for Graal integration with the
ReflectionConfigGenerator
,ResourceConfigGenerator
, andDynamicProxyConfigGenerator
tools in the picocli-codegen module.Similar to #699, this ticket is to improve that to allow picocli-based applications to generate Graal configuration files automatically during the build, and embed the generated files in the client jar so that no command line configuration is needed when creating a native image.
ResourceConfigGenerator
This is a subclass of the generic picocli annotation processor (#500).
It invokes the
ResourceConfigGenerator
tool with theCommandSpec
derived from the annotations at compile time.By default it generates a config file in this location:
This may be controlled by specifying processor options
groupId
andartifactId
. For example, specifying"-AgroupId=example", "-AartifactId=full"
will result in the file location to become:(JCommander users looking for Graal support: give this a try!)
The text was updated successfully, but these errors were encountered: