GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Earlier detection of mkdirs failure (#201) · apache/maven-site-plugin@54faaa8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/main/java/org/apache/maven/plugins/site/descriptor
    • SiteDescriptorArtifactMetadata.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/main/java/org/apache/maven/plugins/site/descriptor/SiteDescriptorArtifactMetadata.java‎

Copy file name to clipboardExpand all lines: src/main/java/org/apache/maven/plugins/site/descriptor/SiteDescriptorArtifactMetadata.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactR
6969
File destination = new File(
7070
localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata(this, remoteRepository));
7171

72-
destination.getParentFile().mkdirs();
72+
if (!destination.getParentFile().mkdirs()) {
73+
throw new RepositoryMetadataStoreException(
74+
"Could not create artifact directory " + destination + " in local repository");
75+
}
7376

7477
try (Writer writer = new XmlStreamWriter(destination)) {
7578
new SiteXpp3Writer().write(writer, siteModel);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.