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:
Alexander Udalov
2016-12-15 12:01:01 +03:00
parent afdeb3339f
commit 90eb229036
+10
View File
@@ -643,6 +643,11 @@
<proguard configuration="${basedir}/compiler/compiler.pro"/> <proguard configuration="${basedir}/compiler/compiler.pro"/>
</sequential> </sequential>
<pack-compiler-for-maven/>
</target>
<macrodef name="pack-compiler-for-maven">
<sequential>
<jar jarfile="${output}/kotlin-compiler-for-maven.jar" duplicate="preserve"> <jar jarfile="${output}/kotlin-compiler-for-maven.jar" duplicate="preserve">
<patternset id="lib.metainf.patternset"> <patternset id="lib.metainf.patternset">
<include name="**"/> <include name="**"/>
@@ -672,6 +677,11 @@
<attribute name="Main-Class" value="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"/> <attribute name="Main-Class" value="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"/>
</manifest> </manifest>
</jar> </jar>
</sequential>
</macrodef>
<target name="compiler-for-maven">
<pack-compiler-for-maven/>
</target> </target>
<target name="kotlin-build-common"> <target name="kotlin-build-common">