### Eclipse Workspace Patch 1.0
#P org.jboss.ide.eclipse.as.core
Index: jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java
===================================================================
--- jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java	(revision 23507)
+++ jbosscore/org/jboss/ide/eclipse/as/core/publishers/PublishUtil.java	(working copy)
@@ -128,10 +128,6 @@
 		IPath root = new Path( deployFolder );
 		String type, modName, name, uri, suffixedName;
 		for( int i = 0; i < moduleTree.length; i++ ) {	
-			IJ2EEModule j2eeModule = (IJ2EEModule) moduleTree[i].loadAdapter(IJ2EEModule.class, null);
-			if (j2eeModule != null && j2eeModule.isBinary()) {
-				continue;
-			}
 			type = moduleTree[i].getModuleType().getId();
 			modName = moduleTree[i].getName();
 			name = new Path(modName).lastSegment();
@@ -197,12 +193,9 @@
 	
 	// 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;
+		IJ2EEModule j2eeModule = (IJ2EEModule) moduleTree[moduleTree.length-1].loadAdapter(IJ2EEModule.class, null);
+		if (j2eeModule != null && j2eeModule.isBinary()) {
+			return true;
 		}
 		return false;
 	}