Skip to content

Commit

Permalink
logs to see if files are copied
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbysunil14 committed Dec 17, 2024
1 parent 84bdda9 commit b9c731f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/GradleSingleModJakartaLSTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,18 @@ describe('LSP4Jakarta LS test for snippet test', () => {
});

function copyFolderContents(sourceFolder: string, destinationFolder: string): void {
console.log('source folder', sourceFolder);
if (!fs.existsSync(sourceFolder)) {
throw new Error('Source folder does not exist');
}

if (!fs.existsSync(destinationFolder)) {
fs.mkdirSync(destinationFolder);
}
console.log('destination folder', destinationFolder);

const files = fs.readdirSync(sourceFolder);
console.log('files to copy', files);

for (const file of files) {
const sourcePath = path.join(sourceFolder, file);
Expand Down

0 comments on commit b9c731f

Please sign in to comment.