New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't create folder that already exists #1649
Conversation
if (webInfDir == null) { | ||
webInfDir = | ||
project.getFolder(WebProjectUtil.DEFAULT_WEB_PATH).getFolder(WebProjectUtil.WEB_INF); | ||
ResourceUtils.createFolders(webInfDir, new NullProgressMonitor()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The javadoc of createFolders
says you can pass null
for the monitor.
|
||
private StandardFacetInstallDelegate delegate = new StandardFacetInstallDelegate(); | ||
private IProgressMonitor monitor = new NullProgressMonitor(); | ||
private IProject project; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal, but this doesn't need to be a field, at least for now.
Codecov Report
@@ Coverage Diff @@
## master #1649 +/- ##
============================================
+ Coverage 71.88% 72.11% +0.22%
- Complexity 1400 1435 +35
============================================
Files 247 248 +1
Lines 9237 9381 +144
Branches 794 820 +26
============================================
+ Hits 6640 6765 +125
- Misses 2266 2279 +13
- Partials 331 337 +6
Continue to review full report at Codecov.
|
The new test seems flaky. The error looks interesting to me.
|
Looks like we need to investigate the flaky test failure.
I think this is what's going on: https://wiki.eclipse.org/FAQ_When_should_I_use_refreshLocal%3F |
That seems like the case! We actually have some other places we modify files without using Eclipse API (e.g., XSLT transformation in App Engine Standard project conversion and XML validation), so we need to revisit them too. |
Maybe we should look into createConfigFiles to see if it needs to call refereshLocal |
FYI, I've rerun this three times now and have seen any flakiness since the latest changes. |
I'm also thinking if |
Ping. This needs an approval. |
fix #1646