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 256049
Collapse All | Expand All

(-)a/html.ojet/src/org/netbeans/modules/html/ojet/ui/wizard/NewProjectWizardIterator.java (+16 lines)
Lines 70-75 Link Here
70
import org.openide.WizardDescriptor;
70
import org.openide.WizardDescriptor;
71
import org.openide.filesystems.FileObject;
71
import org.openide.filesystems.FileObject;
72
import org.openide.filesystems.FileUtil;
72
import org.openide.filesystems.FileUtil;
73
import org.openide.util.Exceptions;
73
import org.openide.util.Mutex;
74
import org.openide.util.Mutex;
74
import org.openide.util.NbBundle;
75
import org.openide.util.NbBundle;
75
import org.openide.util.Pair;
76
import org.openide.util.Pair;
Lines 157-162 Link Here
157
158
158
        setupProject(handle, files, projectDirectory);
159
        setupProject(handle, files, projectDirectory);
159
160
161
        hackIgnoreCSSErrorsInUrlFile(projectDirectory);
160
        handle.finish();
162
        handle.finish();
161
        return files;
163
        return files;
162
    }
164
    }
Lines 342-345 Link Here
342
        }
344
        }
343
    }
345
    }
344
346
347
    private void hackIgnoreCSSErrorsInUrlFile(FileObject projectDirectory) {
348
        Enumeration<? extends FileObject> children = projectDirectory.getChildren(true);
349
        while (children.hasMoreElements()) {
350
            FileObject file = children.nextElement();
351
            if ("_oj.utilities.urls".equals(file.getName())) {
352
                try {
353
                    file.setAttribute("disable_error_checking_CSS", Boolean.TRUE.toString());
354
                } catch (IOException ex) {
355
                    Exceptions.printStackTrace(ex);
356
                }
357
            }
358
        }
359
    }
360
345
}
361
}

Return to bug 256049