FLEX-34342: Break and Clear command should accept paths
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/71a01cc4 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/71a01cc4 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/71a01cc4 Branch: refs/heads/FDBWorkers Commit: 71a01cc4687cf618283286b8168693fe9414d216 Parents: dd66ead Author: Fr�d�ric THMOAS <[email protected]> Authored: Thu May 29 15:20:43 2014 +0100 Committer: Fr�d�ric THMOAS <[email protected]> Committed: Thu May 29 15:20:43 2014 +0100 ---------------------------------------------------------------------- .../debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/71a01cc4/modules/debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java ---------------------------------------------------------------------- diff --git a/modules/debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java b/modules/debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java index f4587b7..b122e7c 100644 --- a/modules/debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java +++ b/modules/debugger/src/java/flex/tools/debugger/cli/FileInfoCache.java @@ -537,6 +537,9 @@ public class FileInfoCache implements Comparator<SourceFile> // if we are using the full path string, then prefix a '.' to our matching string so that abc.as and Gabc.as don't both hit String match = (usePath && pathExists) ? dotMatchString : matchString; + match = match.replace('/', '.'); // get rid of path identifiers and use dots + match = match.replace('\\', '.'); + name = name.replace('/', '.'); // get rid of path identifiers and use dots name = name.replace('\\', '.'); // would be better to modify the input string, but we don't know which path char will be used.
