| <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> |