Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
0cf6efca
Commit
0cf6efca
authored
Jul 06, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
afd357f4
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
17 deletions
+21
-17
MailProperties.java
...ringframework/boot/autoconfigure/mail/MailProperties.java
+1
-0
MailSenderAutoConfiguration.java
.../boot/autoconfigure/mail/MailSenderAutoConfiguration.java
+4
-2
MailSenderAutoConfigurationTests.java
.../autoconfigure/mail/MailSenderAutoConfigurationTests.java
+1
-1
OAuth2AutoConfigurationTests.java
...nfigure/security/oauth2/OAuth2AutoConfigurationTests.java
+1
-1
appendix-configuration-metadata.adoc
...cs/src/main/asciidoc/appendix-configuration-metadata.adoc
+2
-1
ConfigurationMetadataAnnotationProcessor.java
...onprocessor/ConfigurationMetadataAnnotationProcessor.java
+2
-2
MetadataStore.java
...gframework/boot/configurationprocessor/MetadataStore.java
+4
-3
InvalidConfigurationMetadataException.java
...essor/metadata/InvalidConfigurationMetadataException.java
+3
-3
ConfigurationMetadataAnnotationProcessorTests.java
...cessor/ConfigurationMetadataAnnotationProcessorTests.java
+2
-2
RepackageMojo.java
...in/java/org/springframework/boot/maven/RepackageMojo.java
+1
-2
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mail/MailProperties.java
View file @
0cf6efca
...
@@ -131,4 +131,5 @@ public class MailProperties {
...
@@ -131,4 +131,5 @@ public class MailProperties {
public
void
setTestConnection
(
boolean
testConnection
)
{
public
void
setTestConnection
(
boolean
testConnection
)
{
this
.
testConnection
=
testConnection
;
this
.
testConnection
=
testConnection
;
}
}
}
}
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mail/MailSenderAutoConfiguration.java
View file @
0cf6efca
...
@@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.mail;
...
@@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.mail;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Properties
;
import
java.util.Properties
;
import
javax.activation.MimeType
;
import
javax.activation.MimeType
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
javax.mail.MessagingException
;
import
javax.mail.MessagingException
;
...
@@ -120,8 +121,8 @@ public class MailSenderAutoConfiguration {
...
@@ -120,8 +121,8 @@ public class MailSenderAutoConfiguration {
}
}
/**
/**
* Condition to trigger the creation of a {@link JavaMailSenderImpl}. This kicks
in if
* Condition to trigger the creation of a {@link JavaMailSenderImpl}. This kicks
* either the host or jndi name property is set.
*
in if
either the host or jndi name property is set.
*/
*/
static
class
MailSenderCondition
extends
AnyNestedCondition
{
static
class
MailSenderCondition
extends
AnyNestedCondition
{
...
@@ -161,6 +162,7 @@ public class MailSenderAutoConfiguration {
...
@@ -161,6 +162,7 @@ public class MailSenderAutoConfiguration {
}
}
}
}
}
}
}
}
}
}
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mail/MailSenderAutoConfigurationTests.java
View file @
0cf6efca
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
package
org
.
springframework
.
boot
.
autoconfigure
.
mail
;
package
org
.
springframework
.
boot
.
autoconfigure
.
mail
;
import
java.util.Properties
;
import
java.util.Properties
;
import
javax.mail.MessagingException
;
import
javax.mail.MessagingException
;
import
javax.mail.Session
;
import
javax.mail.Session
;
import
javax.naming.Context
;
import
javax.naming.Context
;
...
@@ -237,5 +238,4 @@ public class MailSenderAutoConfigurationTests {
...
@@ -237,5 +238,4 @@ public class MailSenderAutoConfigurationTests {
}
}
}
}
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/
SpringSecurity
OAuth2AutoConfigurationTests.java
→
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java
View file @
0cf6efca
...
@@ -100,7 +100,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
...
@@ -100,7 +100,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
* @author Greg Turnquist
* @author Greg Turnquist
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
SpringSecurity
OAuth2AutoConfigurationTests
{
public
class
OAuth2AutoConfigurationTests
{
private
static
final
Class
<?>
RESOURCE_SERVER_CONFIG
=
OAuth2ResourceServerConfiguration
.
class
;
private
static
final
Class
<?>
RESOURCE_SERVER_CONFIG
=
OAuth2ResourceServerConfiguration
.
class
;
...
...
spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc
View file @
0cf6efca
...
@@ -367,7 +367,6 @@ The table below summarizes the list of supported providers:
...
@@ -367,7 +367,6 @@ The table below summarizes the list of supported providers:
|===
|===
TIP: No more than one provider can be active for a given property but you can specify
TIP: No more than one provider can be active for a given property but you can specify
several providers if they can all manage the property _in some ways_. Make sure to place
several providers if they can all manage the property _in some ways_. Make sure to place
the most powerful provider first as the IDE must use the first one in the JSON section it
the most powerful provider first as the IDE must use the first one in the JSON section it
...
@@ -600,6 +599,8 @@ NOTE: The binder is not aware of the meta-data so if you provide that hint, you
...
@@ -600,6 +599,8 @@ NOTE: The binder is not aware of the meta-data so if you provide that hint, you
will still need to transform the bean name into an actual Bean reference using
will still need to transform the bean name into an actual Bean reference using
the `ApplicationContext`.
the `ApplicationContext`.
===== Spring profile name
===== Spring profile name
The **spring-profile-name** provider auto-completes the Spring profiles that are
The **spring-profile-name** provider auto-completes the Spring profiles that are
defined in the configuration of the current project.
defined in the configuration of the current project.
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor.java
View file @
0cf6efca
...
@@ -356,8 +356,8 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
...
@@ -356,8 +356,8 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
catch
(
FileNotFoundException
ex
)
{
catch
(
FileNotFoundException
ex
)
{
// No additional metadata
// No additional metadata
}
}
catch
(
InvalidConfigurationMetadataException
e
)
{
catch
(
InvalidConfigurationMetadataException
e
x
)
{
log
(
e
.
getKind
(),
e
.
getMessage
());
log
(
e
x
.
getKind
(),
ex
.
getMessage
());
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
logWarning
(
"Unable to merge additional metadata"
);
logWarning
(
"Unable to merge additional metadata"
);
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataStore.java
View file @
0cf6efca
...
@@ -21,13 +21,13 @@ import java.io.FileInputStream;
...
@@ -21,13 +21,13 @@ import java.io.FileInputStream;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
import
javax.annotation.processing.ProcessingEnvironment
;
import
javax.annotation.processing.ProcessingEnvironment
;
import
javax.tools.Diagnostic
;
import
javax.tools.Diagnostic
;
import
javax.tools.FileObject
;
import
javax.tools.FileObject
;
import
javax.tools.StandardLocation
;
import
javax.tools.StandardLocation
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata
;
import
org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata
;
import
org.springframework.boot.configurationprocessor.metadata.InvalidConfigurationMetadataException
;
import
org.springframework.boot.configurationprocessor.metadata.InvalidConfigurationMetadataException
;
import
org.springframework.boot.configurationprocessor.metadata.JsonMarshaller
;
import
org.springframework.boot.configurationprocessor.metadata.JsonMarshaller
;
...
@@ -87,8 +87,9 @@ public class MetadataStore {
...
@@ -87,8 +87,9 @@ public class MetadataStore {
return
null
;
return
null
;
}
}
catch
(
JSONException
ex
)
{
catch
(
JSONException
ex
)
{
throw
new
InvalidConfigurationMetadataException
(
"Invalid additional meta-data in '"
+
throw
new
InvalidConfigurationMetadataException
(
METADATA_PATH
+
"': "
+
ex
.
getMessage
(),
Diagnostic
.
Kind
.
ERROR
);
"Invalid additional meta-data in '"
+
METADATA_PATH
+
"': "
+
ex
.
getMessage
(),
Diagnostic
.
Kind
.
ERROR
);
}
}
finally
{
finally
{
in
.
close
();
in
.
close
();
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/InvalidConfigurationMetadataException.java
View file @
0cf6efca
...
@@ -19,8 +19,8 @@ package org.springframework.boot.configurationprocessor.metadata;
...
@@ -19,8 +19,8 @@ package org.springframework.boot.configurationprocessor.metadata;
import
javax.tools.Diagnostic
;
import
javax.tools.Diagnostic
;
/**
/**
* Thrown to indicate that some meta-data is invalid. Define the
* Thrown to indicate that some meta-data is invalid. Define the
severity to determine
*
severity to determine
whether it has to fail the build.
* whether it has to fail the build.
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
* @since 1.3.0
* @since 1.3.0
...
@@ -36,7 +36,7 @@ public class InvalidConfigurationMetadataException extends RuntimeException {
...
@@ -36,7 +36,7 @@ public class InvalidConfigurationMetadataException extends RuntimeException {
}
}
public
Diagnostic
.
Kind
getKind
()
{
public
Diagnostic
.
Kind
getKind
()
{
return
kind
;
return
this
.
kind
;
}
}
}
}
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java
View file @
0cf6efca
...
@@ -356,8 +356,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
...
@@ -356,8 +356,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
File
additionalMetadataFile
=
createAdditionalMetadataFile
();
File
additionalMetadataFile
=
createAdditionalMetadataFile
();
FileCopyUtils
.
copy
(
"Hello World"
,
new
FileWriter
(
additionalMetadataFile
));
FileCopyUtils
.
copy
(
"Hello World"
,
new
FileWriter
(
additionalMetadataFile
));
thrown
.
expect
(
IllegalStateException
.
class
);
th
is
.
th
rown
.
expect
(
IllegalStateException
.
class
);
thrown
.
expectMessage
(
"Compilation failed"
);
th
is
.
th
rown
.
expectMessage
(
"Compilation failed"
);
compile
(
SimpleProperties
.
class
);
compile
(
SimpleProperties
.
class
);
}
}
...
...
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java
View file @
0cf6efca
...
@@ -208,8 +208,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
...
@@ -208,8 +208,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
}
}
else
if
(!
source
.
equals
(
target
))
{
else
if
(!
source
.
equals
(
target
))
{
this
.
project
.
getArtifact
().
setFile
(
target
);
this
.
project
.
getArtifact
().
setFile
(
target
);
getLog
().
info
(
getLog
().
info
(
"Replacing main artifact "
+
source
+
" to "
+
target
);
"Replacing main artifact "
+
source
+
" to "
+
target
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment