/** Scan the contained packages and try to locate the module descriptor. */ private void scanContent() { try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; this.knownPackageNames = findPackageSet(); } else { this.knownPackageNames = findPackageSet(); } } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty } }
/** Scan the contained packages and try to locate the module descriptor. */ private boolean scanContent() { try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; this.knownPackageNames = findPackageSet(); } else { this.knownPackageNames = findPackageSet(); } return true; } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty return false; } }
public boolean isPackage(String qualifiedPackageName) { if (this.knownPackageNames != null) return this.knownPackageNames.includes(qualifiedPackageName); try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; } this.knownPackageNames = findPackageSet(this); } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty } return this.knownPackageNames.includes(qualifiedPackageName); }
public boolean isPackage(String qualifiedPackageName) { if (this.knownPackageNames != null) return this.knownPackageNames.includes(qualifiedPackageName); try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; } this.knownPackageNames = findPackageSet(this); } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty } return this.knownPackageNames.includes(qualifiedPackageName); }
public boolean isPackage(String qualifiedPackageName) { if (this.knownPackageNames != null) return this.knownPackageNames.includes(qualifiedPackageName); try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; } this.knownPackageNames = findPackageSet(this); } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty } return this.knownPackageNames.includes(qualifiedPackageName); }
public boolean isPackage(String qualifiedPackageName) { if (this.knownPackageNames != null) return this.knownPackageNames.includes(qualifiedPackageName); try { if (this.zipFile == null) { if (org.eclipse.jdt.internal.core.JavaModelManager.ZIP_ACCESS_VERBOSE) { System.out.println("(" + Thread.currentThread() + ") [ClasspathJar.isPackage(String)] Creating ZipFile on " + this.zipFilename); //$NON-NLS-1$ //$NON-NLS-2$ } this.zipFile = new ZipFile(this.zipFilename); this.closeZipFileAtEnd = true; } this.knownPackageNames = findPackageSet(this); } catch(Exception e) { this.knownPackageNames = new SimpleSet(); // assume for this build the zipFile is empty } return this.knownPackageNames.includes(qualifiedPackageName); }