Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern 2 - Split generated code and custom code does not work with files indicated in .yo-resolve file #24313

Closed
1 task done
jperezdelafuente opened this issue Nov 21, 2023 · 1 comment

Comments

@jperezdelafuente
Copy link
Contributor

Overview of the issue

When I have model changes and regenerate the project, the files that I indicate in the .yo-resolve file are not omitted and are regenerated with changes

https://www.jhipster.tech/tips/035_tip_combine_generation_and_custom_code.html#pattern-2---split-generated-code-and-custom-code

Motivation for or Use Case

Avoid overwriting custom files using .yo-resolve file when executing jhipster jdl model.jh

Reproduce the error
JHipster Version(s)

Jhipster 8.0.0

JHipster configuration
model.jh
application {
  config {
    applicationType monolith,
    baseName foo,
    packageName com.foo,
    jhiPrefix gsr,
    authenticationType session,
    databaseType sql,
    devDatabaseType h2Disk,
    prodDatabaseType oracle,
    enableHibernateCache true,
    cacheProvider ehcache,
    buildTool maven,
    testFrameworks [cypress, gatling, cucumber],
    clientFramework angular,
    enableTranslation true,
    nativeLanguage es,
    languages [es, en]
  }
  entities *
}

/** entity foo */
entity Foo(foo) {
foo String required maxlength(20)
}

./yo-resolve
pom.xml skip
  
  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Nov 21, 2023

Duplicate of #24244

@mshima mshima marked this as a duplicate of #24244 Nov 21, 2023
@mshima mshima closed this as completed Nov 21, 2023
@deepu105 deepu105 added this to the 8.1.0 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants