flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - try using File.separator
Date Mon, 20 Apr 2015 20:05:56 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop e5977e79d -> 4d0fb41f1


try using File.separator


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/4d0fb41f
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/4d0fb41f
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/4d0fb41f

Branch: refs/heads/develop
Commit: 4d0fb41f1366f24ad5cd8bb0f10eef312475d38d
Parents: e5977e7
Author: Alex Harui <aharui@apache.org>
Authored: Mon Apr 20 13:05:43 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Apr 20 13:05:43 2015 -0700

----------------------------------------------------------------------
 compiler/src/org/apache/flex/compiler/config/Configuration.java    | 2 +-
 .../src/org/apache/flex/compiler/internal/targets/SWCTarget.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4d0fb41f/compiler/src/org/apache/flex/compiler/config/Configuration.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/config/Configuration.java b/compiler/src/org/apache/flex/compiler/config/Configuration.java
index 2579362..13a4a3f 100644
--- a/compiler/src/org/apache/flex/compiler/config/Configuration.java
+++ b/compiler/src/org/apache/flex/compiler/config/Configuration.java
@@ -4077,7 +4077,7 @@ public class Configuration
             if (processedPath.contains("*"))
             {
                 // if contains wild card, just prove the part before the wild card is valid
-                int c = processedPath.lastIndexOf("/", processedPath.indexOf("*"));
+                int c = processedPath.lastIndexOf(File.separator, processedPath.indexOf("*"));
                 if (c != -1)
                     processedPath = processedPath.substring(0, c);
             }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/4d0fb41f/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java b/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
index b445a58..e1a6a33 100644
--- a/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
+++ b/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
@@ -864,7 +864,7 @@ public class SWCTarget extends Target implements ISWCTarget
     private Collection<File> getFiles(File file)
     {
         String filename = file.getAbsolutePath();
-        int c = filename.lastIndexOf("/");
+        int c = filename.lastIndexOf(File.separator);
         if (c != -1)
             filename = filename.substring(0, c);
         Collection<File> files = FileUtils.listFiles(new File(


Mime
View raw message