Skip to content

Commit

Permalink
rename package folder to _package_
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 2, 2024
1 parent 6747aa7 commit 971daf4
Show file tree
Hide file tree
Showing 164 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/spring-boot/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default class extends BaseApplicationGenerator {
destinationFile = adjustTestContainersSpringContextCustomizerFactoryFile(destinationFile);
}

sourceFile = sourceFile.replace('/java/package/', '/java/_package_/');
sourceFile =
file.namespace === 'jhipster-kotlin:spring-boot' || isCommonFile(sourceFile)
? convertToKotlinFile(sourceFile)
Expand Down Expand Up @@ -508,6 +509,7 @@ export default class extends BaseApplicationGenerator {
for (const entity of entities.filter(entity => !entity.skipServer)) {
for (const field of entity.fields.filter(field => field.fieldIsEnum)) {
const enumInfo = {
...application,
...getEnumInfo(field, entity.clientRootFolder),
frontendAppName: entity.frontendAppName,
packageName: application.packageName,
Expand All @@ -520,7 +522,7 @@ export default class extends BaseApplicationGenerator {
{
templates: [
{
file: `${SERVER_MAIN_SRC_KOTLIN_DIR}package/domain/enumeration/Enum.kt`,
file: `${SERVER_MAIN_SRC_KOTLIN_DIR}_package_/domain/enumeration/Enum.kt`,
renameTo: () =>
`${SERVER_MAIN_SRC_KOTLIN_DIR}${entity.entityAbsoluteFolder}/domain/enumeration/${field.fieldType}.kt`,
},
Expand Down

0 comments on commit 971daf4

Please sign in to comment.