[GRADLE-301] Improve search speed for settings file in hierarchical layouts Created: 04/Nov/08 Updated: 04/Jan/13 Resolved: 07/Nov/08 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 0.5 |
Type: | Improvement | ||
Reporter: | Hans Dockter | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 0 |
Description |
From a posting of Martin: I found the cause of the delay when debugging gradle and it's not the
So, no big problem, but I would replace the method in protected File findBeyondCurrentDir(StartParameter startParameter) { File searchDir = startParameter.getCurrentDir().getParentFile(); while (searchDir != null && startParameter.isSearchUpwards()) { File settingsFile = new File(searchDir, startParameter.getSettingsFileName()); if (settingsFile.exists() && settingsFile.isFile()) { return settingsFile; } searchDir = searchDir.getParentFile(); } return null; } |