diff --git a/html.ojet/src/org/netbeans/modules/html/ojet/ui/wizard/NewProjectWizardIterator.java b/html.ojet/src/org/netbeans/modules/html/ojet/ui/wizard/NewProjectWizardIterator.java --- a/html.ojet/src/org/netbeans/modules/html/ojet/ui/wizard/NewProjectWizardIterator.java +++ b/html.ojet/src/org/netbeans/modules/html/ojet/ui/wizard/NewProjectWizardIterator.java @@ -70,6 +70,7 @@ import org.openide.WizardDescriptor; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileUtil; +import org.openide.util.Exceptions; import org.openide.util.Mutex; import org.openide.util.NbBundle; import org.openide.util.Pair; @@ -157,6 +158,7 @@ setupProject(handle, files, projectDirectory); + hackIgnoreCSSErrorsInUrlFile(projectDirectory); handle.finish(); return files; } @@ -342,4 +344,18 @@ } } + private void hackIgnoreCSSErrorsInUrlFile(FileObject projectDirectory) { + Enumeration children = projectDirectory.getChildren(true); + while (children.hasMoreElements()) { + FileObject file = children.nextElement(); + if ("_oj.utilities.urls".equals(file.getName())) { + try { + file.setAttribute("disable_error_checking_CSS", Boolean.TRUE.toString()); + } catch (IOException ex) { + Exceptions.printStackTrace(ex); + } + } + } + } + }