github-actions[bot] commented on code in PR #79:
URL:
https://github.com/apache/camel-upgrade-recipes/pull/79#discussion_r2815471998
##########
camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelTestUtil.java:
##########
@@ -137,4 +138,42 @@ public static Parser.Builder
parserFromClasspath(CamelVersion from, String... cl
.classpathFromResources(new InMemoryExecutionContext(),
resources.toArray(new String[0]));
}
+ /**
+ * Gets the quarkus version from the versions.properties file. (which is
populated during buildtime)
+ *
+ * @return the project version
+ */
+ public static String getCamelLatestVersion() {
+ return getString(
+ "camel.latest.version", "Could not determine camel latest
version from properties file.");
+ }
+ public static String getCamel410LtsVersion() {
Review Comment:
```suggestion
public static @Nullable String getCamelLatestVersion() {
public static @Nullable String getCamel410LtsVersion() {
public static @Nullable String getString(String key, String error) {
Properties properties = new Properties();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]