Skip to content

Commit

Permalink
Build kotlin-stdlib in addition to kotlin-runtime in ant build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-g committed Jan 24, 2017
1 parent a2bd3bf commit f9e552e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TeamCityBuild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
</macrodef>

<target name="printStatistics">
<print-file-size-statistic path="${kotlin-home}/lib" file-name="kotlin-runtime.jar"/>
<print-file-size-statistic path="${kotlin-home}/lib" file-name="kotlin-stdlib.jar"/>
<print-file-size-statistic path="${kotlin-home}/lib" file-name="kotlin-reflect.jar"/>

<print-file-size-statistic path="${kotlin-home}/lib" file-name="kotlin-jslib.jar"/>
Expand Down
12 changes: 9 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,10 @@

<target name="kotlin-test">
<path id="kotlin-test-compile-classpath">
<pathelement location="${output}/classes/builtins"/>
<pathelement location="${output}/builtins"/>
<pathelement location="${output}/classes/builtins"/>
<pathelement location="${output}/classes/stdlib"/>
<pathelement location="libraries/lib/junit-4.11.jar"/>
</path>

<java classname="org.jetbrains.kotlin.preloading.Preloader" failonerror="true" fork="true" maxmemory="${max.heap.size.for.forked.jvm}">
Expand All @@ -1088,6 +1090,7 @@
<arg value="-Xmulti-platform"/>
<arg value="libraries/kotlin.test/common/src/main/kotlin"/>
<arg value="libraries/kotlin.test/jvm/src/main/kotlin"/>
<arg value="libraries/kotlin.test/junit/src/main/kotlin"/>
</java>

<pack-runtime-jar jar-name="kotlin-test.jar" implementation-title="${manifest.impl.title.kotlin.test}" runtime-component="Test">
Expand Down Expand Up @@ -1188,7 +1191,7 @@
</macrodef>

<target name="pack-runtime">
<pack-runtime-jar jar-name="kotlin-runtime.jar" implementation-title="${manifest.impl.title.kotlin.jvm.runtime}">
<pack-runtime-jar jar-name="kotlin-stdlib.jar" implementation-title="${manifest.impl.title.kotlin.jvm.runtime}">
<jar-content>
<fileset dir="${output}/classes/builtins"/>
<fileset dir="${output}/classes/stdlib"/>
Expand All @@ -1199,6 +1202,7 @@
</zipfileset>
</jar-content>
</pack-runtime-jar>
<copy file="${kotlin-home}/lib/kotlin-stdlib.jar" tofile="${kotlin-home}/lib/kotlin-runtime.jar"/>

<pack-runtime-jar jar-dir="${output}" jar-name="kotlin-reflect-before-jarjar.jar" implementation-title="${manifest.impl.title.kotlin.jvm.reflect}">
<jar-content>
Expand Down Expand Up @@ -1274,7 +1278,7 @@
</replaceregexp>
</sequential>

<pack-runtime-jar jar-name="kotlin-runtime-sources.jar" implementation-title="${manifest.impl.title.kotlin.jvm.runtime.sources}">
<pack-runtime-jar jar-name="kotlin-stdlib-sources.jar" implementation-title="${manifest.impl.title.kotlin.jvm.runtime.sources}">
<jar-content>
<fileset dir="${basedir}/core/builtins/native" includes="**/*"/>
<fileset dir="${basedir}/core/builtins/src" includes="**/*"/>
Expand All @@ -1284,6 +1288,8 @@
<fileset dir="${output}/core.src" includes="**/*"/>
</jar-content>
</pack-runtime-jar>
<copy file="${kotlin-home}/lib/kotlin-stdlib-sources.jar" tofile="${kotlin-home}/lib/kotlin-runtime-sources.jar"/>


<pack-runtime-jar jar-dir="${output}" jar-name="kotlin-reflect-sources-for-maven.jar"
implementation-title="${manifest.impl.title.kotlin.jvm.reflect.sources}">
Expand Down
2 changes: 1 addition & 1 deletion resources/kotlinManifest.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ manifest.impl.title.kotlin.compiler.sources=Kotlin Compiler Sources

manifest.impl.title.kotlin.compiler.ant.task=Kotlin Compiler Ant Tasks

manifest.impl.title.kotlin.jvm.runtime=Kotlin Runtime
manifest.impl.title.kotlin.jvm.runtime=Kotlin Standard Library
manifest.impl.title.kotlin.jvm.reflect=Kotlin Reflect
manifest.impl.title.kotlin.script.runtime=Kotlin Script Runtime
manifest.impl.title.kotlin.jvm.runtime.sources=Kotlin Runtime Sources
Expand Down

0 comments on commit f9e552e

Please sign in to comment.