Skip to content

Commit

Permalink
Clean up resource dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Oct 16, 2024
1 parent a521162 commit 32eb66a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/yamcs/maven/WebappMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ private void execNpm(String... args) throws MojoExecutionException {

private void copyDist() throws MojoExecutionException {
var targetDir = new File(webappOutputDirectory, project.getArtifactId() + "-webapp");
getLog().info("Copying " + webappOutputDirectory + " to " + targetDir);

// Cleanup previous builds
FileUtils.deleteQuietly(targetDir);

getLog().info("Copying " + webappDistRoot + " to " + targetDir);
try {
FileUtils.copyDirectory(webappDistRoot, targetDir);
} catch (IOException e) {
Expand Down

0 comments on commit 32eb66a

Please sign in to comment.