IDEA Flex projects conversion: more intelligent Flex libraries detection

This commit is contained in:
kirill.safonov
2012-03-29 12:01:14 +04:00
parent b865793558
commit 9bf671aa81
2 changed files with 9 additions and 0 deletions
@@ -64,4 +64,6 @@ public interface ConversionContext {
ProjectLibrariesSettings getProjectLibrariesSettings() throws CannotConvertException;
@NotNull
String expandPath(@NotNull String path);
}
@@ -159,6 +159,13 @@ public class ConversionContextImpl implements ConversionContext {
return map;
}
@Override
@NotNull
public String expandPath(@NotNull String path) {
ExpandMacroToPathMap map = createExpandMacroMap(null);
return map.substitute(path, SystemInfo.isFileSystemCaseSensitive);
}
@NotNull
public String collapsePath(@NotNull String path) {
ReplacePathToMacroMap map = createCollapseMacroMap(PathMacrosImpl.PROJECT_DIR_MACRO_NAME, myProjectBaseDir);