Skip to content

Commit

Permalink
gradle script update
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Aug 26, 2024
1 parent f2a8c48 commit cbdf1db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,5 +539,5 @@ export class GumbyController {
*/
function extractPath(text: string): string | undefined {
const resolvedPath = path.resolve(text.trim())
return fs.existsSync(resolvedPath) && fs.lstatSync(resolvedPath).isDirectory() ? resolvedPath : undefined
return fs.existsSync(resolvedPath) ? resolvedPath : undefined
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ export async function compileProject() {
}
await prepareProjectDependencies(dependenciesFolder, transformByQState.getProjectPath())
} catch (err) {
getLogger().error('CodeTransformation: compileProject failed due to: ' + err)
getLogger().error(
`CodeTransformation: compileProject with ${transformByQState.getBuildSystem()} failed due to: ` + err

Check failure on line 169 in packages/core/src/codewhisperer/commands/startTransformByQ.ts

View workflow job for this annotation

GitHub Actions / Lint (16.x, stable)

Invalid operand for a '+' operation. Operands must each be a number or string, allowing a string + any of: `any`, `boolean`, `null`, `RegExp`, `undefined`. Got `unknown`
)
throw err
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,7 @@ export async function prepareProjectDependencies(dependenciesFolder: FolderInfo
// dependenciesFolder always exists for Maven
await prepareMavenProjectDependencies(dependenciesFolder!, projectPath)
} else if (transformByQState.getBuildSystem() === BuildSystem.Gradle) {
try {
await prepareGradleProjectDependencies()
} catch (err) {
getLogger().info('CodeTransformation: gradle_copy_deps.py failed, terminating the transformation job')
throw err
}
await prepareGradleProjectDependencies()
}
}

Expand Down

0 comments on commit cbdf1db

Please sign in to comment.