Skip to content

Commit

Permalink
Support java source property being discovered as 1.x (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Feb 17, 2024
1 parent 1ca6d58 commit b5afcf3
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ protected void customizeParameters(Properties parameters) {
parameters.setProperty(ModelloParameterConstants.ENCODING, encoding);
}

if (javaSource != null) {
if (javaSource.startsWith("1.")) {
javaSource = javaSource.substring("1.".length());
}
} else {
if (javaSource == null) {
javaSource = discoverJavaSource();
}
if (javaSource.startsWith("1.")) {
javaSource = javaSource.substring("1.".length());
}
getLog().debug("javaSource=" + javaSource);
parameters.setProperty(ModelloParameterConstants.OUTPUT_JAVA_SOURCE, javaSource);

Expand Down

0 comments on commit b5afcf3

Please sign in to comment.