Revert "external builder: added test for copying forms runtime classes to artifacts"

This reverts commit 9ef135fda3.
This commit is contained in:
Kirill Likhodedov
2012-11-15 21:34:37 +01:00
parent 7044e18363
commit 71303bf476
4 changed files with 0 additions and 74 deletions
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="B">
<grid id="27dc6" row-count="1" column-count="1" layout-manager="GridLayoutManager">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>
@@ -1,2 +0,0 @@
public class B {
}
@@ -1,58 +0,0 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.uiDesigner.make;
import com.intellij.compiler.artifacts.ArtifactCompilerTestCase;
import com.intellij.openapi.application.ex.PathManagerEx;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.packaging.artifacts.Artifact;
import java.io.File;
import java.io.IOException;
/**
* @author nik
*/
public class UiDesignerExternalBuildTest extends ArtifactCompilerTestCase {
@Override
protected boolean useExternalCompiler() {
return true;
}
//IDEA-94779
public void testCopyFormsRuntimeToArtifact() throws IOException {
VirtualFile file = createFile("src/A.java", "class A{}");
VirtualFile srcRoot = file.getParent();
Module module = addModule("a", srcRoot);
Artifact a = addArtifact(root().module(module));
make(a);
assertOutput(a, fs().file("A.class"));
File dir = PathManagerEx.findFileUnderCommunityHome("plugins/ui-designer/testData/build/copyFormsRuntimeToArtifact");
FileUtil.copyDir(dir, VfsUtilCore.virtualToIoFile(srcRoot));
srcRoot.refresh(false, false);
make(a);
File outputDir = VfsUtilCore.virtualToIoFile(getOutputDir(a));
assertTrue(new File(outputDir, "A.class").exists());
assertTrue(new File(outputDir, "B.class").exists());
//todo[jeka] fix
//assertTrue(new File(outputDir, AbstractLayout.class.getName().replace('.', '/') + ".class").exists());
}
}
-1
View File
@@ -27,7 +27,6 @@
<orderEntry type="module" module-name="platform-api" />
<orderEntry type="module" module-name="spellchecker" />
<orderEntry type="module" module-name="jps-builders" />
<orderEntry type="module" module-name="compiler-tests" scope="TEST" />
</component>
<component name="copyright">
<Base>