extractProject() — spring-boot Function Reference
Architecture documentation for the extractProject() function in ProjectGenerator.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD cad00a62_1149_ff06_09ba_cd11a292e928["extractProject()"] e0179de4_bf5b_0060_a460_319095eca217["generateProject()"] e0179de4_bf5b_0060_a460_319095eca217 -->|calls| cad00a62_1149_ff06_09ba_cd11a292e928 badd8d3c_4bb1_7452_61e8_6c05acdaf9ba["extractFromStream()"] cad00a62_1149_ff06_09ba_cd11a292e928 -->|calls| badd8d3c_4bb1_7452_61e8_6c05acdaf9ba 8f36934f_ee48_a2ea_beae_21f83f352b18["fixExecutableFlag()"] cad00a62_1149_ff06_09ba_cd11a292e928 -->|calls| 8f36934f_ee48_a2ea_beae_21f83f352b18 fc88690e_99c9_f856_76c6_c71d50291cb8["info()"] cad00a62_1149_ff06_09ba_cd11a292e928 -->|calls| fc88690e_99c9_f856_76c6_c71d50291cb8 style cad00a62_1149_ff06_09ba_cd11a292e928 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java lines 95–109
private void extractProject(ProjectGenerationResponse entity, @Nullable String output, boolean overwrite)
throws IOException {
File outputDirectory = (output != null) ? new File(output) : new File(System.getProperty("user.dir"));
if (!outputDirectory.exists()) {
outputDirectory.mkdirs();
}
byte[] content = entity.getContent();
Assert.state(content != null, "'content' must not be null");
try (ZipInputStream zipStream = new ZipInputStream(new ByteArrayInputStream(content))) {
extractFromStream(zipStream, overwrite, outputDirectory);
fixExecutableFlag(outputDirectory, "mvnw");
fixExecutableFlag(outputDirectory, "gradlew");
Log.info("Project extracted to '" + outputDirectory.getAbsolutePath() + "'");
}
}
Domain
Subdomains
Calls
- extractFromStream()
- fixExecutableFlag()
- info()
Called By
Source
Frequently Asked Questions
What does extractProject() do?
extractProject() is a function in the spring-boot codebase.
What does extractProject() call?
extractProject() calls 3 function(s): extractFromStream, fixExecutableFlag, info.
What calls extractProject()?
extractProject() is called by 1 function(s): generateProject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free