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.
-create some sample groovy project (ie. groovy java demo) -build it => init: deps-jar: C:\Users\lukas\Documents\NetBeansProjects\GroovyJavaDemo\nbproject\build-impl.xml:351: Unknown attribute [gensrcdir] BUILD FAILED (total time: 0 seconds) seems to be related to issue 105645 (cc'ed Jesse)
Main f6c388cdb65a - just a quickfix script update needs to be handled.
Applies to any groovy project.
Fix looks right.
Integrated into 'main-golden', will be available in build *200902030229* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f6c388cdb65a User: phejl@netbeans.org Log: #157738 broken groovy samples
Temporary workaround to compile old projects with groovy on trunk is to create a new project with groovy enabled and move sources to the new project or put the nbproject/groovy-build.xml from the new project to the old one.
Using xslt for generation - main 7f12c077b895.
groovy-build.xml should be properly updated on project open now - main 95be4cbed40c.
Integrated into 'main-golden', will be available in build *200903060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/7f12c077b895 User: phejl@netbeans.org Log: #157738 Broken old groovy projects
The original bug is solved actually - related issue 152158 should be fixed however.
BTW #95be4cbed40c was too much work and introduces an unnecessary extra class. Rather than @LookupProvider.Registration(projectType="org-netbeans-modules-java-j2seproject") public class GroovyLookupProvider implements LookupProvider { public Lookup createAdditionalLookup(Lookup baseContext) { Project project = baseContext.lookup(Project.class); if (project == null) { return Lookup.EMPTY; } return Lookups.fixed(new J2seProjectOpenedHook(project)); } private static class J2seProjectOpenedHook extends ProjectOpenedHook {...} } you could more simply and efficiently have @ProjectServiceProvider(service=ProjectOpenedHook.class, projectType="org-netbeans-modules-java-j2seproject") public class J2seProjectOpenedHook extends ProjectOpenedHook {...}