Using XML instead of module scripts when running from IDE
This commit is contained in:
+2
@@ -32,6 +32,8 @@ public interface KotlinModuleDescriptionGenerator {
|
||||
Set<File> directoriesToFilterOut
|
||||
);
|
||||
|
||||
String getFileExtension();
|
||||
|
||||
interface DependencyProvider {
|
||||
void processClassPath(@NotNull DependencyProcessor processor);
|
||||
}
|
||||
|
||||
+5
@@ -85,4 +85,9 @@ public class KotlinModuleScriptGenerator implements KotlinModuleDescriptionGener
|
||||
script.append("}\n");
|
||||
return script;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFileExtension() {
|
||||
return "kts";
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -100,6 +100,11 @@ public class KotlinModuleXmlGenerator implements KotlinModuleDescriptionGenerato
|
||||
return xml;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFileExtension() {
|
||||
return "xml";
|
||||
}
|
||||
|
||||
private static void openTag(Printer p, String tag) {
|
||||
p.println("<" + tag + ">");
|
||||
p.pushIndent();
|
||||
|
||||
Reference in New Issue
Block a user