Skip to content

Commit a972655

Browse files
authored
CAMEL-22734: camel-jbang - Add both repo/repos and prop/property as option names (#20057)
1 parent a33fbac commit a972655

File tree

11 files changed

+13
-12
lines changed

11 files changed

+13
-12
lines changed

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyRuntime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class DependencyRuntime extends CamelCommand {
3939
@CommandLine.Parameters(description = "The pom.xml to analyze", arity = "1", paramLabel = "<pom.xml>")
4040
Path pomXml;
4141

42-
@CommandLine.Option(names = { "--repos" },
42+
@CommandLine.Option(names = { "--repo", "--repos" },
4343
description = "Additional maven repositories (Use commas to separate multiple repositories)")
4444
String repositories;
4545

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public abstract class ExportBaseCommand extends CamelCommand {
105105

106106
protected List<String> files = new ArrayList<>();
107107

108-
@CommandLine.Option(names = { "--repos" },
108+
@CommandLine.Option(names = { "--repo", "--repos" },
109109
description = "Additional maven repositories (Use commas to separate multiple repositories)")
110110
protected String repositories;
111111

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public class Run extends CamelCommand {
185185
split = ",")
186186
List<String> dependencies = new ArrayList<>();
187187

188-
@CommandLine.Option(names = { "--repos" },
188+
@CommandLine.Option(names = { "--repo", "--repos" },
189189
description = "Additional maven repositories (Use commas to separate multiple repositories)")
190190
String repositories;
191191

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/TransformMessageAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class TransformMessageAction extends ActionWatchCommand {
115115
description = "Pretty print message body when using JSon or XML format")
116116
boolean pretty;
117117

118-
@CommandLine.Option(names = { "--repos" },
118+
@CommandLine.Option(names = { "--repo", "--repos" },
119119
description = "Additional maven repositories (Use commas to separate multiple repositories)")
120120
String repositories;
121121

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogBaseCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public abstract class CatalogBaseCommand extends CamelCommand {
6464
defaultValue = "io.quarkus.platform")
6565
String quarkusGroupId = "io.quarkus.platform";
6666

67-
@CommandLine.Option(names = { "--repos" },
67+
@CommandLine.Option(names = { "--repo", "--repos" },
6868
description = "Additional maven repositories for download on-demand (Use commas to separate multiple repositories)")
6969
String repos;
7070

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/catalog/CatalogDoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class CatalogDoc extends CamelCommand {
8080
defaultValue = "io.quarkus.platform")
8181
String quarkusGroupId = "io.quarkus.platform";
8282

83-
@CommandLine.Option(names = { "--repos" },
83+
@CommandLine.Option(names = { "--repo", "--repos" },
8484
description = "Additional maven repositories for download on-demand (Use commas to separate multiple repositories)")
8585
String repos;
8686

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/update/CamelUpdateMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class CamelUpdateMixin {
7070
description = "Runtime (${COMPLETION-CANDIDATES})")
7171
RuntimeType runtime = RuntimeType.main;
7272

73-
@CommandLine.Option(names = { "--repos" },
73+
@CommandLine.Option(names = { "--repo", "--repos" },
7474
description = "Additional maven repositories for download on-demand (Use commas to separate multiple repositories)")
7575
String repos;
7676

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/update/UpdateList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
description = "List available update versions for Apache Camel and its runtime variants")
8585
public class UpdateList extends CamelCommand {
8686

87-
@CommandLine.Option(names = { "--repos" },
87+
@CommandLine.Option(names = { "--repo", "--repos" },
8888
description = "Additional maven repositories for download on-demand (Use commas to separate multiple repositories)")
8989
String repos;
9090

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/version/VersionSet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public class VersionSet extends CamelCommand {
3737
description = "Runtime (${COMPLETION-CANDIDATES})")
3838
RuntimeType runtime;
3939

40-
@CommandLine.Option(names = { "--repo", "--repos" }, description = "Maven repository for downloading the dependencies")
40+
@CommandLine.Option(names = { "--repo", "--repos" },
41+
description = "Maven repository for downloading the dependencies (Use commas to separate multiple repositories)")
4142
String repo;
4243

4344
@CommandLine.Option(names = { "--reset" }, description = "Reset by removing any custom version settings")

dsl/camel-jbang/camel-jbang-plugin-generate/src/main/java/org/apache/camel/dsl/jbang/core/commands/generate/CodeSchemaGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class CodeSchemaGenerator extends CamelCommand {
7777
description = "Whether to allow automatic downloading JAR dependencies (over the internet)")
7878
boolean download = true;
7979

80-
@CommandLine.Option(names = { "--repos" },
80+
@CommandLine.Option(names = { "--repo", "--repos" },
8181
description = "Additional maven repositories (Use commas to separate multiple repositories)")
8282
String repositories;
8383

0 commit comments

Comments
 (0)