Ant task: use preloader instead of AntClassLoader

Speeds up AntTaskJvmTest by 50%
This commit is contained in:
Alexander Udalov
2015-01-03 12:08:12 +03:00
parent 511b19fcfd
commit cd79c4573d
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -641,7 +641,8 @@
<compilerarg value="-Xlint:all"/>
<classpath>
<file file="${kotlin-home}/lib/${compiler.manifest.class.path}"/>
<fileset dir="${dependencies.dir}/ant-1.7/lib" includes="ant.jar"/>
<pathelement location="${dependencies.dir}/ant-1.7/lib/ant.jar"/>
<pathelement location="${kotlin-home}/lib/kotlin-preloader.jar"/>
</classpath>
</javac2>
@@ -657,7 +658,7 @@
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.compiler.ant.task}"/>
<attribute name="Implementation-Version" value="${build.number}"/>
<attribute name="Class-Path" value="${compiler.manifest.class.path}"/>
<attribute name="Class-Path" value="${compiler.manifest.class.path} kotlin-preloader.jar"/>
</manifest>
</jar>
</target>