Author: dgolovin
Date: 2010-07-16 19:56:13 -0400 (Fri, 16 Jul 2010)
New Revision: 23514
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java
Log:
https://jira.jboss.org/browse/JBIDE-6596 New Seam WAR project has incorrect deployment
artifact structure
isBinaryObject(moduleTree) updated since it is referenced from other plugins
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java 2010-07-16
23:38:36 UTC (rev 23513)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java 2010-07-16
23:56:13 UTC (rev 23514)
@@ -194,14 +194,8 @@
// TODO This can also change to find the isBinaryModule method
public static boolean isBinaryObject(IModule[] moduleTree) {
- String name;
- for( int i = 0; i < moduleTree.length; i++ ) {
- name = moduleTree[i].getName();
- if( new Path(name).segmentCount() > 1 )
- // we strongly suspect this is a binary object and not a project
- return true;
- }
- return false;
+ IJ2EEModule j2eeModule = (IJ2EEModule)
moduleTree[moduleTree.length-1].loadAdapter(IJ2EEModule.class, null);
+ return j2eeModule != null && j2eeModule.isBinary();
}
public static IModuleResource[] getResources(IModule module) throws CoreException {