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

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


    private void createEar(String explodedDir, String earFilePath)
            throws Exception {
        // create the application object.
        ApplicationArchivist archivist = new ApplicationArchivist();
        FileArchive appArchive = new FileArchive();
        appArchive.open(new File(explodedDir).getAbsolutePath());
        archivist.setManifest(appArchive.getManifest());
        Application application = null;
        if (archivist.hasStandardDeploymentDescriptor(appArchive)) {
            application = (Application)
                    archivist.readStandardDeploymentDescriptor(appArchive);
View Full Code Here


    public void readRuntimeDeploymentDescriptors(File moduleRootDirectory,
        SipBundleDescriptor sbd) throws Exception {
        FileArchive archive = new FileArchive();

        try {
            archive.open(moduleRootDirectory.getAbsolutePath());
        } catch (IOException io) {
            throw new Exception(io.getCause());
        }

        String ddFileEntryName = getRuntimeDeploymentDescriptorPath();
View Full Code Here

         throws Exception {
       
        FileArchive archive = new FileArchive();

        try {
            archive.open(moduleRootDirectory.getAbsolutePath());
        } catch (IOException io) {
           String msg =
                   newLocalStrings.getString("enterprise.deployment.backend.sip.ioexception")
                   + io.getMessage();
           Exception e = new Exception(msg);
View Full Code Here

   */
  private static String extractClassPathAttribute(File archiveFile) throws IOException {
      FileArchive archive = new FileArchive();
 
      try {
          archive.open(archiveFile.getAbsolutePath());
          Manifest m = archive.getManifest();
          if (m != null) {
              m.getMainAttributes();
              Attributes attrs = m.getMainAttributes();
              return attrs.getValue("Class-Path");
View Full Code Here

                    request.getDeployedDirectory().getCanonicalPath();
          String generatedXMLDir =
                    request.getGeneratedXMLDirectory().getCanonicalPath();

           FileArchive srcArchive = new FileArchive();
           srcArchive.open(appDir);
      
               FileArchive destArchive = new FileArchive();
           destArchive.open(generatedXMLDir);

                Archivist.copyExtraElements(srcArchive, destArchive);
View Full Code Here

           FileArchive srcArchive = new FileArchive();
           srcArchive.open(appDir);
      
               FileArchive destArchive = new FileArchive();
           destArchive.open(generatedXMLDir);

                Archivist.copyExtraElements(srcArchive, destArchive);
      } catch (Exception e) {
                throw new IASDeploymentException(e.getCause());
            }
View Full Code Here

       
        // now we need to load the application standard deployment descriptor.
        ApplicationArchivist archivist = new ApplicationArchivist();
        archivist.setXMLValidationLevel(getValidationLevel());
        FileArchive appArchive = new FileArchive();
        appArchive.open(destination.getAbsolutePath());
       
        archivist.setManifest(appArchive.getManifest());
       
        // read the standard deployment descriptors
        Application appDesc = null;
View Full Code Here

    {

        try {

            FileArchive fileArchive = new FileArchive();
            fileArchive.open(moduleDir)// directory where rar is exploded
            ConnectorArchivist connectorArchivist = new ConnectorArchivist();
            ConnectorDescriptor connectorDescriptor =
                   (ConnectorDescriptor) connectorArchivist.open(fileArchive);
            return connectorDescriptor;
        } catch(IOException ex) {
View Full Code Here

        // ---- END OF EJB DEPLOYMENT DESCRIPTORS --------------------------

        // ---- LOCAL HOME & OBJECT ----------------------------------------

        FileArchive dArchive = new FileArchive();
        dArchive.open(gnrtrTMP);
        DeploymentContext context = new DeploymentContext(dArchive,application);

        // Generate code for Remote EJB 30 business interfaces
        Vector remote30Files = new Vector();
View Full Code Here

        } else {
            uri = archBase + File.separator +
                FileUtils.makeFriendlyFileName(moduleDesc.getArchiveUri());
        }
        FileArchive arch = new FileArchive();
        arch.open(uri);
        InputStream is = arch.getEntry(location);
        try {
        // is can be null if wrong location of tld is specified in web.xml
            if (is == null)
                throw new IOException(smh.getLocalString
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.