You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/09/05 07:39:49 UTC
[2/2] git commit: [flex-falcon] [refs/heads/develop] - fix wildcard
include files
fix wildcard include files
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/c0742e3a
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/c0742e3a
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/c0742e3a
Branch: refs/heads/develop
Commit: c0742e3ae2d15e3ca40c6fce8d61a940f732cfab
Parents: 4a2f7b9
Author: Alex Harui <ah...@apache.org>
Authored: Fri Sep 4 22:40:05 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Sep 4 22:40:05 2015 -0700
----------------------------------------------------------------------
.../org/apache/flex/compiler/internal/targets/SWCTarget.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/c0742e3a/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 e1a6a33..7c9bae0 100644
--- a/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
+++ b/compiler/src/org/apache/flex/compiler/internal/targets/SWCTarget.java
@@ -864,9 +864,8 @@ public class SWCTarget extends Target implements ISWCTarget
private Collection<File> getFiles(File file)
{
String filename = file.getAbsolutePath();
- int c = filename.lastIndexOf(File.separator);
- if (c != -1)
- filename = filename.substring(0, c);
+ if (filename.endsWith(File.separator))
+ filename = filename.substring(0, filename.length() - 1);
Collection<File> files = FileUtils.listFiles(new File(
filename), null, true);
return files;