-
Notifications
You must be signed in to change notification settings - Fork 0
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
fixing problems mentioned in PR review #30
Conversation
@@ -7,11 +7,11 @@ This project is a simple tool to generate a Camel Catalog from a set of Camel co | |||
Install the project dependencies: | |||
|
|||
```bash | |||
mvn install | |||
mvnw install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is ./mvnw (at least on Linux)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, otherwise we wouldn't be using the maven wrapper.
@@ -126,7 +124,10 @@ public void resolve(MavenDownloader mavenDownloader, String gav, boolean useSnap | |||
((KaotoOpenURLClassLoader) getClassLoader()).addURL(ma.getFile().toURI().toURL()); | |||
} | |||
} catch (Throwable e) { | |||
e.printStackTrace(); | |||
if (getLog()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what' the purpose of getLog()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't ask me :D I just aligned to the rest of the codebase. Will leave that to Ricardo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is to use the same log property in both classes (super and current one)
This commit adds a Camel Catalog generator CLI to build the following structure: ``` dist/ ├─ camel-main/ │ ├─ 4.4.0/ │ ├─ 4.6.0/ ├─ camel-quarkus/ │ ├─ 3.8.0/ ├─ camel-springboot/ │ ├─ 4.4.0/ │ ├─ 4.6.0/ ├─ index.json ``` * How to run? ```bash mvn package; java -jar ./target/catalog-generator-0.0.1-SNAPSHOT.jar -o ./dist -k 4.6.0 -m 4.6.0 -m 4.4.0 -q 3.8.0 -s 4.6.0 ``` This will generate: * Camel Main 4.4.0 * Camel Main 4.6.0 * Camel Quarkus 3.8.0 * Camel SpringBoot 4.6.0 * Usage ``` usage: catalog-generator -k,--kamelets <kameletsVersion> Kamelets catalog version -m,--main <version> Camel Main version -n,--name <catalog library name> Name of the Catalog Library -o,--output <outputDir> Output directory. It will be cleaned before generating the catalogs -q,--quarkus <version> Camel Extensions for Quarkus version -s,--springboot <version> Camel SpringBoot version -v,--verbose Be more verbose ``` relates: KaotoIO#1109 Signed-off-by: Lars Heinemann <[email protected]>
dbf3024
to
60f1eae
Compare
no longer needed |
No description provided.