-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (30 loc) · 1.14 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
<project name="net2" default="build">
<property name="kotlin.lib" value="lib"/>
<typedef resource="org/jetbrains/kotlin/ant/antlib.xml"
classpath="${kotlin.lib}/kotlin-ant.jar"/>
<path id="classpath">
<fileset dir="${kotlin.lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="build">
<delete dir="classes" failonerror="false"/>
<mkdir dir="classes"/>
<javac destdir="classes" includeAntRuntime="false" srcdir="src">
<withKotlin/>
<classpath refid="classpath" />
</javac>
<jar destfile="net2-server.jar"
manifest="src/ru/nsu/ccfit/pleshkov/net2/server/META-INF/MANIFEST.MF">
<fileset dir="classes">
</fileset>
<zipgroupfileset dir="${kotlin.lib}" includes="*.jar" />
</jar>
<jar destfile="net2-client.jar"
manifest="src/ru/nsu/ccfit/pleshkov/net2/client/META-INF/MANIFEST.MF">
<fileset dir="classes">
</fileset>
<zipgroupfileset dir="${kotlin.lib}" includes="*.jar" />
</jar>
</target>
</project>