Skip to content
Permalink
Browse files
- Changed the AirFilter to also accept Windows type paths ("\" instea…
…d of "/")
  • Loading branch information
chrisdutz committed Oct 7, 2016
1 parent fa9a4fe commit 98b189d8820cf51f007d5779841b7f18970c3b88
Showing 1 changed file with 9 additions and 9 deletions.
@@ -416,15 +416,15 @@ public boolean accept(File pathname) {
String relativePath = pathname.getAbsolutePath().substring(
rootSourceDirectory.getAbsolutePath().length());

boolean result = "/AIR SDK license.pdf".equals(relativePath) ||
"/AIR SDK Readme.txt".equals(relativePath) ||
"/airsdk.xml".equals(relativePath) ||
relativePath.startsWith("/frameworks/projects/air/") ||
relativePath.startsWith("/include/") ||
relativePath.startsWith("/install/") ||
relativePath.startsWith("/samples/");

if(relativePath.startsWith("/frameworks/libs/air/")) {
boolean result = "/AIR SDK license.pdf".equals(relativePath) || "\\AIR SDK license.pdf".equals(relativePath) ||
"/AIR SDK Readme.txt".equals(relativePath) || "\\AIR SDK Readme.txt".equals(relativePath) ||
"/airsdk.xml".equals(relativePath) || "\\airsdk.xml".equals(relativePath) ||
relativePath.startsWith("/frameworks/projects/air/") || relativePath.startsWith("\\frameworks\\projects\\air\\") ||
relativePath.startsWith("/include/") || relativePath.startsWith("\\include\\") ||
relativePath.startsWith("/install/") || relativePath.startsWith("\\install\\") ||
relativePath.startsWith("/samples/") || relativePath.startsWith("\\samples\\");

if(relativePath.startsWith("/frameworks/libs/air/") || relativePath.startsWith("\\frameworks\\libs\\air\\")) {
result = !(pathname.getName().endsWith(".swc") || pathname.getName().endsWith(".swf"));
}

0 comments on commit 98b189d

Please sign in to comment.