Skip to content

Commit 86925a9

Browse files
JoshwinThomasIBMJoshwinThomasIBM
authored andcommitted
updated sibling file path
1 parent e0418d1 commit 86925a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/helperUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ export async function checkSiblingFilesInTargetOrBuildParent(filePath: string):
9999
// Determine the file type to look for (either pom.xml or build.gradle)
100100
if (filePath.endsWith('pom.xml')) {
101101
outputDir = 'target'; // For Maven projects, look for target directory
102-
siblingFilePath = path.join(currentDir, outputDir, 'pom.xml');
102+
siblingFilePath = path.join(currentDir, 'pom.xml');
103103
} else if (filePath.endsWith('build.gradle') || filePath.endsWith('settings.gradle')) {
104104
outputDir = 'build'; // For Gradle projects, look for build directory
105-
siblingFilePath = path.join(currentDir, outputDir, 'build.gradle');
105+
siblingFilePath = path.join(currentDir, 'build.gradle');
106106
} else {
107107
console.log("Invalid file type. Only 'pom.xml' or 'build.gradle' are supported.");
108108
return false;

0 commit comments

Comments
 (0)