mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-40529 remove unnecessary icon-robots.txt
This commit is contained in:
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -4,6 +4,7 @@ package org.jetbrains.intellij.build.images
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.openapi.util.io.FileUtilRt
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import com.intellij.util.SystemProperties
|
||||
import com.intellij.util.containers.ContainerUtil
|
||||
import org.jetbrains.jps.model.java.JavaResourceRootType
|
||||
import org.jetbrains.jps.model.module.JpsModule
|
||||
@@ -77,6 +78,14 @@ internal class ImageCollector(private val projectHome: Path, private val iconsOn
|
||||
if (rootDir.fileName.toString() != "compatibilityResources") {
|
||||
processRoot(sourceRoot, rootDir)
|
||||
}
|
||||
else if (SystemProperties.getBooleanProperty("remove.extra.icon.robots.files", false)) {
|
||||
// under flag because not required for regular usage (to avoid FS call)
|
||||
try {
|
||||
Files.delete(rootDir.resolve("icon-robots.txt"))
|
||||
}
|
||||
catch (ignored: NoSuchFileException) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
@@ -1 +0,0 @@
|
||||
skip: /**/*
|
||||
Reference in New Issue
Block a user