Commit Graph

2548 Commits

Author SHA1 Message Date
Phillip Webb 35b26b52f2 Add caching to JarFile.getUrl()
Fixes gh-1178
2014-06-26 11:23:35 -07:00
Phillip Webb 200cd535c2 Revert "Next development version"
This reverts commit 67189477fe.
2014-06-26 11:03:09 -07:00
Spring Buildmaster 67189477fe Next development version 2014-06-26 10:51:35 -07:00
Phillip Webb 9632abf825 Formatting and cleanup 2014-06-26 09:41:15 -07:00
Phillip Webb cd77bae3b2 Remove version from ant-run plugin
No need as picked up from the parent.
2014-06-26 09:32:26 -07:00
Dave Syer 123ffd736c Exclude @ManagedResources from Endpoint MBeans
If an Endpoint is already @ManagedResource then it doesn't need
an additional (probably wrong) MBEan registration based on the invoke()
method.
2014-06-26 16:11:56 +01:00
Dave Syer c0305ecbbb Take care registering DataSourceInitializer
The DataSourceInitializer is instantiated early by the
DataSourceInitializerPostProcessor, so it has to live in
isolation (in its own @Configuration) to prevent early
instantiation of the DataSourceAutoConfiguration.

Fixes gh-1166
2014-06-26 09:49:44 +01:00
Dave Syer 24c0fce0f0 Add antrun plugin version 2014-06-26 09:49:44 +01:00
Phillip Webb e220f0806a Attempt to fix Windows CI 2014-06-25 17:25:31 -07:00
Phillip Webb 8be3f33cfb Be defensive detecting when Mono not running 2014-06-25 17:05:28 -07:00
Phillip Webb b01c1d36ae Attempt to fix Windows CI 2014-06-25 16:40:20 -07:00
Phillip Webb e383d13ad9 Attempt to fix Windows CI 2014-06-25 16:32:16 -07:00
Phillip Webb 6311ae191f Throw exception on stop failure
Trying to fix the Windows CI build
2014-06-25 16:21:33 -07:00
Phillip Webb 03b281278a Trying to break windows build 2014-06-25 16:20:39 -07:00
Phillip Webb d4ad67af44 Relax expected exception when connection fails
Exception appears to be different on Windows JVMs
2014-06-25 16:10:02 -07:00
Phillip Webb 7e7733d45d Deal with spaces in file references
Fixes gh-1169
2014-06-25 15:43:07 -07:00
Phillip Webb 7654259f80 Fix JarFile issues when running on Windows
Fix 'fat jar' support for windows to correctly deal with URL and path
slash issues. The root cause of the original problem was caused by JAR
URLs not including a root slash (ie `file:C:/Users` vs `file:/C:/Users`)

Fixes gh-1145
2014-06-25 14:32:31 -07:00
Phillip Webb 1f36d4657f Fix various Windows related issues
Fixes gh-1168
2014-06-25 14:31:41 -07:00
Dave Syer 43cf95b845 Tidy up (remove unneeded property) RepackageTask 2014-06-25 13:33:26 +01:00
Dave Syer 5d317f2dc7 Reflection hack for Tomcat 8 API change
Fixes gh-1148
2014-06-25 11:35:44 +01:00
Andy Wilkinson fda24b8499 Upgrade to Jedis 2.4.2
Closes #1162
2014-06-25 10:31:46 +01:00
Andy Wilkinson 752e3c58ec Upgrade to H2 1.3.176
Closes #1161
2014-06-25 10:31:45 +01:00
Andy Wilkinson 834af12725 Upgrade to HikariCP 1.3.9
Closes #1160
2014-06-25 10:31:25 +01:00
Andy Wilkinson 646458dd51 Upgrade to WSDL4J 1.6.3
Closes #1159
2014-06-25 10:30:24 +01:00
Andy Wilkinson 7ae58eb21a Upgrade to mongo-java-driver 2.12.2
Closes #1158
2014-06-25 10:30:24 +01:00
Andy Wilkinson 80cf7a106d Upgrade to Jolokia 1.2.2
Closes #1157
2014-06-25 10:30:24 +01:00
Andy Wilkinson 2f414bedce Upgrade to Hibernate 4.3.5
Closes #1156
2014-06-25 10:30:24 +01:00
Andy Wilkinson 2ddc34350b Upgrade to CRaSH 1.3.0
Closes #1155
2014-06-25 10:30:12 +01:00
Andy Wilkinson 3352327442 Upgrade to AspectJ 1.8.1
Closes #1154
2014-06-25 10:14:56 +01:00
Andy Wilkinson 9cd54196ec Upgrade HTTP components to 4.3.4
Closes #1153
2014-06-25 10:14:19 +01:00
Andy Wilkinson f326d1f18f Upgrade to thymeleaf-layout-dialect 1.2.5
Closes #1152
2014-06-25 10:13:36 +01:00
Andy Wilkinson 834c9e78b7 Upgrade to mysql-connector-java 5.1.31
Closes #1151
2014-06-25 10:12:54 +01:00
Andy Wilkinson c3eae015e9 Upgrade to Groovy 2.3.3
Closes #1150
2014-06-25 10:09:45 +01:00
Dave Syer b0bf9c776f Fix logic error in ErrorPageFilter (fixes gh-1149) 2014-06-25 08:47:24 +01:00
Phillip Webb 91bbd20ca0 Fixup version numbers following release 2014-06-24 14:53:08 -07:00
Spring Buildmaster 542f3cbda8 Next development version 2014-06-24 13:53:56 -07:00
Phillip Webb c4b22fc3d5 Attempt to fixup prepare stage for release 2014-06-24 13:32:46 -07:00
Phillip Webb af7f53d149 Attempt to fixup prepare stage for release 2014-06-24 13:14:22 -07:00
Phillip Webb 60ef031f78 Fix "signer information does not match" error
Update ExecutableArchiveLauncher so that `-cp` URLs are not added
when they are already contained as nested JARs. This prevents a
SecurityException "signer information does not match error" when using
signed jars. The root cause of the issue was that the primary JAR file
was on the default classpath with the URL "file:....jar" and in the
main URL set as "jar:file:....jar". It is now filtered so that only
the "jar:" variant is added.

