From e0636f4dea3673901f067fcdb16461395f58893d Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 18 Oct 2020 00:14:39 +0200 Subject: [PATCH] Fixed configuration file extension with .conf. --- src/fr/devinsy/statoolinfos/build/Builder.java | 2 +- src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/build/Builder.java b/src/fr/devinsy/statoolinfos/build/Builder.java index 731e727..0a9f6ef 100644 --- a/src/fr/devinsy/statoolinfos/build/Builder.java +++ b/src/fr/devinsy/statoolinfos/build/Builder.java @@ -100,7 +100,7 @@ public class Builder target.add(input); // Save the build properties. - File targetFile = new File(buildDirectory, configurationFile.getName()); + File targetFile = new File(buildDirectory, configuration.getBuildInput().getName()); PathPropertyUtils.save(targetFile, target); } } diff --git a/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java b/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java index b4e14e5..30f1d5d 100644 --- a/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java +++ b/src/fr/devinsy/statoolinfos/cli/StatoolInfosCLI.java @@ -73,7 +73,7 @@ public final class StatoolInfosCLI { for (File file : input.listFiles()) { - if ((file.isFile()) && (file.getName().endsWith(".properties"))) + if ((file.isFile()) && (file.getName().endsWith(".conf"))) { result.add(file); }