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.
import org.netbeans.modules.j2ee.common.J2eeProjectCapabilities;
import org.netbeans.modules.j2ee.common.Util;
import org.netbeans.modules.j2ee.dd.api.ejb.Session;
import org.netbeans.spi.project.ant.AntArtifactProvider;
/**
*
if (p.equals(project)) {
continue;
}
// list only projects which produce jars so that they can be added to classpath
// if this is an Ant-based project and not e.g. a Maven project
if (AntArtifactQuery.findArtifactsByType(p, JavaProjectConstants.ARTIFACT_TYPE_JAR).length == 0) {
if (p.getLookup().lookup(AntArtifactProvider.class) != null) {
// list only projects which have java source root
if (ProjectUtils.getSources(p).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA).length == 0) {