File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
enterprise/j2ee.common/src/org/netbeans/modules/j2ee/common Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments