[Title] fixed bug in extracting jar file.
authorTaeyoung Son <taeyoung2.son@samsung.com>
Tue, 12 Mar 2013 02:51:18 +0000 (11:51 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Tue, 12 Mar 2013 02:51:18 +0000 (11:51 +0900)
[Desc.]
[Issue] redmine : 8676

Change-Id: I939f6ce781fdc62249fd334b46ebf337f1a00c35

org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java

index 25df230..7e927d2 100644 (file)
@@ -109,21 +109,21 @@ public class CUIPreferenceInitializer extends AbstractPreferenceInitializer {
                        File destinationDir = new File(doxygenDirectoryPath);
                        if (!destinationDir.exists()) {
                                destinationDir.mkdirs();
-                       } else if (destinationDir.exists()) {
+                       } else {
                                return;
                        }
                        for (Enumeration<JarEntry> entries = jarFile.entries(); entries.hasMoreElements(); ) {
                                JarEntry entry = entries.nextElement();
                                if (entry.isDirectory()) {
-                                       if (entry.getName().toUpperCase().indexOf("META-INF") != -1) {
-                                               continue;
-                                       }
+//                                     if (entry.getName().toUpperCase().indexOf("META-INF") != -1) {
+//                                             continue;
+//                                     }
                                        File newDirectory = new File(destinationDir, entry.getName());
                                        newDirectory.mkdirs();
                                } else {
-                                       if (entry.getName().toUpperCase().indexOf("META-INF") != -1) {
-                                               continue;
-                                       }
+//                                     if (entry.getName().toUpperCase().indexOf("META-INF") != -1) {
+//                                             continue;
+//                                     }
                                        File output = new File(destinationDir, entry.getName());
                                        InputStream inputStream = jarFile.getInputStream(entry);
                                        BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(output));