mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test added
This commit is contained in:
@@ -33,6 +33,10 @@ public class LayoutTask extends Task {
|
||||
containers.add(container);
|
||||
}
|
||||
|
||||
public void addModule(IdeaModule module) {
|
||||
containers.add(new FileSetContainer(module));
|
||||
}
|
||||
|
||||
public void addFileset(FileSet fileSet) {
|
||||
containers.add(new FileSetContainer(fileSet));
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ public class IdeaProjectLoader {
|
||||
}
|
||||
|
||||
private NodeList loadProjectLibraries(Node librariesComponent, Project project, String projectBasePath) {
|
||||
return librariesComponent?.library.each {Node libTag ->
|
||||
return librariesComponent?.library?.each {Node libTag ->
|
||||
project.createLibrary(libTag."@name", libraryInitializer(libTag, projectBasePath, null))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
d1
|
||||
@@ -0,0 +1 @@
|
||||
d2
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<root2/>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactManager">
|
||||
<artifact name="dirs">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/dirs</output-path>
|
||||
<root id="root">
|
||||
<element id="dir-copy" path="$PROJECT_DIR$/data/d2" />
|
||||
<element id="dir-copy" path="$PROJECT_DIR$/data/d1" />
|
||||
</root>
|
||||
</artifact>
|
||||
<artifact name="classes">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/classes</output-path>
|
||||
<root id="root">
|
||||
<element id="module-output" name="dep" />
|
||||
<element id="module-output" name="overwriteTest" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
<component name="CompilerConfiguration">
|
||||
<option name="DEFAULT_COMPILER" value="Javac" />
|
||||
<resourceExtensions>
|
||||
<entry name=".+\.(properties|xml|html|dtd|tld)" />
|
||||
<entry name=".+\.(gif|png|jpeg|jpg)" />
|
||||
</resourceExtensions>
|
||||
<wildcardResourcePatterns>
|
||||
<entry name="?*.properties" />
|
||||
<entry name="?*.xml" />
|
||||
<entry name="?*.gif" />
|
||||
<entry name="?*.png" />
|
||||
<entry name="?*.jpeg" />
|
||||
<entry name="?*.jpg" />
|
||||
<entry name="?*.html" />
|
||||
<entry name="?*.dtd" />
|
||||
<entry name="?*.tld" />
|
||||
<entry name="?*.ftl" />
|
||||
</wildcardResourcePatterns>
|
||||
<annotationProcessing enabled="false" useClasspath="true" />
|
||||
</component>
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/dep/dep.iml" filepath="$PROJECT_DIR$/dep/dep.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/overwriteTest.iml" filepath="$PROJECT_DIR$/overwriteTest.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_5" assert-keyword="true" jdk-15="true" project-jdk-name="1.6" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<root1/>
|
||||
@@ -2,7 +2,9 @@ package org.jetbrains.jps
|
||||
|
||||
import junit.framework.TestCase
|
||||
import org.codehaus.gant.GantBinding
|
||||
import org.jetbrains.jps.idea.IdeaProjectLoader;
|
||||
import org.jetbrains.jps.idea.IdeaProjectLoader
|
||||
import org.jetbrains.jps.util.FileSystemItem
|
||||
import org.jetbrains.jps.util.FileUtil;
|
||||
|
||||
/**
|
||||
* @author nik
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.jetbrains.jps
|
||||
|
||||
/**
|
||||
* @author nik
|
||||
*/
|
||||
class OverwriteTest extends JpsBuildTestCase {
|
||||
public void testOverwriteArtifacts() throws Exception {
|
||||
doTest("testData/overwriteTest/overwriteTest.ipr", {}, {
|
||||
dir("artifacts") {
|
||||
dir("classes") {
|
||||
file("a.xml", "<root2/>")
|
||||
}
|
||||
dir("dirs") {
|
||||
file("x.txt", "d2")
|
||||
}
|
||||
}
|
||||
dir("production") {
|
||||
dir("dep") {
|
||||
file("a.xml", "<root2/>")
|
||||
}
|
||||
dir("overwriteTest") {
|
||||
file("a.xml", "<root1/>")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.jps
|
||||
package org.jetbrains.jps.util
|
||||
|
||||
import junit.framework.Assert
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.jps
|
||||
package org.jetbrains.jps.util
|
||||
|
||||
/**
|
||||
* @author nik
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package org.jetbrains.jps
|
||||
package org.jetbrains.jps.util
|
||||
|
||||
import java.util.zip.ZipEntry
|
||||
import java.util.zip.ZipFile
|
||||
Reference in New Issue
Block a user