tests for phing and ant build files separation

This commit is contained in:
Shaverdova Elena
2011-06-08 18:02:01 +04:00
parent 767f4fbe32
commit 5529004091
@@ -82,12 +82,12 @@ public class ForcedBuildFileAttribute {
public static void forceFileToFramework(VirtualFile file, String frameworkId, boolean value) {
if (value) {//belongs to other framework
String existingFrameworkId = getFrameworkIdOfBuildFile(file);
if (!StringUtil.isEmpty(existingFrameworkId) && !frameworkId.equals(existingFrameworkId)) {
return;
}
//belongs to other framework - do not override!
String existingFrameworkId = getFrameworkIdOfBuildFile(file);
if (!StringUtil.isEmpty(existingFrameworkId) && !frameworkId.equals(existingFrameworkId)) {
return;
}
if (value) {//write framework
forceBuildFile(file, frameworkId);
}