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.

Bug 157738 - Broken old groovy projects
Summary: Broken old groovy projects
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker with 1 vote (vote)
Assignee: Petr Hejl
URL: http://hudson4qe.czech.sun.com/job/Gr...
Keywords:
Depends on: 160122
Blocks:
  Show dependency tree
 
Reported: 2009-02-01 20:13 UTC by Lukas Jungmann
Modified: 2009-06-12 18:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2009-02-01 20:13:10 UTC
-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)
Comment 1 Petr Hejl 2009-02-02 12:53:56 UTC
Main f6c388cdb65a - just a quickfix script update needs to be handled.
Comment 2 Petr Hejl 2009-02-02 13:44:33 UTC
Applies to any groovy project.
Comment 3 Jesse Glick 2009-02-02 15:31:21 UTC
Fix looks right.
Comment 4 Quality Engineering 2009-02-03 08:32:38 UTC
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
Comment 5 Petr Hejl 2009-02-13 21:08:21 UTC
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.
Comment 6 Petr Hejl 2009-03-04 20:33:08 UTC
Using xslt for generation - main 7f12c077b895.
Comment 7 Petr Hejl 2009-03-05 16:26:13 UTC
groovy-build.xml should be properly updated on project open now - main 95be4cbed40c.
Comment 8 Quality Engineering 2009-03-06 09:21:13 UTC
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
Comment 9 Petr Hejl 2009-03-18 14:45:51 UTC
The original bug is solved actually - related issue 152158 should be fixed however.
Comment 10 Jesse Glick 2009-06-12 18:10:53 UTC
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 {...}