Automatically enable Kotlin plugin if it was disabled
This commit is contained in:
Generated
+1
@@ -11,6 +11,7 @@
|
||||
<maximumHeapSize value="512" />
|
||||
</buildFile>
|
||||
<buildFile url="file://$PROJECT_DIR$/pluginPublisher/TeamCityPluginPublisher.xml" />
|
||||
<buildFile url="file://$PROJECT_DIR$/idea_runner/runner.xml" />
|
||||
</component>
|
||||
</project>
|
||||
|
||||
|
||||
Generated
+1
@@ -43,6 +43,7 @@
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="KotlinPlugin" />
|
||||
</option>
|
||||
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea_runner/runner.xml" target="force_enable_kotlin_plugin" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
@@ -24,6 +24,7 @@
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="KotlinPlugin" />
|
||||
</option>
|
||||
<option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/idea_runner/runner.xml" target="force_enable_kotlin_plugin" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
@@ -0,0 +1,26 @@
|
||||
<project name="Idea Runner" default="force_enable_kotlin_plugin">
|
||||
<target name="force_enable_kotlin_plugin">
|
||||
<property name="dependencies.dir" value="${basedir}/../dependencies" />
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${dependencies.dir}/ant-contrib.jar"/>
|
||||
|
||||
<property name="disable_plugins.file.path" value="${basedir}/../ideaSDK/config/disabled_plugins.txt"/>
|
||||
<available property="disable_plugins.found" file="${disable_plugins.file.path}"/>
|
||||
|
||||
<if>
|
||||
<isset property="disable_plugins.found"/>
|
||||
<then>
|
||||
<!--suppress AntResolveInspection -->
|
||||
<loadfile property="disabled_plugins.text" srcFile="${disable_plugins.file.path}">
|
||||
<filterchain>
|
||||
<linecontains negate="true">
|
||||
<contains value="org.jetbrains.kotlin"/>
|
||||
</linecontains>
|
||||
</filterchain>
|
||||
</loadfile>
|
||||
<property name="disabled_plugins.text" value=""/>
|
||||
|
||||
<echo file="${disable_plugins.file.path}" message="${disabled_plugins.text}"/>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user