|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 4 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 5 | + |
| 6 | + <modelVersion>4.0.0</modelVersion> |
| 7 | + |
| 8 | + <parent> |
| 9 | + <groupId>org.jetbrains.kotlin</groupId> |
| 10 | + <artifactId>kotlin-project</artifactId> |
| 11 | + <version>1.1-SNAPSHOT</version> |
| 12 | + <relativePath>../../pom.xml</relativePath> |
| 13 | + </parent> |
| 14 | + |
| 15 | + <artifactId>kotlin-stdlib-common</artifactId> |
| 16 | + |
| 17 | + <properties> |
| 18 | + <kotlin-home>${kotlin-dist}/kotlinc</kotlin-home> |
| 19 | + </properties> |
| 20 | + |
| 21 | + <build> |
| 22 | + <sourceDirectory>src</sourceDirectory> |
| 23 | + <testSourceDirectory>test</testSourceDirectory> |
| 24 | + |
| 25 | + <plugins> |
| 26 | + <plugin> |
| 27 | + <groupId>org.apache.maven.plugins</groupId> |
| 28 | + <artifactId>maven-antrun-plugin</artifactId> |
| 29 | + <version>1.7</version> |
| 30 | + <executions> |
| 31 | + <execution> |
| 32 | + <id>serialize-declarations</id> |
| 33 | + <phase>compile</phase> |
| 34 | + <configuration> |
| 35 | + <target> |
| 36 | + <delete dir="${basedir}/target/classes" failonerror="false"/> |
| 37 | + <mkdir dir="${basedir}/target/classes"/> |
| 38 | + |
| 39 | + |
| 40 | + <local name="src.line"/> |
| 41 | + |
| 42 | + <path id="src.path"> |
| 43 | + <union> |
| 44 | + <fileset dir="${basedir}/../src/kotlin"> |
| 45 | + <include name="internal/Annotations.kt" /> |
| 46 | + </fileset> |
| 47 | + |
| 48 | + <fileset dir="${basedir}/src"> |
| 49 | + <include name="**/*.kt" /> |
| 50 | + </fileset> |
| 51 | + </union> |
| 52 | + </path> |
| 53 | + |
| 54 | + <pathconvert property="src.line" refid="src.path" pathsep=" "/> |
| 55 | + |
| 56 | + <java classname="org.jetbrains.kotlin.preloading.Preloader" failonerror="true" fork="true"> |
| 57 | + <classpath> |
| 58 | + <pathelement location="${kotlin-home}/lib/kotlin-preloader.jar"/> |
| 59 | + </classpath> |
| 60 | + <assertions> |
| 61 | + <enable/> |
| 62 | + </assertions> |
| 63 | + <!-- |
| 64 | + <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"/> |
| 65 | + --> |
| 66 | + <arg value="-cp"/> |
| 67 | + <arg value="${kotlin-home}/lib/kotlin-compiler.jar"/> |
| 68 | + <arg value="org.jetbrains.kotlin.cli.metadata.K2MetadataCompiler"/> |
| 69 | + <arg value="-Xallow-kotlin-package" /> |
| 70 | + <arg value="-d"/> |
| 71 | + <arg value="${basedir}/target/classes"/> |
| 72 | + <arg line="${src.line}"/> |
| 73 | + </java> |
| 74 | + </target> |
| 75 | + </configuration> |
| 76 | + <goals> |
| 77 | + <goal>run</goal> |
| 78 | + </goals> |
| 79 | + </execution> |
| 80 | + </executions> |
| 81 | + </plugin> |
| 82 | + |
| 83 | + </plugins> |
| 84 | + </build> |
| 85 | +</project> |
0 commit comments