Skip to content

Commit

Permalink
Refactored the requirements loading logic to avoid a Windows-related …
Browse files Browse the repository at this point in the history
…issue
  • Loading branch information
wakaleo committed Sep 14, 2023
1 parent 6fbe567 commit 5e2b8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public Set<String> getRootDirectoryPaths() {
} else {
rootDirectories = firstDefinedOf(
getRootDirectoryFromClasspath(),
getGradleProjectDirectoryAsSet(),
getFileSystemDefinedDirectory(),
getRootDirectoryFromWorkingDirectory()
// getGradleProjectDirectoryAsSet()
);
}

Expand Down Expand Up @@ -180,24 +180,6 @@ private Set<String> getFileSystemDefinedDirectory() {
return new HashSet<>();
}

// private Set<String> getGradleProjectDirectoryAsSet() {
//
// String gradleProjectDir = getGradleProjectDirectory();
// String gradleResourceDir;
// if (gradleProjectDir != null && new File(gradleProjectDir).isAbsolute()) {
// gradleResourceDir = new File(gradleProjectDir, "src/test/resources/features").getAbsolutePath();
// } else {
// gradleResourceDir = new File(gradleProjectDir, rootDirectoryPath).getAbsolutePath();
// }
//
// if (gradleProjectDir != null) {
// Set<String> directory = new HashSet<>();
// directory.add(gradleResourceDir);
// return directory;
// }
// return new HashSet<>();
// }

private Set<String> getGradleProjectDirectoryAsSet() {

String gradleProjectDir = getGradleProjectDirectory();
Expand Down
2 changes: 1 addition & 1 deletion serenity-smoketests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>serenity-bdd</artifactId>
<groupId>net.serenity-bdd</groupId>
<version>4.0.3-SNAPSHOT</version>
<version>4.0.6-SNAPSHOT</version>
</parent>
<artifactId>serenity-smoketests</artifactId>
<packaging>jar</packaging>
Expand Down

0 comments on commit 5e2b8e3

Please sign in to comment.