Skip to content

Commit

Permalink
Update generator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Jul 31, 2024
1 parent 6ed7200 commit ab46db8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions generators/spring-boot/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ export default class extends BaseApplicationGenerator {
templateRoot = 'domain';
}
sourceFile = join(templateRoot, convertToKotlinFile(sourceFile));
if (namespace === 'jhipster-kotlin:spring-boot') {
sourceFile = sourceFile.replace('/package/', '/_package_/');
}

return {
...file,
Expand Down Expand Up @@ -457,8 +460,7 @@ export default class extends BaseApplicationGenerator {
'ActivityDTO.java',
].includes(sourceBasename)
? undefined
: // Use updated path
{ ...file, sourceFile: file.sourceFile.replace('/package/', '/_package_/') };
: file;
},
});
},
Expand Down Expand Up @@ -491,8 +493,7 @@ export default class extends BaseApplicationGenerator {
'EntitySearchRepository.java',
].includes(sourceBasename) || sourceBasename.startsWith('Entity.java.jhi')
? undefined
: // Use updated path
{ ...file, sourceFile: file.sourceFile.replace('/package/', '/_package_/') };
: file;
},
});
}
Expand Down

0 comments on commit ab46db8

Please sign in to comment.