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.

View | Details | Raw Unified | Return to bug 168874
Collapse All | Expand All

(-)a/apisupport.project/src/org/netbeans/modules/apisupport/project/universe/NbPlatform.java (+21 lines)
Lines 119-124 Link Here
119
    public static final int HARNESS_VERSION_65 = 6;
119
    public static final int HARNESS_VERSION_65 = 6;
120
    /** Harness version found in 6.7. */
120
    /** Harness version found in 6.7. */
121
    public static final int HARNESS_VERSION_67 = 7;
121
    public static final int HARNESS_VERSION_67 = 7;
122
123
    static {
124
        final File install = NbPlatform.defaultPlatformLocation();
125
        if (install != null) {
126
            ProjectManager.mutex().postWriteRequest(new Runnable() {
127
                public void run() {
128
                    EditableProperties p = PropertyUtils.getGlobalProperties();
129
                    String installS = install.getAbsolutePath();
130
                    p.setProperty("nbplatform.default.netbeans.dest.dir", installS); // NOI18N
131
                    if (!p.containsKey("nbplatform.default.harness.dir")) { // NOI18N
132
                        p.setProperty("nbplatform.default.harness.dir", "${nbplatform.default.netbeans.dest.dir}/harness"); // NOI18N
133
                    }
134
                    try {
135
                        PropertyUtils.putGlobalProperties(p);
136
                    } catch (IOException e) {
137
                        Util.err.notify(ErrorManager.INFORMATIONAL, e);
138
                    }
139
                }
140
            });
141
        }
142
    }
122
    
143
    
123
    /**
144
    /**
124
     * Reset cached info so unit tests can start from scratch.
145
     * Reset cached info so unit tests can start from scratch.

Return to bug 168874