File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments