Author: rob.stryker(a)jboss.com
Date: 2009-12-17 16:07:09 -0500 (Thu, 17 Dec 2009)
New Revision: 19451
Modified:
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java
Log:
JBIDE-5504 export problem
Modified:
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java
===================================================================
---
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java 2009-12-17
20:00:42 UTC (rev 19450)
+++
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java 2009-12-17
21:07:09 UTC (rev 19451)
@@ -303,8 +303,15 @@
String path = getChildURI(parent, children[i]);
ModuleDelegate childDelegate = (ModuleDelegate)children[i].
loadAdapter(ModuleDelegate.class, new NullProgressMonitor());
- IJ2EEModule tempMod = (IJ2EEModule)children[i].loadAdapter(IJ2EEModule.class, new
NullProgressMonitor());
- boolean isBinary = tempMod.isBinary();
+ boolean isBinary = false;
+ {
+ IJ2EEModule tempMod = (IJ2EEModule)children[i].loadAdapter(IJ2EEModule.class, new
NullProgressMonitor());
+ IJBTModule jbtModule = null;
+ if( tempMod == null ) {
+ jbtModule = (IJBTModule)children[i].loadAdapter(IJBTModule.class, new
NullProgressMonitor());
+ }
+ isBinary = tempMod != null ? tempMod.isBinary() : jbtModule.isBinary();
+ }
if( path != null ) {
if( isBinary ) {
addResources(saver, childDelegate.members());
Show replies by date