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.
OpenIDE-Module-Requires:
javax.script.ScriptEngine.freemarker,
org.netbeans.api.javahelp.Help
OpenIDE-Module-Install: org/netbeans/modules/apisupport/project/Install.class
OpenIDE-Module-Layer: org/netbeans/modules/apisupport/project/ui/resources/layer.xml
OpenIDE-Module-Implementation-Version: 7
AutoUpdate-Show-In-Client: false
*/
public final class Install extends ModuleInstall {
public @Override void restored() {
final File install = NbPlatform.defaultPlatformLocation();
if (install != null) {
ProjectManager.mutex().writeAccess(new Mutex.Action<Void>() {
public Void run() {
EditableProperties p = PropertyUtils.getGlobalProperties();
String installS = install.getAbsolutePath();
p.setProperty("nbplatform.default.netbeans.dest.dir", installS); // NOI18N
if (!p.containsKey("nbplatform.default.harness.dir")) { // NOI18N
p.setProperty("nbplatform.default.harness.dir", "${nbplatform.default.netbeans.dest.dir}/harness"); // NOI18N
}
try {
PropertyUtils.putGlobalProperties(p);
} catch (IOException e) {
Util.err.notify(ErrorManager.INFORMATIONAL, e);
return null;
});
public static final int HARNESS_VERSION_65 = 6;
/** Harness version found in 6.7. */
public static final int HARNESS_VERSION_67 = 7;
static {
System.err.println("INIT!!!!");
/**
* Reset cached info so unit tests can start from scratch.