writeProject() — spring-boot Function Reference
Architecture documentation for the writeProject() function in ProjectGenerator.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b7a98a55_de52_9632_d05c_7f67366239c3["writeProject()"] e0179de4_bf5b_0060_a460_319095eca217["generateProject()"] e0179de4_bf5b_0060_a460_319095eca217 -->|calls| b7a98a55_de52_9632_d05c_7f67366239c3 fc88690e_99c9_f856_76c6_c71d50291cb8["info()"] b7a98a55_de52_9632_d05c_7f67366239c3 -->|calls| fc88690e_99c9_f856_76c6_c71d50291cb8 style b7a98a55_de52_9632_d05c_7f67366239c3 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 139–155
private void writeProject(ProjectGenerationResponse entity, String output, boolean overwrite) throws IOException {
File outputFile = new File(output);
if (outputFile.exists()) {
if (!overwrite) {
throw new ReportableException(
"File '" + outputFile.getName() + "' already exists. Use --force if you want to "
+ "overwrite or specify an alternate location.");
}
if (!outputFile.delete()) {
throw new ReportableException("Failed to delete existing file " + outputFile.getPath());
}
}
byte[] content = entity.getContent();
Assert.state(content != null, "'content' must not be null");
FileCopyUtils.copy(content, outputFile);
Log.info("Content saved to '" + output + "'");
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeProject() do?
writeProject() is a function in the spring-boot codebase.
What does writeProject() call?
writeProject() calls 1 function(s): info.
What calls writeProject()?
writeProject() 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