Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 179132
Collapse All | Expand All

(-)src/org/eclipse/update/internal/jarprocessor/Utils.java (-1 / +12 lines)
Lines 13-18 Link Here
13
import java.io.*;
13
import java.io.*;
14
import java.util.*;
14
import java.util.*;
15
import java.util.jar.*;
15
import java.util.jar.*;
16
import java.util.zip.ZipException;
16
17
17
/**
18
/**
18
 * @author aniefer@ca.ibm.com
19
 * @author aniefer@ca.ibm.com
Lines 250-255 Link Here
250
		JarFile jar = null;
251
		JarFile jar = null;
251
		try {
252
		try {
252
			jar = new JarFile(jarFile, false);
253
			jar = new JarFile(jarFile, false);
254
		} catch (ZipException e) {
255
			//not a jar, don't bother logging this.
256
			return null;
257
		} catch (IOException e) {
258
			if (verbose) {
259
				System.out.println("Failed to obtain eclipse.inf due to IOException: " + jarFile);
260
				e.printStackTrace();
261
			}
262
			return null;
263
		}
264
		try {
253
			JarEntry mark = jar.getJarEntry(MARK_FILE_NAME);
265
			JarEntry mark = jar.getJarEntry(MARK_FILE_NAME);
254
			if (mark != null) {
266
			if (mark != null) {
255
				InputStream in = jar.getInputStream(mark);
267
				InputStream in = jar.getInputStream(mark);
Lines 264-270 Link Here
264
				System.out.println("Failed to obtain eclipse.inf due to IOException: " + jarFile);
276
				System.out.println("Failed to obtain eclipse.inf due to IOException: " + jarFile);
265
				e.printStackTrace();
277
				e.printStackTrace();
266
			}
278
			}
267
			//not a jar
268
			return null;
279
			return null;
269
		} finally {
280
		} finally {
270
			close(jar);
281
			close(jar);

Return to bug 179132