Created
August 9, 2018 16:55
-
-
Save ArturSkowronski/152dbd84c44a8cfbc7d4b920fe106db7 to your computer and use it in GitHub Desktop.
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
class BuildAndCacheApplicationLayerStep | |
implements AsyncStep<CachedLayerWithMetadata>, Callable<CachedLayerWithMetadata> { | |
/*(...)*/ | |
static ImmutableList<BuildAndCacheApplicationLayerStep> makeList( | |
ListeningExecutorService listeningExecutorService, | |
BuildConfiguration buildConfiguration, | |
SourceFilesConfiguration sourceFilesConfiguration, | |
Cache cache) { | |
/*(...)*/ | |
ImmutableList.Builder<BuildAndCacheApplicationLayerStep> buildLayerStepsBuilder = | |
ImmutableList.<BuildAndCacheApplicationLayerStep>builder() | |
.add( | |
new BuildAndCacheApplicationLayerStep( | |
"dependencies", | |
listeningExecutorService, | |
buildConfiguration, | |
LayerConfiguration.builder() | |
.addEntry( | |
sourceFilesConfiguration.getDependenciesFiles(), | |
sourceFilesConfiguration.getDependenciesPathOnImage()) | |
.build(), | |
cache)) | |
.add(new BuildAndCacheApplicationLayerStep("resources",/*(...)*/)) | |
.add(new BuildAndCacheApplicationLayerStep("classes",/*(...)*/)); | |
/*(...)*/ | |
if (!sourceFilesConfiguration.getSnapshotDependenciesFiles().isEmpty()) { | |
buildLayerStepsBuilder.add( | |
new BuildAndCacheApplicationLayerStep( | |
"snapshot-dependencies", /*(...)*/); | |
} | |
/*(...)*/ | |
if (buildConfiguration.getExtraFilesLayerConfiguration() != null) { | |
buildLayerStepsBuilder.add(/*(...)*/); | |
} | |
return buildLayerStepsBuilder.build(); | |
} | |
} | |
/*(...)*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment