Examples of ZipFileFactory


Examples of org.eclipse.wb.tests.designer.core.ZipFileFactory

    String resourcesLocation;
    {
      String wsLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation().toPortableString();
      resourcesLocation = wsLocation + "/gxt-resources.jar";
      OutputStream zipOutputStream = new FileOutputStream(resourcesLocation);
      ZipFileFactory zipFileFactory = new ZipFileFactory(zipOutputStream);
      zipFileFactory.add("my/public", new File(m_project.getLocation().toPortableString()
          + "/war/ExtGWT"));
      zipFileFactory.add(
          "my/Resources.gwt.xml",
          getSourceDQ(
              "<!-- filler filler filler filler filler -->",
              "<!-- filler filler filler filler filler -->",
              "<module>",
              "  <stylesheet src='ExtGWT/css/gxt-all.css'/>",
              "</module>"));
      zipFileFactory.close();
    }
    // delete resources
    {
      IFolder folder = getFolder("war/ExtGWT");
      assertTrue(folder.exists());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.