forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the metadata annotation processor to support incremental builds
This commit udpdates the metadata annotation processor so that change data from an incremental build is merged with the metadata from the previous build. Closes spring-projectsgh-2321
- Loading branch information
1 parent
ccb2828
commit 8df43a8
Showing
10 changed files
with
710 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...-processor/src/test/java/org/springframework/boot/configurationprocessor/BuildResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2012-2015 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.springframework.boot.configurationprocessor; | ||
|
||
import java.util.Set; | ||
|
||
import org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata; | ||
|
||
/** | ||
* Data object containing information about a finished build. | ||
* | ||
* @author Kris De Volder | ||
*/ | ||
public class BuildResult { | ||
|
||
public final ConfigurationMetadata metadata; | ||
|
||
public final Set<String> processedTypes; | ||
|
||
public final boolean isIncremental; | ||
|
||
public BuildResult(boolean isIncremental, ConfigurationMetadata metadata, | ||
Set<String> processedTypes) { | ||
this.isIncremental = isIncremental; | ||
this.metadata = metadata; | ||
this.processedTypes = processedTypes; | ||
} | ||
|
||
public BuildResult(TestConfigurationMetadataAnnotationProcessor processor) { | ||
this(processor.isIncremental(), processor.getMetadata(), | ||
processor.processedSourceTypes); | ||
} | ||
|
||
} |
Oops, something went wrong.