1304 Commits

Author SHA1 Message Date
Dave Syer
8a1e39c4dc Remove unused annotation 2013-09-05 17:15:16 -07:00
Dave Syer
8c7c5d4dc9 Widen net for errors in vcap initializer 2013-09-05 17:15:15 -07:00
Phillip Webb
e2b3c03fc4 Refine LaunchedURLClassLoader load order
Refine the loading order of LaunchedURLClassLoader to consider the
root loader before locally bundled classes.

The prevents classes from locally bundled JARs from replacing system
classes.

Issue: #56232870
2013-09-05 17:15:15 -07:00
Phillip Webb
680741fdc8 Fix LaunchedURLClassLoader Java 1.6 compatibility 2013-09-05 17:15:15 -07:00
Phillip Webb
cd2c18965e Support javaagent instrumentation with loader
Update spring-boot-loader to allow `-javaagent` instrumentation when
running from executable jars.

Prior to this commit the `Launcher` skipped the application classloader
and instead used the system classloader as a parent. This was to ensure
that locally packaged classes were always loaded by the classloader
that had access to nested jars.  Unfortunately when using the
`-javaagent` option, it is the application classloader that is modified.

The `Launcher` class now uses the application classloader as parent
and `LaunchedURLClassLoader` has been updated to always search local
URLs before delegating to the parent. This is very similar to the way
that most application servers handle the loading of war files.

Issue: #56232870
2013-09-05 17:15:15 -07:00
Dave Syer
8bc06b4ee8 Add spring-messaging 2013-09-05 17:15:15 -07:00
Dave Syer
38e565e920 Back to SNAPSHOT for dev 2013-09-05 17:15:15 -07:00
Dave Syer
b634b3bde6 Update to 0.5.0.M2 2013-09-05 17:15:15 -07:00
Dave Syer
3753333deb Upgrade to Spring 4.0.0.M3 2013-09-05 17:15:14 -07:00
Dave Syer
5755b07e6c Switch roles of snake and echo
Snake is stateful so it should be one per connection. Echo is the
opposite.
2013-09-05 17:15:14 -07:00
Phillip Webb
347f30d135 Recognize @RestController as MVC Application
Update CLI SpringMvcCompilerAutoConfiguration to recognize Spring's new
@RestController annotation.
2013-09-05 17:15:14 -07:00
Phillip Webb
13f51b7901 Add version properties
Add version properties to dependencies POM so that users can easily
override. Also use consistent naming for all property keys.
2013-09-05 17:15:14 -07:00
Dave Syer
9ad0c59592 Add MANIFEST.MF to ignores 2013-09-05 17:15:10 -07:00
Dave Syer
c4223d645d Updated WebSocketAutoConfiguration to use @EnableWebSocket 2013-09-05 17:14:17 -07:00
Dave Syer
5fa0166dea Upgrade to Reactor 1.0.0.M2 2013-09-05 17:14:17 -07:00
Dave Syer
082678d660 Use echo+exit instead of die 2013-09-05 17:14:17 -07:00
Phillip Webb
2c94dcdc8c Polish 2013-09-05 17:14:16 -07:00
Phillip Webb
1d4f86452f Use web-starter for CLI MVC compiler auto-config 2013-09-05 17:14:16 -07:00
Phillip Webb
6a227a2298 Move non-inherited JPA @Condition annotations
Move JPA @Condition annotations from JpaBaseConfiguration to
HibernateJpaAutoConfiguration since they are not inherited.
2013-09-05 17:14:16 -07:00
Phillip Webb
5b7d56895b Provide accurate InputStream.available() results
Provide accurate InputStream.available() results by using the size
attribute of the ZipEntry. This helps improve performance with
CGLib and also fixes issues where libraries expect that a non-zero
result from available() indicates that read() will not return -1.
2013-09-05 17:14:16 -07:00
Phillip Webb
cb7cc3991b Make data-jpa conditional on DataSource bean 2013-09-05 17:14:16 -07:00
Phillip Webb
4fd7fc015e Include note about MAVEN_OPTS 2013-09-05 17:14:15 -07:00
Phillip Webb
63f80d0ec1 Include note about MAVEN_OPTS 2013-09-05 17:14:15 -07:00
Phillip Webb
f7b69fd009 Add maven-compler-plugin to starter POM
Add maven-compler-plugin to starter POM in an attempt to fix drone.io
errors downstream.
2013-09-05 17:14:15 -07:00
Phillip Webb
f9439a2343 Add travis CI build status image 2013-09-05 17:14:15 -07:00
Biju Kunjummen
29afcb7898 Added an @Execute annotation to RunMojo
Update RunMojo to include an @Execute annotation. Allows the use of
`mvn spring-boot:run` without having to compile/package first. Now a
command like `mvn clean spring-boot:run` works.

The phase for @Execute annotation is along the lines of what is used
for the `jetty:run` plugin.
2013-09-05 17:14:15 -07:00
Phillip Webb
47d0ba5c8e Remove superfluous ivy log output 2013-09-05 17:14:15 -07:00
Phillip Webb
0a9d7c6ef2 Use managed spring-integration-groovy-dsl
Update SpringIntegrationCompilerAutoConfiguration to use the managed
version of spring-integration-groovy-dsl.
2013-09-05 17:14:15 -07:00
Phillip Webb
4ad3d30a40 Fixup CLI POM
Fix classloader issues by excluding spring JARs from test classpath
and also include spring-integration-groovy-dsl as a managed dependency.
2013-09-05 17:14:15 -07:00
Phillip Webb
0d75995aed Polish JSR-303 detection 2013-09-05 17:14:14 -07:00
Phillip Webb
a08aac6fa5 Travis CI tweaks 2013-09-05 17:14:14 -07:00
Phillip Webb
c999541fd3 Set source/target version to 1.6 for int. tests 2013-09-05 17:14:14 -07:00
Phillip Webb
e6d9922cbc Stream maven-invoker-plugin logs 2013-09-05 17:14:14 -07:00
Phillip Webb
1434c83694 Fix NoClassDefFoundError with OutputCapture 2013-09-05 17:14:14 -07:00
Daniel L. Buchko
7ecb99757b Prevent test failures under Windows
Cleaned up file separators to prevent tests failing on Windows.
2013-09-05 17:14:14 -07:00
Daniel L. Buchko
3c5fa0daa0 Fixed handling of spaces in file paths
Update Launcher to correctly handle spaced in file paths.
2013-09-05 17:14:14 -07:00
Phillip Webb
8682d7a829 Use OutputCapture for log tests and disable ANSI
Refactor JavaLoggerSystemTests to make use of OutputCapture and ensure
that captured output never includes ANSI symbols.
2013-09-05 17:14:13 -07:00
Adrian Pillinger
f15eed6f02 Fixing typo in the documentation that incorrectly named a property.
The spring property should have been spring.profiles.active instead of
spring.active.profiles.
2013-09-05 17:14:13 -07:00
Phillip Webb
f7ce153ff0 Fix JSP EL support with Tomcat
Fix TomcatEmbeddedServletContainerFactory to set a MERGED_WEB_XML
attribute when JSPs are used. This is required for EL support with
JSPs since Jasper checks the version number in the web.xml. Without
any web.xml Jasper default to disabling EL.

Issue: #55752948
2013-09-05 17:14:13 -07:00
Phillip Webb
1db12f5912 Delegate ClassLoader with Tomcat
Use standard class loading delegation with Tomcat.
2013-09-05 17:14:13 -07:00
Phillip Webb
1c1f36c4ce Add support for web-jar resources
Include resource mapping for web-jar resources.

Issue: #55752928
2013-09-05 17:14:13 -07:00
Phillip Webb
37d136dcb6 Add config file property sources after existing
Change ConfigFileApplicationContextInitializer to add config file
property sources after existing sources. This allows environment
variables and system properties to override file properties.

Issue: #55739594
2013-09-05 17:14:13 -07:00
Biju Kunjummen
21766b8183 Added Joda-time managed dependency 2013-09-05 17:14:13 -07:00
Phillip Webb
a95494fe61 Remove '/resources/**' mapping and default servlet
Remove '/resources/**' mapping since it can cause problems with the
'/**' when the developer defines their own 'resources' sub-folder.

Also remove default servlet config since the resources mapping renders
it redundant.

Issue: #55494446
2013-09-05 17:14:13 -07:00
Dave Syer
e294e67d12 Remove compiler warnings 2013-09-05 17:14:12 -07:00
Phillip Webb
6edc7570c1 Added 'Application started in XX seconds' logging
Added logging to INFO SpringApplication to log when the application has
fully started and how long it took to load.
2013-09-05 17:14:12 -07:00
Phillip Webb
cbb95e3e25 Update logging to check level is enabled 2013-09-05 17:14:12 -07:00
Phillip Webb
0fa0082b2a Support for liquibase in executable jars
Create LiquibaseServiceLocatorInitializer to replace the standard
liquibase classpath scanning logic with SpringPackageScanClassResolver
which will work correctly in Spring Boot packaged executable JARs.

Issue: #55580628
2013-09-05 17:14:12 -07:00
Phillip Webb
5e6260ec5a Polish pattern resolving in BeanDefinitionLoader 2013-09-05 17:14:12 -07:00
Phillip Webb
be79da139e Code formatting 2013-09-05 17:14:12 -07:00