1 26 27 package org.objectweb.openccm.descriptor.componentassembly.gui; 28 29 import org.objectweb.openccm.descriptor.componentassembly.beans.*; 30 import org.objectweb.openccm.descriptor.componentassembly.*; 31 import org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBean; 32 import org.objectweb.openccm.descriptor.softpkg.beans.SoftpkgBeanImpl; 33 import org.objectweb.openccm.descriptor.softpkg.gui.SoftpkgZipper; 34 35 42 public class ComponentfileZipper 43 { 44 50 56 62 66 public void 67 zipCall( 68 ComponentfileBean componentfile 69 , org.objectweb.openccm.packaging.ZipFactory zip_factory 70 ) 71 { 72 FileinarchiveBean fileinarchive 73 = (FileinarchiveBean) 74 componentfile.getFileinarchive(); 75 76 if (fileinarchive != null) 78 { 79 FileinarchiveZipper sub_zipper 80 = (FileinarchiveZipper) fileinarchive 81 .getExtensionManager() 82 .getExtensionByName("gui.Zipper") 83 .getInstance(); 84 85 sub_zipper.zipCall(fileinarchive, zip_factory); 86 87 88 java.io.File component_file 90 = new java.io.File (fileinarchive.getName()); 91 92 if (component_file.exists() 94 && fileinarchive.getName().toLowerCase().endsWith("csd") 95 && fileinarchive.getLink() == null 96 ) 97 { 98 try 99 { 100 SoftpkgBean csd_instance 101 = SoftpkgBeanImpl.unmarshalBean(component_file); 102 103 SoftpkgZipper csd_zipper 104 = (SoftpkgZipper) 105 csd_instance 106 .getExtensionManager() 107 .getExtensionByName("gui.Zipper") 108 .getInstance(); 109 110 csd_zipper.zipCall(csd_instance, zip_factory); 111 112 } catch (java.io.IOException exc) { 113 System.err.println( 114 "Could not open " 115 +fileinarchive.getName() 116 +" for archive dependencies"); 117 } 118 } 119 } 120 } 121 } 122 | Popular Tags |