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.
Mostof the Ant based project system are providing AntArtifactProvider thru lookup. org.netbeans.modules.j2ee.earproject.EarProject is not returning instance of AntArtifactProvider thru lookup(AntArtifactProvider). AntArtifactProvider implementation similar to one in org.netbeans.modules.j2ee.ejbjarproject.EjbJarProject will be helpfull in making ear project part of the Composite App project.
What type[1] of AntArtifact does the Composite App project expects? Is this defined somewhere? If so, can I ask you to point us to it otherwise something similar to issue 88528 should be filed against compappproject. [1]: see javadoc for org.netbeans.api.project.ant.AntArtifact.getType()
We need AntArtifact of type "ear" from Earproject's AntArtifactProvider which corresponds to existing ant target "dist" and "clean" of EarProject build-imp.xml. Ex: helper.createSimpleAntArtifact(EarProjectConstants.ARTIFACT_TYPE_EAR, "dist.ear", evaluator(), "dist", "clean") Since Composite Application Project needs EarProject to expose constants (like EarProjectConstants.ARTIFACT_TYPE_EAR), I think we need to add our requirement either to issue 88528 or treat this issue (91501) as a separate one for EarProject.
Reassigning to me--Rico
Changing priority to P1 because this is needed for Gavotte.
Created attachment 37055 [details] Diff of changes in EarProject.java
Fixed in trunk.
This has been reviewed and accepted by Vince Kraemer. Ported this to release551.
Reviewed and agreed too.
Checked with latest 5.5.1 build, lookup is still returning null for AntArtifactProvider. Ex: AntArtifactProvider prov = (AntArtifactProvider)project.getLookup().lookup(AntArtifactProvider.class); Variable "prov" is null. Method EjbJarProject.createLookup() may need to instantiate AntArtifactProviderImpl(). Ex: return Lookups.fixed(new Object[] { new Info(), aux, spp, new ProjectEarProvider(), new AntArtifactProviderImpl(),
issue is not resolved. according to last comment from Girish Patil.
Well, looks like in NetBeans 5.5.1, this was not fixed properly. Class AntArtifactProviderImpl is there, but it's not used anywhere. Assigning to Tomas. However, NetBeans 6.0 codebase looks correct. It's now too late to fix this in NetBeans 5.5.1, so is it sufficient if this is fixed in NB 6?
Fixed in NB 6.0. This will work for me. Thanks
Verified NB6/Hula build 70319_11