Keep autoprojects.properties in var, not var/cache, since it is not purely a cache. (Cf. #57798.)
1.1 --- a/autoproject.core/manifest.mf Thu Jul 21 13:00:56 2011 -0400
1.2 +++ b/autoproject.core/manifest.mf Wed Jul 27 17:53:24 2011 -0400
1.3 @@ -3,5 +3,5 @@
1.4 OpenIDE-Module: org.netbeans.modules.autoproject.core/1
1.5 OpenIDE-Module-Layer: org/netbeans/modules/autoproject/core/layer.xml
1.6 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/autoproject/core/Bundle.properties
1.7 -OpenIDE-Module-Specification-Version: 1.17
1.8 +OpenIDE-Module-Specification-Version: 1.18
1.9
2.1 --- a/autoproject.core/src/org/netbeans/modules/autoproject/spi/Cache.java Thu Jul 21 13:00:56 2011 -0400
2.2 +++ b/autoproject.core/src/org/netbeans/modules/autoproject/spi/Cache.java Wed Jul 27 17:53:24 2011 -0400
2.3 @@ -75,7 +75,12 @@
2.4 static {
2.5 String userdir = System.getProperty("netbeans.user");
2.6 if (userdir != null) {
2.7 - CACHE = new File(userdir, "var/cache/autoprojects.properties");
2.8 + File compatibilityLocation = new File(userdir, "var/cache/autoprojects.properties");
2.9 + if (compatibilityLocation.isFile()) {
2.10 + CACHE = compatibilityLocation;
2.11 + } else {
2.12 + CACHE = new File(userdir, "var/autoprojects.properties");
2.13 + }
2.14 } else {
2.15 CACHE = null;
2.16 }