Examples of FileArchive


Examples of com.sun.enterprise.deploy.shared.FileArchive

                parent = new File(webService.getClientPublishUrl().getPath());
            }

            // Collect the names of all entries in or below the
            // dedicated wsdl directory.
            FileArchive archive = new FileArchive();
            archive.open(sourceDir.toURI());


            Enumeration entries = archive.entries(bundle.getWsdlDir());


            while (entries.hasMoreElements()) {
                String name = (String) entries.nextElement();
                String wsdlName = stripWsdlDir(name, bundle);
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

  try {
    System.in.read();
  } catch (java.io.IOException ioe) {
  }

  FileArchive in = new FileArchive();

  try {
    in.open(appDir);
  } catch (java.io.IOException ioe) {
  }


  EjbArchivist ejbArchivist = new EjbArchivist();
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

    }

    private void save() {

  FileArchive in = new FileArchive();

  try {
    in.open(applicationDirectory);
  } catch (java.io.IOException ioe) {
  }

  DescriptorArchivist archivist = new DescriptorArchivist();
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

  try {
    System.in.read();
  } catch (java.io.IOException ioe) {
  }

  FileArchive in = new FileArchive();

  try {
    in.open(appDir);
  } catch (java.io.IOException ioe) {
  }


  ApplicationArchivist archivist = new ApplicationArchivist();
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

   try {
       AppClientArchivist appClientArchivist = new AppClientArchivist();
       appClientArchivist.setXMLValidation(validateXml);
             appClientArchivist.setClassLoader(cl);
      
       FileArchive archive = openDDArchive(modId, modDir);
            
             // Try to load the app from the serialized descriptor file.
             SerializedDescriptorHelper.Loader sdLoader =
                     SerializedDescriptorHelper.load(modId, this);
             Application deserializedApplication = sdLoader.getApplication();
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

        }
        try {
      WebArchivist webArchivist = new WebArchivist();
      webArchivist.setXMLValidation(validateXml);
     
      FileArchive archive = openDDArchive(modId, modDir);
            // Try to load the app from the serialized descriptor file.
            SerializedDescriptorHelper.Loader sdLoader =
                    SerializedDescriptorHelper.load(modId, this);
            Application deserializedApplication = sdLoader.getApplication();
            /*
 
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

                        // of directory names ending with module type suffix.
                        File subDir = new File(out.getArchiveUri(), moduleUri);
                        if (!subDir.exists()) {
                            subDir.mkdirs();
                        }
                        moduleArchive = new FileArchive();
                        ((FileArchive)moduleArchive).open(subDir.getPath());
                    } else {
                         moduleArchive = out.getEmbeddedArchive(moduleUri);
                    }
                    write(aModule.getDescriptor(),  moduleArchivist, moduleArchive2, moduleArchive);
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

            if (isVirtual) {
                appDes.setVirtual(true);
            }
            SerializedDescriptorHelper.store(appId, this, appDes);

            FileArchive archive = new FileArchive();
            archive.open(generatedAppDir);

            FileArchive archive2 = new FileArchive();
            archive2.open(appDir);

            DescriptorArchivist archivist = new DescriptorArchivist();
            archivist.write(appDes, archive2, archive);

            // copy the additional webservice elements etc
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

     * @throws SAXParseException
     */
    public void readPersistenceDeploymentDescriptors(
            String appDir, Application application)
            throws IOException, SAXParseException {
        FileArchive archive = new FileArchive();
        archive.open(appDir);
        try {
            ApplicationArchivist.readPersistenceDeploymentDescriptorsRecursively(
                    archive, application);
        } finally {
            archive.close();
        }
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive

    // else load from generated/xml dir
    // print a warning if generated/xml dir is not there
    // and load from original dir (upgrade scenario)
    public FileArchive openDDArchive(String appId, String appDir)
        throws IOException, ConfigException {
        FileArchive in = new FileArchive();
        if (isSystemPredeployed(appId)) {
            in.open(appDir);
        } else {
            String xmlDir = getGeneratedXMLLocation(appId);
            if (FileUtils.safeIsDirectory(xmlDir)) {
                if (isGeneratedObsolete(xmlDir)) {
                    _logger.log(Level.INFO, "core.gen_is_obsolete",
                            new Object[] {appId, appDir});
                    in.open(appDir);
                } else {
                    in.open(xmlDir);
                }
            } else {
                // log a warning message in the server log
                _logger.log(Level.WARNING, "core.no_xmldir",
                    new Object[]{xmlDir, appDir});
                in.open(appDir);
            }
        }
        return in;
    }
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.