Skip to content

Commit

Permalink
Overwrite existing resources if any.
Browse files Browse the repository at this point in the history
We should do this, since we do not have the ability to
prompt the user for every overwrite.
  • Loading branch information
VineetReynolds committed Mar 29, 2014
1 parent 9db9d63 commit 239a203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public CopyResourcesStrategy(WebResourcesFacet web, boolean overwrite)
public Resource execute(ScaffoldResource scaffoldResource)
{
return ScaffoldUtil.createOrOverwrite(web.getWebResource(scaffoldResource.getDestination()), getClass()
.getResourceAsStream(scaffoldResource.getSource()), overwrite);
.getResourceAsStream(scaffoldResource.getSource()), true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ public Resource execute(ScaffoldResource scaffoldResource)
throw new IllegalStateException(ioEx);
}
return ScaffoldUtil.createOrOverwrite(web.getWebResource(scaffoldResource.getDestination()),
output, overwrite);
output, true);
}
}

0 comments on commit 239a203

Please sign in to comment.