Le 16/11/2021 à 20:36, Jacques Le Roux a écrit :
Tests OK but I had to change maxErrors to 39654 to pass checkstyle

Curious I checked checkstyle in R18, no problems at all [error:38524]:

   C:\projectsASF\Git\ofbiz-framework>gradlew --no-daemon clean build
    > Task :clean
    > Task :compileJava
    > Task :compileGroovy
    > Task :processResources
    > Task :classes
    > Task :jar
    > Task :assemble

    > Task :checkstyleMain
   Checkstyle rule violations were found. See the report at: 
file:///C:/projectsASF/Git/ofbiz-framework/build/reports/checkstyle/main.html
   Checkstyle files with violations: 1060
   Checkstyle violations by severity: [error:38524]


    > Task :compileTestJava
    > Task :compileTestGroovy
    > Task :processTestResources NO-SOURCE
    > Task :testClasses

    > Task :checkstyleTest
   Checkstyle rule violations were found. See the report at: 
file:///C:/projectsASF/Git/ofbiz-framework/build/reports/checkstyle/test.html
   Checkstyle files with violations: 6
   Checkstyle violations by severity: [error:34]


    > Task :test
    > Task :check
    > Task :build

   BUILD SUCCESSFUL in 1m 24s
   10 actionable tasks: 10 executed
   C:\projectsASF\Git\ofbiz-framework>

Then for 18.12.02 [error:39654]:

   Z:\apache-ofbiz-18.12.02>gradlew --no-daemon clean build
   To honour the JVM settings for this build a new JVM will be forked. Please 
consider using the daemon:
   https://docs.gradle.org/5.0-rc-5/userguide/gradle_daemon.html.
   Daemon will be stopped at the end of the build stopping after processing
    > Task :clean
    > Task :compileJava
    > Task :compileGroovy
    > Task :processResources
    > Task :classes
    > Task :jar
    > Task :assemble
    > Task :checkstyleMain FAILED

   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':checkstyleMain'.
    > Checkstyle rule violations were found. See the report at: 
file:///Z:/apache-ofbiz-18.12.02/build/reports/checkstyle/main.html
      Checkstyle files with violations: 1157
      Checkstyle violations by severity: [error:39654]


   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. Run with --scan to get full insights.

   * Get more help at https://help.gradle.org

   BUILD FAILED in 1m 15s
   6 actionable tasks: 6 executed

   Z:\apache-ofbiz-18.12.02>

I also checked the difference between *.java files: none. I tried to compare 
the main.html files, very hard to do.

I'm still not sure why I have this problem locally. That's weird, but not a 
generic problem.

Jacques

Reply via email to