Skip to content

Commit

Permalink
Try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Apr 14, 2023
1 parent 334b166 commit 10144df
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ private ConfigurationHelper() throws IllegalAccessException {
*/
public static Map<String, String> loadAdditionalConfigs(File additionalConfigsFile) {
Map<String, String> additionalConfigs = new HashMap<>();
if (additionalConfigsFile != null && additionalConfigsFile.exists()) {
if (additionalConfigsFile != null && (!additionalConfigsFile.exists() || !additionalConfigsFile.isFile())) {
throw new IllegalArgumentException("File " + additionalConfigsFile + " is not a valid configuration file!");
}
if (additionalConfigsFile != null) {
try (var scanner = new Scanner(additionalConfigsFile, StandardCharsets.UTF_8)) {
while (scanner.hasNextLine()) {
var line = scanner.nextLine();
Expand Down
38 changes: 35 additions & 3 deletions tests/tests-default/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,45 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.github.ardoco.core</groupId>
<artifactId>common</artifactId>
<groupId>${project.groupId}</groupId>
<artifactId>text-extraction</artifactId>
</dependency>
<dependency>
<groupId>io.github.ardoco.core</groupId>
<groupId>${project.groupId}</groupId>
<artifactId>text-preprocessing</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>recommendation-generator</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>pipeline</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>connection-generator</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>model-provider</artifactId>
</dependency>
<dependency>
<groupId>io.github.ardoco.core</groupId>
<artifactId>inconsistency-detection</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions tests/tests-inconsistency/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
<groupId>${project.groupId}</groupId>
<artifactId>model-provider</artifactId>
</dependency>
<dependency>
<groupId>io.github.ardoco.core</groupId>
<artifactId>inconsistency-detection</artifactId>
</dependency>
<dependency>
<groupId>io.github.ardoco.core</groupId>
<artifactId>tests-base</artifactId>
Expand Down

0 comments on commit 10144df

Please sign in to comment.