Automatically enable Kotlin plugin if it was disabled

This commit is contained in:
Nikolay Krasko
2014-03-31 19:29:28 +04:00
parent 6e8c1df5ee
commit 48570ebc64
4 changed files with 29 additions and 0 deletions
Generated
+1
View File
@@ -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>
+1
View File
@@ -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>
+26
View File
@@ -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>