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.

View | Details | Raw Unified | Return to bug 179698
Collapse All | Expand All

(-)a/j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/session/SessionEJBWizardPanel.java (-3 / +7 lines)
Lines 60-65 Link Here
60
import org.netbeans.modules.j2ee.common.J2eeProjectCapabilities;
60
import org.netbeans.modules.j2ee.common.J2eeProjectCapabilities;
61
import org.netbeans.modules.j2ee.common.Util;
61
import org.netbeans.modules.j2ee.common.Util;
62
import org.netbeans.modules.j2ee.dd.api.ejb.Session;
62
import org.netbeans.modules.j2ee.dd.api.ejb.Session;
63
import org.netbeans.spi.project.ant.AntArtifactProvider;
63
64
64
/**
65
/**
65
 *
66
 *
Lines 137-145 Link Here
137
            if (p.equals(project)) {
138
            if (p.equals(project)) {
138
                continue;
139
                continue;
139
            }
140
            }
140
            // list only projects which produce jars so that they can be added to classpath
141
            // if this is an Ant-based project and not e.g. a Maven project
141
            if (AntArtifactQuery.findArtifactsByType(p, JavaProjectConstants.ARTIFACT_TYPE_JAR).length == 0) {
142
            if (p.getLookup().lookup(AntArtifactProvider.class) != null) {
142
                continue;
143
                // list only projects which produce jars so that they can be added to classpath
144
                if (AntArtifactQuery.findArtifactsByType(p, JavaProjectConstants.ARTIFACT_TYPE_JAR).length == 0) {
145
                    continue;
146
                }
143
            }
147
            }
144
            // list only projects which have java source root
148
            // list only projects which have java source root
145
            if (ProjectUtils.getSources(p).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA).length == 0) {
149
            if (ProjectUtils.getSources(p).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA).length == 0) {

Return to bug 179698