This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
CacheDirectoryProvider is currently an SPI only. It would be nicer for clients to be able to call an API, which could also provide a fallback value in case the project's lookup supplies no implementation. Compare the other get* methods in ProjectUtils.
Created attachment 84614 [details] Proposed patch
Please review.
Created attachment 84615 [details] Slightly revised patch
looks ok. Why change the default location for ant projects?
Calling your comment MK01, I decided to change the default location for Ant-based projects to something a bit simpler (omit the /cache subdirectory) since the new API would anyway create a subdir for each interested module; the original choice of dir name was intended to prevent clashes with private.properties or private.xml. No strong opinion about this though. I should mention that issue #159642 is the reason for wanting to do this change now.
core-main #a09d4f52ed74
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a09d4f52ed74 User: Jesse Glick <jglick@netbeans.org> Log: Issue #168414: provide API complement to CacheDirectoryProvider with fallback impl.