Bug 480603 - Deal with extra file in Intel's tarballs for Arduino.
authorDoug Schaefer <dschaefer@qnx.com>
Mon, 26 Oct 2015 03:37:03 +0000 (23:37 -0400)
committerDoug Schaefer <dschaefer@qnx.com>
Mon, 26 Oct 2015 03:37:03 +0000 (23:37 -0400)
Change-Id: I575496e490959defe5fe978664bac87b7e53fede

toolchains/arduino/org.eclipse.cdt.arduino.core/src/org/eclipse/cdt/arduino/core/internal/board/ArduinoManager.java

index bba428f..e0cab06 100644 (file)
@@ -352,6 +352,12 @@ public class ArduinoManager {
                                        }
                                }
 
+                               // Special hack for Intel - remove the pax_global_header file
+                               File paxFile = new File(installPath.toFile(), "pax_global_header"); //$NON-NLS-1$
+                               if (paxFile.exists()) {
+                                       paxFile.delete();
+                               }
+
                                // Fix up directory
                                File[] children = installPath.toFile().listFiles();
                                if (children.length == 1 && children[0].isDirectory()) {