-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
32 lines (28 loc) · 1.12 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
<project name="Lines98" default="package" basedir=".">
<target name="init">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="classes.dir" value="${build.dir}/classes" />
<property name="app.name" value="Lines98">
</property>
</target>
<target name="prepare" description="Create target directory" depends="init">
<mkdir dir="${classes.dir}" />
</target>
<target name="compile" description="Compile source code and copy sound files to target directory" depends="prepare">
<javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false" source="19" target="19" />
<copy todir="${classes.dir}">
<fileset dir="src" includes="thbt/webng/com/resources/**" />
</copy>
</target>
<target name="package" description="Create jar file" depends="compile">
<jar description="Create jar file" destfile="${build.dir}/${app.name}.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="thbt.webng.com.Lines" />
</manifest>
</jar>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}" />
</target>
</project>