IDEA-CR-40529 remove unnecessary icon-robots.txt

This commit is contained in:
Vladimir Krivosheev
2018-11-27 12:09:52 +01:00
parent 28a7ede373
commit e5bb1f3f28
16 changed files with 9 additions and 15 deletions
@@ -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: /**/*