1. 14 Jan, 2014 1 commit
  2. 13 Jan, 2014 3 commits
  3. 12 Jan, 2014 2 commits
  4. 11 Jan, 2014 4 commits
    • Dave Syer's avatar
      Ensure SpringApplication closes its ApplicationContext · c349cb66
      Dave Syer authored
      ...even if the CommandLineRunners fail and we drop to the error
      handling path.
      
      Fixes gh-211
      c349cb66
    • Dave Syer's avatar
      Only run InitCommand if there is code to process · 420fc699
      Dave Syer authored
      This appears to be a significant improvement in performance
      (checking for the existence of init.grooy is cheap, but compiling
      it is expensive).
      
      I'm going to say this fixes gh-212.
      420fc699
    • Dave Syer's avatar
      Revert CLI to JarLauncher · 322af41d
      Dave Syer authored
      Affects gh-212
      322af41d
    • Phillip Webb's avatar
      Protect against JARs with different local headers · d125357b
      Phillip Webb authored
      Fix JarEntryData to re-read the local header, rather than relying on
      the central directory record.
      
      This protects against the situation where a JAR file is written with an
      'Extra Field Length' that is different in the local header to the
      central directory header.
      
      This appears to be the case with aspectj 1.7.4 which contains the
      following central directory file header for ProceedingJoinPoint:
      
      	50 4B 01 02     signature
      	14 03           version made by
      	0A 00           version required
      	00 00           general
      	08 00           compress methods
      	0E 40 59 43     last modified
      	2D 59 20 70     crc
      	EC 00 00 00     csize
      	8D 01 00 00     size
      	2A 00           fname len
      	00 00           ext field len
      	00 00           file comment len
      	00 00           disk num
      	00 00           int file att
      	00 00 A4 81     ext file att
      	97 F3 00 00     relative offset of the local file header
      	...             file name
      
      and the following local header:
      
      	50 4B 03 04     signature
      	0A 00           version required
      	00 00           general
      	08 00           compress method
      	0E 40 59 43     last modified
      	2D 59 20 70     crc
      	EC 00 00 00     csize
      	8D 01 00 00     size
      	2A 00           fname len
      	14 00           ext field len
      	...             file name
      	...             extra field
      
      Note that the 'ext field len' is 0x00 in the central record but 0x14 in
      the local record.
      
      Fixes gh-203
      d125357b
  5. 10 Jan, 2014 11 commits
  6. 09 Jan, 2014 10 commits
  7. 08 Jan, 2014 9 commits
    • Dave Syer's avatar
      Change algorithm for determining active profile from external config · 478e6557
      Dave Syer authored
      Instead of adding active prpfiles for every one we encounter, we need to
      build up a complete "default" Environment and then ask it what the active
      profiles are. Implemented in ConfigFileApplicationListener.
      
      Fixes gh-198
      478e6557
    • Dave Syer's avatar
    • Dave Syer's avatar
      TestUtils -> SpringBootTestUtils · 561cb3a5
      Dave Syer authored
      561cb3a5
    • Andy Wilkinson's avatar
      Use a single <manifestEntries> element · 73b98997
      Andy Wilkinson authored
      Previously, there were two <manifestEntries> elements in the CLI's
      pom.xml. With certain versions of Maven, this appeared to cause the
      first element to be ignored in favour of the second. The problem did
      not occur when built locally with Maven 3.1.1, but did occur when built
      by Bamboo which, I believe, uses 3.0.x
      
      This commit combines the two <manifestEntries> into one.
      73b98997
    • Andy Wilkinson's avatar
      Revert "Test that auto configurations can be added by init scripts" · 9a5be9f4
      Andy Wilkinson authored
      The test passes locally, both in Eclipse and on the command line, but
      fails on the CI server. Revert the addition of the test while I
      hopefully figure out why.
      
      This reverts commit 2e81b1d0.
      9a5be9f4
    • Andy Wilkinson's avatar
      Reinstate ./repository as a "remote" repository · a010de95
      Andy Wilkinson authored
      The grab command downloads the dependencies of one or more Groovy
      scripts to ./repository. This commit ensures that those previously
      downloaded dependencies can be used by a subsequent invocation of the
      run command.
      
      The location and behaviour of the local cache is unaffected by this
      change. If the dependencies in ./repository do not exist in the local
      cache, Aether will "download" them from ./repository and store them in
      the local cache.
      
      Fixes #191
      a010de95
    • Andy Wilkinson's avatar
      Add support for configuring Aether via settings.xml · a58e4cbb
      Andy Wilkinson authored
      Previously, Aether's configuration was largely hard-coded making it
      impossible to configure a mirror, provide credentials for accessing
      a repository, etc.
      
      This commit adds support for configuring Aether via Maven's
      settings.xml file. The support is optional and must be enabled by
      grabbing spring-boot-maven-settings in an init script. The Aether
      instance that's used when running the application will then be
      configured using settings.xml. The settings file is expected to be
      found in ${user.home}/.m2/settings.xml.
      
      The configuration of the following items is currently supported:
      
       - Offline
       - Proxies
       - Mirrors
       - Server authentication
       - Local repository location
      
      If the support is not enabled, settings.xml does not exist, or
      settings.xml does not configure certain things then sensible defaults
      are applied.
      a58e4cbb
    • Andy Wilkinson's avatar
      Test that auto configurations can be added by init scripts · 2e81b1d0
      Andy Wilkinson authored
      When an init command is run, it may add entries to the classpath. This
      commit adds a test that verifies that, if an entry that is added to
      the classpath contains a CompilerAutoConfiguration file in
      META-INF/services, then the CompilerAutoConfigurations declared in it
      are found by subsequent ServiceLoader.load calls.
      2e81b1d0
    • Dave Syer's avatar
      TestUtils -> SpringBootTestUtils · 321ce3aa
      Dave Syer authored
      321ce3aa