Skip to content

Commit

Permalink
remove some changes
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Jul 11, 2023
1 parent 49938dc commit e9b668b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ static ToolsException noModuleFoundError(String moduleName) {

String getThisModuleName() {
Build build = getProject().getBuild();
String sourceDirectory = build.getSourceDirectory().replace("\\", "/");
Path basePath = toBasePath(sourceDirectory);
String moduleName = toSuggestedModuleName(basePath, Path.of(sourceDirectory), true).orElseThrow();
Path basePath = toBasePath(build.getSourceDirectory());
String moduleName = toSuggestedModuleName(basePath, Path.of(build.getSourceDirectory()), true).orElseThrow();
if (isUnnamedModuleName(moduleName)) {
// try to recover it from a previous tooling step
String appPackageName = loadAppPackageName().orElse(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ List<Path> getSourceRootPaths() {
LinkedHashSet<Path> getClasspathElements() {
MavenProject project = getProject();
String testOutputDirectory = project.getBuild().getTestOutputDirectory();
testOutputDirectory = Strings.normalizePath(testOutputDirectory);
LinkedHashSet<Path> result = new LinkedHashSet<>(project.getTestArtifacts().size());
result.add(new File(testOutputDirectory).toPath());
for (Object a : project.getTestArtifacts()) {
Expand All @@ -119,10 +118,8 @@ LinkedHashSet<Path> getModulepathElements() {
@Override
String getThisModuleName() {
Build build = getProject().getBuild();
String testOutputDirectory = Strings.normalizePath(build.getTestOutputDirectory());
String testSourceDirectory = Strings.normalizePath(build.getTestSourceDirectory());
Path basePath = toBasePath(testSourceDirectory);
String moduleName = toSuggestedModuleName(basePath, Path.of(testOutputDirectory), true).orElseThrow();
Path basePath = toBasePath(build.getTestSourceDirectory());
String moduleName = toSuggestedModuleName(basePath, Path.of(build.getTestOutputDirectory()), true).orElseThrow();
return moduleName;
}

Expand Down

0 comments on commit e9b668b

Please sign in to comment.