Package org.eclipse.php.internal.core.phar

Examples of org.eclipse.php.internal.core.phar.PharArchiveFile


        final PharPath pharPath = PharPath.getPharPath(new Path(
            fileName));
        if (pharPath != null) {

          try {
            final PharArchiveFile archiveFile = new PharArchiveFile(
                pharPath.getPharName());
            final IArchiveEntry entry = archiveFile
                .getArchiveEntry((pharPath.getFolder().length() == 0 ? "" //$NON-NLS-1$
                    : pharPath.getFolder() + "/") //$NON-NLS-1$
                    + pharPath.getFile());
            return new Object[] { new ExternalEntryFile(fileName,
                archiveFile, entry) };
View Full Code Here


        if (pharFile == null || !pharFile.exists())
          return true;
        IArchive archive = null;
        if (PHPToolkitUtil.PHAR_EXTENSTION.equals(extension)) {
          archive = new PharArchiveFile(pharFile);
        } else if (PHPToolkitUtil.ZIP_EXTENSTION.equals(extension)) {
          archive = new ZipArchiveFile(pharFile);
        } else if (PHPToolkitUtil.TAR_EXTENSTION.equals(extension)
            || PHPToolkitUtil.GZ_EXTENSTION.equals(extension)
            || PHPToolkitUtil.BZ2_EXTENSTION.equals(extension)) {
View Full Code Here

    String extension = getExtension(localFile);
    if (isPharExtention(extension)) {
      IArchive archive = null;
      try {
        if (PHAR_EXTENSTION.equals(extension)) {
          archive = new PharArchiveFile(localFile);
        } else if (ZIP_EXTENSTION.equals(extension)) {
          archive = new ZipArchiveFile(localFile);
        } else if (TAR_EXTENSTION.equals(extension)
            || GZ_EXTENSTION.equals(extension)
            || BZ2_EXTENSTION.equals(extension)) {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.phar.PharArchiveFile

Copyright © 2018 www.massapicom. 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.