Skip to content

Commit

Permalink
update commons-io
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Apr 15, 2024
1 parent 2a5d50e commit 5d95ecf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@
<version>3.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.cloud.tools.appengine.AppEngineException;
import com.google.cloud.tools.appengine.configuration.AppEngineWebXmlProjectStageConfiguration;
import com.google.common.io.MoreFiles;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -28,6 +27,7 @@
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import org.apache.commons.io.FileUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
Expand Down Expand Up @@ -58,7 +58,7 @@ public void stage() throws MojoExecutionException {
if (Files.exists(stagingDirectory)) {
stageMojo.getLog().info("Deleting the staging directory: " + stagingDirectory);
try {
MoreFiles.deleteRecursively(stagingDirectory);
FileUtils.deleteDirectory(stagingDirectory.toFile());
} catch (IOException ex) {
throw new MojoExecutionException("Unable to delete staging directory.", ex);
}
Expand Down

0 comments on commit 5d95ecf

Please sign in to comment.