Skip to content

Commit 063018e

Browse files
committed
Revert: When creating capabilities for a project the EJB & WAR project
types should be in the same if statement.
1 parent 0756f30 commit 063018e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

enterprise/j2ee.common/src/org/netbeans/modules/j2ee/common/J2eeProjectCapabilities.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ public static J2eeProjectCapabilities forProject(@NonNull Project project) {
6868
Profile ejbJarProfile = null;
6969
Profile webProfile = null;
7070
Profile carProfile = null;
71-
if (type == J2eeModule.Type.EJB) {
71+
if (type == J2eeModule.Type.EJB || type == J2eeModule.Type.WAR) {
7272
EjbJar[] ejbJars = EjbJar.getEjbJars(project);
7373
if (ejbJars.length > 0) {
7474
// just use first one to test profile:
7575
ejbJarProfile = ejbJars[0].getJ2eeProfile();
7676
}
77-
}
78-
if (type == J2eeModule.Type.WAR) {
79-
WebModule module = WebModule.getWebModule(project.getProjectDirectory());
80-
if (module != null) {
81-
webProfile = module.getJ2eeProfile();
77+
if (type == J2eeModule.Type.WAR) {
78+
WebModule module = WebModule.getWebModule(project.getProjectDirectory());
79+
if (module != null) {
80+
webProfile = module.getJ2eeProfile();
81+
}
8282
}
8383
}
8484
if (type == J2eeModule.Type.CAR) {

0 commit comments

Comments
 (0)