Fixes gh-1134
2014-06-24 11:46:15 -07:00
Phillip Webb 1f1a7e0ed3 Polish 2014-06-24 11:46:15 -07:00
Dave Syer 0d5c30fdcc Add instance.uptime to VanillaPublicMetrics 2014-06-24 15:16:49 +01:00
Dave Syer 078e5425cd Avoid eager factory bean instantiation for container customizers 2014-06-24 14:52:38 +01:00
Dave Syer 999748bdab Fix some sloppy code in context hierarchy support
* The SpringApplicationBuilder was registering the parent context initializer
twice (not really a problem, but confusing if you are debugging).

* ParentContextApplicationContextInitializer itself should have been
checking that the current context is not the parent

* The EventPublishingRunListener as a result needs to call
setApplicationContext on any listeners that are AplicationContextAware

* ParentContextCloserApplicationListener can ensure that there is
only one of its kind per application context by implementing hashCode
and equals

Fixes gh-1142
2014-06-24 14:31:22 +01:00
Dave Syer d2b88d741c Re-register SpringApplication listeners in context once it is available
Fixes gh-1141
2014-06-24 11:18:14 +01:00
Dave Syer b2db3790de Improve test for JobLauncherCommandLineRunner (see gh-1125) 2014-06-24 10:39:28 +01:00
Phillip Webb 9f464e9c49 Merge branch 'gh-1070' 2014-06-24 01:05:11 -07:00
Phillip Webb f30b962ff9 Add support for unpacking nested JARs
Update the executable JAR code to automatically unpack any entries
which include an entry comment starting `UNPACK:` to the temp folder.
The existing Maven and Gradle plugins have been updated with new
configuration options and the `spring-boot-tools` project has been
updated to write the appropriate entry comment based on a flag passed
in via the `Library` class.

This support has been added to allow libraries such a JRuby (which
assumes that `jruby-complete.jar` is always accessible as file) to work
with Spring Boot executable jars.

Fixes gh-1070
2014-06-24 00:46:56 -07:00
Phillip Webb 5f8fbfd73a Add Library abstraction
Add a Library class update the LibraryCallback interface and
implementations to use it. This change is in preparation for
an addition `unpack` flag that will be required to allow the
automatic unpacking of certain nested jars.

See gh-1070
2014-06-24 00:34:19 -07:00
Phillip Webb 3d6c8a85f4 Allow URL resolution within nested JARs
Update JarURLConnection to allow the resolution of items within a nested
jar, even if the jarFile passed to the connection is several levels up.

This prevent a connection from incorrectly resolving an entry against
the wrong jar file.

See gh-1070
2014-06-23 22:35:37 -07:00
Phillip Webb 5de2661b43 Drop RepackageTask.getDependencies()
Drop `RepackageTask.getDependencies` from the gradle plugin in favor of
exposing `getLibraries()` and using the callback.
Drop getDependencies
2014-06-23 22:31:16 -07:00