question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add className and path parameters in CLI

See original GitHub issue

EDIT:

See comment https://github.com/quarkusio/quarkus/issues/14437#issuecomment-1067739526


Legacy:

They are already definable as codestart data: https://github.com/quarkusio/quarkus/blob/master/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/codestarts/quarkus/QuarkusCodestartData.java#L32-L39

We need to plug them to distinct parameters (resteasy.class-name, resteasy-reactive.class-name, …) instead of a generic one in the CreateProjectMojo and the io.quarkus.cli.Create: https://github.com/quarkusio/quarkus/blob/main/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/codestarts/quarkus/QuarkusCodestartData.java#L39-L46

This issue also includes updating the guides to use those new parameters.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ia3andycommented, May 10, 2021

@cristian-com I think we should wait for the new CLI before doing that one. Let me find you something 😃

0reactions
ia3andycommented, Mar 15, 2022

To give a bit of context, the problem is that when selecting multiple codestarts (i.e: resteasy + spring-web, …) then path and className parameters are ambiguous. The current behavior is to ignore them in that case.

With a bit more feedback on how codestarts are used, it seems that beside the basics (groupId, extensions…) customizing the generated code is not a strong need and would be complex to maintain and document with that many extensions. Still we have some “main” extensions resteasy, resteasy-reactive, spring-web and maybe some other in the future for which it is nice to configure the className and the path.

So, in the end, I believe we should:

  • keep the current behavior and ignore when ambiguous
  • un@Deprecate the className and the path in the Maven plugin
  • add className and the path in the Quarkus CLI.

FYI:

  • If the packageName is defined, the package part of the className is ignored
  • If the packageName is not defined and the full qualified className is defined, it is used as packageName
  • If the packageName is not defined at all, the groupId is used as packageName
  • Else org.acme is the default
Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the class path
This section shows you how to set the CLASSPATH environment variable if you want to do that, or clear settings left over from...
Read more >
cimcli usage information - IBM
You can use this command to test and query CIM Servers. This command includes operations to query for namespaces and to get all...
Read more >
Java WIndows CMD error with command: java ClassName
In my example java file was under the following path: C:\Users\XYZ\Documents\Exercise1\src\Exercise1\className.java ).
Read more >
Command line interface (CLI) - Testim overview
Copy the CLI, edit and add parameters according to your needs. ... That way you can see the run in action on a...
Read more >
apex Commands | Salesforce CLI Command Reference
Use the apex commands to create Apex classes, execute anonymous blocks, ... which tests to run by using the --classnames, --suites, or --tests...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found