Package com.sun.enterprise.deployment.deploy.shared

Examples of com.sun.enterprise.deployment.deploy.shared.FileArchive.open()


  }

  FileArchive in = new FileArchive();

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


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


    private void save() {

  FileArchive in = new FileArchive();

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

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

  }

  FileArchive in = new FileArchive();

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


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

                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();
View Full Code Here

            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

     */
    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

    // 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",
View Full Code Here

            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
View Full Code Here

                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});
View Full Code Here

                }
            } 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.