Saving module XMLs in temp directory instead of output.
This commit is contained in:
@@ -179,6 +179,7 @@ public class KotlinBuilder extends ModuleLevelBuilder {
|
||||
|
||||
runK2JvmCompiler(commonArguments, k2JvmArguments, compilerSettings, messageCollector, environment,
|
||||
moduleFile, outputItemCollector);
|
||||
moduleFile.delete();
|
||||
}
|
||||
|
||||
// If there's only one target, this map is empty: get() always returns null, and the representativeTarget will be used below
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
package org.jetbrains.jet.jps.build;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -98,7 +100,9 @@ public class KotlinBuilderModuleScriptGenerator {
|
||||
|
||||
if (noSources) return null;
|
||||
|
||||
File scriptFile = new File(getOutputDir(chunk.representativeTarget()), "script." + FACTORY.getFileExtension());
|
||||
String scriptFilename = context.getProjectDescriptor().dataManager.getDataPaths().getDataStorageRoot().getName()
|
||||
+ "#" + StringUtil.sanitizeJavaIdentifier(chunk.getName());
|
||||
File scriptFile = new File(PathManager.getTempPath() + File.separator + scriptFilename + ".script." + FACTORY.getFileExtension());
|
||||
|
||||
writeScriptToFile(context, builder.asText(), scriptFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user