-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
57 lines (49 loc) · 1.99 KB
/
build.xml
File metadata and controls
57 lines (49 loc) · 1.99 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
2018/05/19 12:43:10
project picocalculator
description calculator for home work
user notfolder
====================================================================== -->
<project name="picocalculator" default="makeJar" basedir=".">
<description>
calculator for home work
</description>
<property name="jarname" value="PicoCalculator" />
<property name="dir.target" value="bin" />
<property name="dir.target.classes" value="${dir.target}/classes" />
<property name="dir.src" value="./src" />
<property name="src.enc" value="UTF-8" />
<dirname property="base" file="${ant.file}"/>
<path id="build.lib">
</path>
<target name="compile" description="コンパイル">
<echo message="コンパイルを開始します。" />
<mkdir dir="${dir.target.classes}"/>
<javac classpathref="build.lib"
srcdir="${dir.src}"
sourcepath=""
destdir="${dir.target.classes}"
encoding="${src.enc}"
source="1.8"
target="1.8"
includeAntRuntime="false"
debug="true">
<exclude name="unittest/*" />
</javac>
</target>
<target name="makeJar" description="開発用JARファイル作成">
<!-- 作業用ディレクトリのcleanup -->
<antcall target="clean"/>
<antcall target="compile"/>
<echo message="JARファイルを作成します。" />
<jar basedir="${dir.target.classes}" destfile="${base}/${dir.target}/${jarname}.jar">
<manifest>
<attribute name="Main-Class" value="picocalculator.PicoCalculator"/>
</manifest>
</jar>
</target>
<target name="clean" description="ビルド成果物削除">
<delete dir="${dir.target}" />
</target>
</project>