testSrc/org/jetbrains/jps/OverwriteTest.groovy (30 lines of code) (raw):

// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.jps /** * @author nik */ class OverwriteTest extends JpsBuildTestCase { public void testOverwriteArtifacts() throws Exception { doTest("testData/overwriteTest/overwriteTest.ipr", null, { dir("artifacts") { dir("classes") { file("a.xml", "<root2/>") } dir("dirs") { file("x.txt", "d2") } dir("fileCopy") { dir("xxx") { dir("a") { file("f.txt", "b") } } } } dir("production") { dir("dep") { file("a.xml", "<root2/>") } dir("overwriteTest") { file("a.xml", "<root1/>") } } }) } }