Created
October 1, 2018 00:55
-
-
Save Mercerenies/7da21144a3030771a5cc5d88d6b062a5 to your computer and use it in GitHub Desktop.
This configuration worked for me to compile Kotlin onto Android from the command line. My ant-fu is not great, but hopefully this helps someone else who struggled with it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="kotlin_rules"> | |
<property environment="env"/> | |
<typedef resource="org/jetbrains/kotlin/ant/antlib.xml" classpath="${env.KOTLIN_HOME}/lib/kotlin-ant.jar"/> | |
<target name="-post-compile"> | |
<path id="project.javac.classpath"> | |
<path refid="project.all.jars.path" /> | |
<path refid="tested.project.classpath" /> | |
<path path="${java.compiler.classpath}" /> | |
<path path="${project.target.android.jar}"/> | |
<path path="${out.classes.absolute.dir}" /> | |
</path> | |
<kotlinc src="src" output="bin/classes" | |
classpathref="project.javac.classpath" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment