-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (33 loc) · 1.18 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8"?>
<project name="HelloWorld" default="build" basedir=".">
<property name="source.dir" value="${basedir}/src/main/kotlin" />
<property name="target.dir" value="${basedir}/target" />
<property name="build.dir" value="${target.dir}/main/classes" />
<property name="main.class" value="QuickSortKt" />
<!-- task 'init' is defined in parent build.xml -->
<import file="../build.xml" />
<target name="lint" depends="init">
<ktlint
pattern="src/**/*.kt"
classpathref="ktlint.classpath"
/>
</target>
<target name="compile" depends="init">
<mkdir dir="${build.dir}" />
<javac destdir="${build.dir}" includeAntRuntime="false" srcdir="${source.dir}">
<withKotlin/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="${main.class}">
<!-- <arg value="1" /> -->
<classpath>
<path refid="kotlin.classpath" />
<path refid="build.classpath" />
</classpath>
</java>
</target>
<target name="clean">
<delete dir="${target.dir}"/>
</target>
</project>