Skip to content

Commit

Permalink
Merge pull request #1266 from avano/jbang-app-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
avano authored Dec 4, 2024
2 parents 061a0e4 + 1ebe4df commit 9e2fbd7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public static void createAdditionalClasses(AbstractIntegrationBuilder<?> integra
* @param appDir app directory
*/
public static void createApplicationProperties(AbstractIntegrationBuilder<?> integrationBuilder, Path appDir) {
Path propertiesFile = appDir.resolve("src/main/resources/application.properties");
appDir = integrationBuilder.isJBang() ? appDir : appDir.resolve("src/main/resources");
Path propertiesFile = appDir.resolve("application.properties");

if (propertiesFile.toFile().exists()) {
// If the file already exists, append newline first in case the file does not end with a newline
Expand Down

0 comments on commit 9e2fbd7

Please sign in to comment.