1. 13 Nov, 2019 3 commits
  2. 12 Nov, 2019 1 commit
  3. 08 Nov, 2019 2 commits
    • Andy Wilkinson's avatar
      3f0367e2
    • Andy Wilkinson's avatar
      Allow 5 seconds for child to handle SIGINT before destroying it · 5765cfe0
      Andy Wilkinson authored
      Previously, when RunProcess handled a SIGINT it would immediately
      attempt to destroy the process that it had run. This created a race
      condition between the SIGINT being handled by the child process
      and RunProcess destroying the child. The exact behavior of destroy
      is implementation dependent and it may result in forcible termination
      of the process where shutdown hooks are not called. This is what
      happens on Windows. The exit code in such a case is 1 which prevents
      anything from waiting for the process to complete from detecting
      that it ended as a result of a SIGINT, leaving it with no choice but
      to report an error. This is what happens with mvn spring-boot:run
      with a forked process on Windows and results in the build failing.
      
      This commit updates RunProcess to allow the child process to handle
      the SIGINT itself, waiting for up to five seconds for that to happen
      before the process is then destroyed. Given this time, the child
      process exits with 130 which RunMojo already handles correctly as
      indicating that the process died due to SIGINT and the build completes
      with success as a result.
      
      Fixes gh-18936
      5765cfe0
  4. 07 Nov, 2019 2 commits
    • Andy Wilkinson's avatar
      Trim whitespace in BasicJsonParser · a11661d2
      Andy Wilkinson authored
      Previously, whitespace in between the keys and values in the JSON was
      not trimmed correctly in BasicJsonParser which lead to it incorrectly
      parsing JSON with whitespace between the opening of a list ([) and the
      opening of a map ({).
      
      This commit updates the parser to trim unwanted whitespace and adds a
      test to AbstractJsonParserTests to verify the whitespace handling
      behaviour across all JsonParser implementations.
      
      Closes gh-18911
      a11661d2
    • Andy Wilkinson's avatar
      Fix @ServletComponentScan with a component index · d1ead884
      Andy Wilkinson authored
      Previously @ServletComponentScan did not work when there was a
      component index on the classpath as it made an assumption about
      the concrete type of the BeanDefinitions produced by scanning that
      does not hold true when an index is present.
      
      This commit updates the scanning and the handlers to correct the
      assumpution by working with a bean definition type that is produced
      by scanning both when there is and when there is not an index present.
      
      To prevent the problem from reoccuring, a test that uses and index
      has been added and the import of ScannedGenericBeanDefinition is now
      prohibited by Checkstyle.
      
      Closes gh-18910
      d1ead884
  5. 06 Nov, 2019 7 commits
  6. 05 Nov, 2019 17 commits
  7. 04 Nov, 2019 8 commits