Extract compiler-for-maven target in build.xml
To be used after "compiler-quick" to quickly test changes to the compiler in the Maven build
This commit is contained in:
@@ -643,35 +643,45 @@
|
|||||||
<proguard configuration="${basedir}/compiler/compiler.pro"/>
|
<proguard configuration="${basedir}/compiler/compiler.pro"/>
|
||||||
</sequential>
|
</sequential>
|
||||||
|
|
||||||
<jar jarfile="${output}/kotlin-compiler-for-maven.jar" duplicate="preserve">
|
<pack-compiler-for-maven/>
|
||||||
<patternset id="lib.metainf.patternset">
|
</target>
|
||||||
<include name="**"/>
|
|
||||||
<exclude name="META-INF/build.txt"/>
|
|
||||||
<exclude name="META-INF/MANIFEST.MF"/>
|
|
||||||
</patternset>
|
|
||||||
|
|
||||||
<!-- TODO: don't include both to the jar: it's impossible to test changes to core in the local maven build without bootstrap -->
|
<macrodef name="pack-compiler-for-maven">
|
||||||
<zipfileset src="${kotlin-home}/lib/kotlin-compiler.jar" includes="**"/>
|
<sequential>
|
||||||
<zipfileset src="${bootstrap.runtime}">
|
<jar jarfile="${output}/kotlin-compiler-for-maven.jar" duplicate="preserve">
|
||||||
<patternset refid="lib.metainf.patternset"/>
|
<patternset id="lib.metainf.patternset">
|
||||||
</zipfileset>
|
<include name="**"/>
|
||||||
<zipfileset src="${bootstrap.reflect}">
|
<exclude name="META-INF/build.txt"/>
|
||||||
<patternset refid="lib.metainf.patternset"/>
|
<exclude name="META-INF/MANIFEST.MF"/>
|
||||||
</zipfileset>
|
</patternset>
|
||||||
<zipfileset src="${bootstrap.script.runtime}">
|
|
||||||
<patternset refid="lib.metainf.patternset"/>
|
|
||||||
</zipfileset>
|
|
||||||
|
|
||||||
<manifest>
|
<!-- TODO: don't include both to the jar: it's impossible to test changes to core in the local maven build without bootstrap -->
|
||||||
<attribute name="Built-By" value="${manifest.impl.vendor}"/>
|
<zipfileset src="${kotlin-home}/lib/kotlin-compiler.jar" includes="**"/>
|
||||||
|
<zipfileset src="${bootstrap.runtime}">
|
||||||
|
<patternset refid="lib.metainf.patternset"/>
|
||||||
|
</zipfileset>
|
||||||
|
<zipfileset src="${bootstrap.reflect}">
|
||||||
|
<patternset refid="lib.metainf.patternset"/>
|
||||||
|
</zipfileset>
|
||||||
|
<zipfileset src="${bootstrap.script.runtime}">
|
||||||
|
<patternset refid="lib.metainf.patternset"/>
|
||||||
|
</zipfileset>
|
||||||
|
|
||||||
<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
|
<manifest>
|
||||||
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.compiler}"/>
|
<attribute name="Built-By" value="${manifest.impl.vendor}"/>
|
||||||
<attribute name="Implementation-Version" value="${build.number}"/>
|
|
||||||
|
|
||||||
<attribute name="Main-Class" value="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"/>
|
<attribute name="Implementation-Vendor" value="${manifest.impl.vendor}"/>
|
||||||
</manifest>
|
<attribute name="Implementation-Title" value="${manifest.impl.title.kotlin.compiler}"/>
|
||||||
</jar>
|
<attribute name="Implementation-Version" value="${build.number}"/>
|
||||||
|
|
||||||
|
<attribute name="Main-Class" value="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<target name="compiler-for-maven">
|
||||||
|
<pack-compiler-for-maven/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="kotlin-build-common">
|
<target name="kotlin-build-common">
|
||||||
|
|||||||
Reference in New Issue
Block a user